2009-11-29 18:10:08 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 Qi Hardware Inc.
|
2010-08-17 13:11:25 +03:00
|
|
|
# Author: Xiangfu Liu <xiangfu@sharism.cc>
|
2009-11-29 18:10:08 +02:00
|
|
|
#
|
|
|
|
# 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
|
2011-02-06 22:10:31 +02:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2009-11-29 18:10:08 +02:00
|
|
|
|
2010-04-03 17:18:25 +03:00
|
|
|
define Package/stardict/Default
|
2011-01-17 05:39:00 +02:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
|
2009-11-29 18:10:08 +02:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2010-04-03 17:18:25 +03:00
|
|
|
DEPENDS:=stardict
|
2010-02-19 17:20:32 +02:00
|
|
|
TITLE:=International Dictionary Software
|
2009-11-29 18:10:08 +02:00
|
|
|
endef
|
|
|
|
|
2010-04-03 17:18:25 +03:00
|
|
|
define Package/stardict
|
|
|
|
$(call Package/stardict/Default)
|
2011-02-06 22:10:31 +02:00
|
|
|
DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +libgconf2 +gtk2 +libstdcpp +libsigcxx
|
2010-04-03 17:18:25 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/stardict-dic-en-en
|
|
|
|
$(call Package/stardict/Default)
|
|
|
|
TITLE+=(dictionary: English <-> English)
|
|
|
|
endef
|
|
|
|
|
2010-11-12 11:15:53 +02:00
|
|
|
define Package/stardict-dic-en-cn
|
|
|
|
$(call Package/stardict/Default)
|
|
|
|
TITLE+=(dictionary: oxfordjm English <-> Chinses)
|
|
|
|
endef
|
|
|
|
|
2009-11-29 18:10:08 +02:00
|
|
|
define Package/stardict/description
|
|
|
|
StarDict is a Cross-Platform and international dictionary Software.
|
|
|
|
endef
|
|
|
|
|
2010-01-27 11:56:41 +02:00
|
|
|
TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2010-03-02 18:44:03 +02:00
|
|
|
CONFIGURE_CMD =./autogen.sh
|
2010-01-27 11:56:41 +02:00
|
|
|
|
2010-03-02 18:44:03 +02:00
|
|
|
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
|
2009-11-29 18:10:08 +02:00
|
|
|
|
|
|
|
define Package/stardict/install
|
2010-03-02 18:44:03 +02:00
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/bin \
|
|
|
|
$(1)/usr/share \
|
2010-03-04 07:10:54 +02:00
|
|
|
$(1)/usr/share/pixmaps
|
2010-03-02 18:44:03 +02:00
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/stardict \
|
|
|
|
$(1)/usr/bin/
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/pixmaps/stardict.png \
|
2010-03-04 07:10:54 +02:00
|
|
|
$(1)/usr/share/pixmaps/
|
2010-01-28 06:23:33 +02:00
|
|
|
|
2010-03-02 18:44:03 +02:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/stardict \
|
|
|
|
$(1)/usr/share/
|
2009-11-29 18:10:08 +02:00
|
|
|
endef
|
|
|
|
|
2010-04-03 17:18:25 +03:00
|
|
|
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
|
2010-11-14 11:55:04 +02:00
|
|
|
|
|
|
|
$(CP) ./files/longman.idx.oft \
|
|
|
|
$(1)/usr/share/stardict/dic/stardict-english-2.4.2/
|
2010-04-03 17:18:25 +03:00
|
|
|
endef
|
|
|
|
|
2010-11-12 11:15:53 +02:00
|
|
|
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
|
2010-11-14 11:55:04 +02:00
|
|
|
|
|
|
|
$(CP) ./files/oxfordjm-ec.idx.oft \
|
|
|
|
$(1)/usr/share/stardict/dic/stardict-oxfordjm-ec-2.4.2/
|
2010-11-12 11:15:53 +02:00
|
|
|
endef
|
|
|
|
|
2009-11-29 18:10:08 +02:00
|
|
|
$(eval $(call BuildPackage,stardict))
|
2010-04-03 17:18:25 +03:00
|
|
|
$(eval $(call BuildPackage,stardict-dic-en-en))
|
2010-11-12 11:15:53 +02:00
|
|
|
$(eval $(call BuildPackage,stardict-dic-en-cn))
|