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
21
22define Package/stardict/Default
23    SECTION:=utils
24    CATEGORY:=Utilities
25    DEPENDS:=stardict
26    TITLE:=International Dictionary Software
27endef
28
29define Package/stardict
30    $(call Package/stardict/Default)
31    DEPENDS:=+libintl +libiconv +libgconf2 +gtk2
32endef
33
34define Package/stardict-dic-en-en
35    $(call Package/stardict/Default)
36    TITLE+=(dictionary: English <-> English)
37endef
38
39define Package/stardict/description
40    StarDict is a Cross-Platform and international dictionary Software.
41endef
42
43TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/lib/libintl/include
44TARGET_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/libintl/lib
45TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
46
47CONFIGURE_CMD =./autogen.sh
48
49CONFIGURE_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
71define 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/
88endef
89
90define 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
98endef
99
100$(eval $(call BuildPackage,stardict))
101$(eval $(call BuildPackage,stardict-dic-en-en))
102

Archive Download this file



interactive