OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2009 Qi Hardware Inc. |
| 3 | # Author: Xiangfu Liu <xiangfu@sharism.cc> |
| 4 | # |
| 5 | # This is free software, licensed under the GNU General Public License v2. |
| 6 | # See /LICENSE for more information. |
| 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | |
| 11 | PKG_NAME:=stardict |
| 12 | PKG_VERSION:=3.0.1 |
| 13 | |
| 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 15 | PKG_SOURCE_URL:=http://downloads.sourceforge.net/stardict/ |
| 16 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 17 | |
| 18 | PKG_INSTALL:=1 |
| 19 | |
| 20 | include $(INCLUDE_DIR)/package.mk |
| 21 | |
| 22 | define Package/stardict/Default |
| 23 | SECTION:=utils |
| 24 | CATEGORY:=Utilities |
| 25 | DEPENDS:=stardict |
| 26 | TITLE:=International Dictionary Software |
| 27 | endef |
| 28 | |
| 29 | define Package/stardict |
| 30 | $(call Package/stardict/Default) |
| 31 | DEPENDS:=+libintl +libiconv +libgconf2 +gtk2 |
| 32 | endef |
| 33 | |
| 34 | define Package/stardict-dic-en-en |
| 35 | $(call Package/stardict/Default) |
| 36 | TITLE+=(dictionary: English <-> English) |
| 37 | endef |
| 38 | |
| 39 | define Package/stardict/description |
| 40 | StarDict is a Cross-Platform and international dictionary Software. |
| 41 | endef |
| 42 | |
| 43 | TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/lib/libintl/include |
| 44 | TARGET_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/libintl/lib |
| 45 | TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
| 46 | |
| 47 | CONFIGURE_CMD =./autogen.sh |
| 48 | |
| 49 | CONFIGURE_ARGS += \ |
| 50 | --disable-dependency-tracking \ |
| 51 | --disable-libtool-lock \ |
| 52 | --disable-spell \ |
| 53 | --disable-gucharmap \ |
| 54 | --disable-festival \ |
| 55 | --disable-espeak \ |
| 56 | --disable-dictdotcn \ |
| 57 | --disable-advertisement \ |
| 58 | --disable-man \ |
| 59 | --disable-qqwry \ |
| 60 | --disable-updateinfo \ |
| 61 | --disable-htmlparse \ |
| 62 | --disable-xdxfparse \ |
| 63 | --disable-wordnet \ |
| 64 | --disable-powerwordparse \ |
| 65 | --disable-wikiparse \ |
| 66 | --disable-schemas-install \ |
| 67 | --disable-deprecations \ |
| 68 | --disable-gnome-support \ |
| 69 | --enable-nanonote-support |
| 70 | |
| 71 | define Package/stardict/install |
| 72 | $(INSTALL_DIR) \ |
| 73 | $(1)/usr/bin \ |
| 74 | $(1)/usr/share \ |
| 75 | $(1)/usr/share/pixmaps |
| 76 | |
| 77 | $(INSTALL_BIN) \ |
| 78 | $(PKG_INSTALL_DIR)/usr/bin/stardict \ |
| 79 | $(1)/usr/bin/ |
| 80 | |
| 81 | $(INSTALL_DATA) \ |
| 82 | $(PKG_INSTALL_DIR)/usr/share/pixmaps/stardict.png \ |
| 83 | $(1)/usr/share/pixmaps/ |
| 84 | |
| 85 | $(CP) \ |
| 86 | $(PKG_INSTALL_DIR)/usr/share/stardict \ |
| 87 | $(1)/usr/share/ |
| 88 | endef |
| 89 | |
| 90 | define Package/stardict-dic-en-en/install |
| 91 | $(INSTALL_DIR) \ |
| 92 | $(1)/usr/share/stardict/dic |
| 93 | |
| 94 | $(TAR) \ |
| 95 | -C $(1)/usr/share/stardict/dic/ \ |
| 96 | -jxf \ |
| 97 | ./files/stardict-english-2.4.2.tar.bz2 |
| 98 | endef |
| 99 | |
| 100 | $(eval $(call BuildPackage,stardict)) |
| 101 | $(eval $(call BuildPackage,stardict-dic-en-en)) |
| 102 |
