1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-23 00:42:05 +02:00
openwrt-packages/stardict/Makefile

81 lines
1.8 KiB
Makefile
Raw Normal View History

#
# Copyright (C) 2009 Qi Hardware Inc.
# Author: Xiangfu Liu <xiangfu@qi-hardware.com>
#
# 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
SECTION:=utils
CATEGORY:=Utilities
2010-03-02 18:45:05 +02:00
DEPENDS:=+libintl +libiconv +libgconf2
2010-02-19 17:20:32 +02:00
TITLE:=International Dictionary Software
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
2010-03-02 18:44:03 +02:00
CONFIGURE_CMD =./autogen.sh
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
define Package/stardict/install
2010-03-02 18:44:03 +02:00
$(INSTALL_DIR) \
$(1)/usr/bin \
$(1)/usr/share \
$(1)/usr/share/icons
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/stardict \
$(1)/usr/bin/
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/pixmaps/stardict.png \
$(1)/usr/share/icons/
2010-03-02 18:44:03 +02:00
$(CP) \
$(PKG_INSTALL_DIR)/usr/share/stardict \
$(1)/usr/share/
endef
$(eval $(call BuildPackage,stardict))