Root/stardict/Makefile

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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=stardict
12PKG_VERSION:=3.0.1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://downloads.sourceforge.net/stardict/
16PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21include $(INCLUDE_DIR)/nls.mk
22
23define Package/stardict/Default
24    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
25    SECTION:=utils
26    CATEGORY:=Utilities
27    TITLE:=International Dictionary Software
28endef
29
30define Package/stardict/description
31    StarDict is a Cross-Platform and international dictionary Software.
32endef
33
34define Package/stardict
35    $(call Package/stardict/Default)
36    DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +libgconf2 +gtk2 +libstdcpp +libsigcxx
37endef
38
39define Package/stardict-dic-en-en
40    $(call Package/stardict/Default)
41    TITLE+=(dictionary: English <-> English)
42endef
43
44define Package/stardict-dic-en-cn
45    $(call Package/stardict/Default)
46    TITLE+=(dictionary: oxfordjm English <-> Chinese)
47endef
48
49define Package/stardict-dic-en-sp
50    $(call Package/stardict/Default)
51    TITLE+=(dictionary: I2E English <-> Spanish)
52endef
53
54TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
55
56CONFIGURE_CMD =./autogen.sh
57CONFIGURE_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
78define 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/
100endef
101
102define 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/
113endef
114
115define 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/
126endef
127
128define 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/
139endef
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

Archive Download this file



interactive