2008-04-03 19:13:46 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# 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)
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(FESTIVAL_SITE),$(LEX1))
|
2008-04-03 19:13:46 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FESTLEX_OALD),y)
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(FESTIVAL_SITE),$(LEX2))
|
2008-04-03 19:13:46 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FESTLEX_POS),y)
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(FESTIVAL_SITE),$(LEX3))
|
2008-04-03 19:13:46 +02:00
|
|
|
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
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FESTIVAL),y)
|
2008-04-03 19:13:46 +02:00
|
|
|
TARGETS+=festlex
|
|
|
|
endif
|