summaryrefslogtreecommitdiffstats
path: root/package/multimedia/festival/lexicons/festlex.mk
blob: 80d37d5959c68ce944279afe4ef8bf7fb9193415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#############################################################
#
# festival lexicons
#
#############################################################
LEX1 = festlex_CMU.tar.gz
LEX2 = festlex_OALD.tar.gz
LEX3 = festlex_POSLEX.tar.gz
FESTLEX_STATUS_DIR = $(BUILD_DIR)/festival_lexicons
FESTLEX_INSTALL_DIR = $(TARGET_DIR)/usr/share

$(FESTLEX_STATUS_DIR)/.downloaded:
	mkdir -p $(FESTLEX_STATUS_DIR)
ifeq ($(BR2_PACKAGE_FESTLEX_CMU),y)
	$(call DOWNLOAD,$(FESTIVAL_SITE),$(LEX1))
endif
ifeq ($(BR2_PACKAGE_FESTLEX_OALD),y)
	$(call DOWNLOAD,$(FESTIVAL_SITE),$(LEX2))
endif
ifeq ($(BR2_PACKAGE_FESTLEX_POS),y)
	$(call DOWNLOAD,$(FESTIVAL_SITE),$(LEX3))
endif
	touch $@

$(FESTLEX_STATUS_DIR)/.installed: $(FESTLEX_STATUS_DIR)/.downloaded
ifeq ($(BR2_PACKAGE_FESTLEX_CMU),y)
	tar -xvf $(DL_DIR)/$(LEX1) --directory $(FESTLEX_INSTALL_DIR)
endif
ifeq ($(BR2_PACKAGE_FESTLEX_OALD),y)
	tar -xvf $(DL_DIR)/$(LEX2) --directory $(FESTLEX_INSTALL_DIR)
endif
ifeq ($(BR2_PACKAGE_FESTLEX_POS),y)
	tar -xvf $(DL_DIR)/$(LEX3) --directory $(FESTLEX_INSTALL_DIR)
endif
	touch $@

festlex: $(FESTLEX_STATUS_DIR)/.installed

#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_FESTIVAL),y)
TARGETS+=festlex
endif