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 | include $(INCLUDE_DIR)/nls.mk |
22 | |
23 | define Package/stardict/Default |
24 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
25 | SECTION:=utils |
26 | CATEGORY:=Utilities |
27 | TITLE:=International Dictionary Software |
28 | endef |
29 | |
30 | define Package/stardict/description |
31 | StarDict is a Cross-Platform and international dictionary Software. |
32 | endef |
33 | |
34 | define Package/stardict |
35 | $(call Package/stardict/Default) |
36 | DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +libgconf2 +gtk2 +libstdcpp +libsigcxx |
37 | endef |
38 | |
39 | define Package/stardict-dic-en-en |
40 | $(call Package/stardict/Default) |
41 | TITLE+=(dictionary: English <-> English) |
42 | endef |
43 | |
44 | define Package/stardict-dic-en-cn |
45 | $(call Package/stardict/Default) |
46 | TITLE+=(dictionary: oxfordjm English <-> Chinese) |
47 | endef |
48 | |
49 | define Package/stardict-dic-en-sp |
50 | $(call Package/stardict/Default) |
51 | TITLE+=(dictionary: I2E English <-> Spanish) |
52 | endef |
53 | |
54 | TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
55 | |
56 | CONFIGURE_CMD =./autogen.sh |
57 | CONFIGURE_ARGS += \ |
58 | --disable-dependency-tracking \ |
59 | --disable-libtool-lock \ |
60 | --disable-spell \ |
61 | --disable-gucharmap \ |
62 | --disable-festival \ |
63 | --disable-espeak \ |
64 | --disable-dictdotcn \ |
65 | --disable-advertisement \ |
66 | --disable-qqwry \ |
67 | --disable-updateinfo \ |
68 | --disable-htmlparse \ |
69 | --disable-xdxfparse \ |
70 | --disable-wordnet \ |
71 | --disable-powerwordparse \ |
72 | --disable-wikiparse \ |
73 | --disable-schemas-install \ |
74 | --disable-deprecations \ |
75 | --disable-gnome-support \ |
76 | --enable-nanonote-support |
77 | |
78 | define Package/stardict/install |
79 | $(INSTALL_DIR) \ |
80 | $(1)/usr/bin \ |
81 | $(1)/usr/share \ |
82 | $(1)/usr/share/pixmaps \ |
83 | $(1)/usr/lib/stardict/plugins |
84 | |
85 | $(INSTALL_BIN) \ |
86 | $(PKG_INSTALL_DIR)/usr/bin/stardict \ |
87 | $(1)/usr/bin/ |
88 | |
89 | $(INSTALL_DATA) \ |
90 | $(PKG_INSTALL_DIR)/usr/share/pixmaps/stardict.png \ |
91 | $(1)/usr/share/pixmaps/ |
92 | |
93 | $(CP) \ |
94 | $(PKG_INSTALL_DIR)/usr/share/stardict \ |
95 | $(1)/usr/share/ |
96 | |
97 | $(CP) \ |
98 | $(PKG_INSTALL_DIR)/usr/lib/stardict/plugins/* \ |
99 | $(1)/usr/lib/stardict/plugins/ |
100 | endef |
101 | |
102 | define Package/stardict-dic-en-en/install |
103 | $(INSTALL_DIR) \ |
104 | $(1)/usr/share/stardict/dic |
105 | |
106 | $(TAR) \ |
107 | -C $(1)/usr/share/stardict/dic/ \ |
108 | -jxf \ |
109 | ./files/stardict-english-2.4.2.tar.bz2 |
110 | |
111 | $(CP) ./files/longman.idx.oft \ |
112 | $(1)/usr/share/stardict/dic/stardict-english-2.4.2/ |
113 | endef |
114 | |
115 | define Package/stardict-dic-en-cn/install |
116 | $(INSTALL_DIR) \ |
117 | $(1)/usr/share/stardict/dic |
118 | |
119 | $(TAR) \ |
120 | -C $(1)/usr/share/stardict/dic/ \ |
121 | -jxf \ |
122 | ./files/stardict-oxfordjm-ec-2.4.2.tar.bz2 |
123 | |
124 | $(CP) ./files/oxfordjm-ec.idx.oft \ |
125 | $(1)/usr/share/stardict/dic/stardict-oxfordjm-ec-2.4.2/ |
126 | endef |
127 | |
128 | define Package/stardict-dic-en-sp/install |
129 | $(INSTALL_DIR) \ |
130 | $(1)/usr/share/stardict/dic |
131 | |
132 | $(TAR) \ |
133 | -C $(1)/usr/share/stardict/dic/ \ |
134 | -jxf \ |
135 | ./files/stardict-i2e-2.4.2.tar.bz2 |
136 | |
137 | $(CP) ./files/i2e.idx.oft \ |
138 | $(1)/usr/share/stardict/dic/stardict-i2e-2.4.2/ |
139 | endef |
140 | |
141 | $(eval $(call BuildPackage,stardict)) |
142 | $(eval $(call BuildPackage,stardict-dic-en-en)) |
143 | $(eval $(call BuildPackage,stardict-dic-en-cn)) |
144 | $(eval $(call BuildPackage,stardict-dic-en-sp)) |
145 |