1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-19 04:57:10 +02:00

restructure Makefile for easily adding dictionaries,

adding english<->english dictionary
This commit is contained in:
Mirko Vogt 2010-04-03 16:18:25 +02:00
parent da4562e87c
commit 69f86c1a9f
2 changed files with 23 additions and 2 deletions

View File

@ -19,13 +19,23 @@ PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/stardict define Package/stardict/Default
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
DEPENDS:=+libintl +libiconv +libgconf2 DEPENDS:=stardict
TITLE:=International Dictionary Software TITLE:=International Dictionary Software
endef endef
define Package/stardict
$(call Package/stardict/Default)
DEPENDS:=+libintl +libiconv +libgconf2
endef
define Package/stardict-dic-en-en
$(call Package/stardict/Default)
TITLE+=(dictionary: English <-> English)
endef
define Package/stardict/description define Package/stardict/description
StarDict is a Cross-Platform and international dictionary Software. StarDict is a Cross-Platform and international dictionary Software.
endef endef
@ -77,4 +87,15 @@ define Package/stardict/install
$(1)/usr/share/ $(1)/usr/share/
endef endef
define Package/stardict-dic-en-en/install
$(INSTALL_DIR) \
$(1)/usr/share/stardict/dic
$(TAR) \
-C $(1)/usr/share/stardict/dic/ \
-jxf \
./files/stardict-english-2.4.2.tar.bz2
endef
$(eval $(call BuildPackage,stardict)) $(eval $(call BuildPackage,stardict))
$(eval $(call BuildPackage,stardict-dic-en-en))

Binary file not shown.