summaryrefslogtreecommitdiff
path: root/stardict/Makefile
diff options
context:
space:
mode:
authorDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
committerDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
commit9aaeb4623d3ff5746e665bc17914eefd292b7dcd (patch)
tree370db60ffdc2ef840b7d1124d5a392f93bba3c9d /stardict/Makefile
downloadqipackages-fork-9aaeb4623d3ff5746e665bc17914eefd292b7dcd.tar.gz
New OpenWrt package for GNU Octave. Experimental/probably still broken.grafted
Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days.
Diffstat (limited to 'stardict/Makefile')
-rw-r--r--stardict/Makefile123
1 files changed, 123 insertions, 0 deletions
diff --git a/stardict/Makefile b/stardict/Makefile
new file mode 100644
index 0000000..2931065
--- /dev/null
+++ b/stardict/Makefile
@@ -0,0 +1,123 @@
+#
+# Copyright (C) 2009 Qi Hardware Inc.
+# Author: Xiangfu Liu <xiangfu@sharism.cc>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=stardict
+PKG_VERSION:=3.0.1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=http://downloads.sourceforge.net/stardict/
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/stardict/Default
+ SECTION:=utils
+ CATEGORY:=Utilities
+ DEPENDS:=stardict
+ TITLE:=International Dictionary Software
+endef
+
+define Package/stardict
+ $(call Package/stardict/Default)
+ DEPENDS:=+libintl +libiconv +libgconf2 +gtk2 +libstdcpp +libsigcxx
+endef
+
+define Package/stardict-dic-en-en
+ $(call Package/stardict/Default)
+ TITLE+=(dictionary: English <-> English)
+endef
+
+define Package/stardict-dic-en-cn
+ $(call Package/stardict/Default)
+ TITLE+=(dictionary: oxfordjm English <-> Chinses)
+endef
+
+define Package/stardict/description
+ StarDict is a Cross-Platform and international dictionary Software.
+endef
+
+TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/lib/libintl/include
+TARGET_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/libintl/lib
+TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
+
+CONFIGURE_CMD =./autogen.sh
+
+CONFIGURE_ARGS += \
+ --disable-dependency-tracking \
+ --disable-libtool-lock \
+ --disable-spell \
+ --disable-gucharmap \
+ --disable-festival \
+ --disable-espeak \
+ --disable-dictdotcn \
+ --disable-advertisement \
+ --disable-man \
+ --disable-qqwry \
+ --disable-updateinfo \
+ --disable-htmlparse \
+ --disable-xdxfparse \
+ --disable-wordnet \
+ --disable-powerwordparse \
+ --disable-wikiparse \
+ --disable-schemas-install \
+ --disable-deprecations \
+ --disable-gnome-support \
+ --enable-nanonote-support
+
+define Package/stardict/install
+ $(INSTALL_DIR) \
+ $(1)/usr/bin \
+ $(1)/usr/share \
+ $(1)/usr/share/pixmaps
+
+ $(INSTALL_BIN) \
+ $(PKG_INSTALL_DIR)/usr/bin/stardict \
+ $(1)/usr/bin/
+
+ $(INSTALL_DATA) \
+ $(PKG_INSTALL_DIR)/usr/share/pixmaps/stardict.png \
+ $(1)/usr/share/pixmaps/
+
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/share/stardict \
+ $(1)/usr/share/
+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
+
+ $(CP) ./files/longman.idx.oft \
+ $(1)/usr/share/stardict/dic/stardict-english-2.4.2/
+endef
+
+define Package/stardict-dic-en-cn/install
+ $(INSTALL_DIR) \
+ $(1)/usr/share/stardict/dic
+
+ $(TAR) \
+ -C $(1)/usr/share/stardict/dic/ \
+ -jxf \
+ ./files/stardict-oxfordjm-ec-2.4.2.tar.bz2
+
+ $(CP) ./files/oxfordjm-ec.idx.oft \
+ $(1)/usr/share/stardict/dic/stardict-oxfordjm-ec-2.4.2/
+endef
+
+$(eval $(call BuildPackage,stardict))
+$(eval $(call BuildPackage,stardict-dic-en-en))
+$(eval $(call BuildPackage,stardict-dic-en-cn))