Root/qstardict/Makefile

Source at commit 0267b8887b875f98c751687a43d0bc45d761e7cd created 11 years 2 months ago.
By kyak, qstardict: update to compile with latest glib2
1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=qstardict
9PKG_VERSION:=0.13.1
10PKG_RELEASE:=1
11PKG_SOURCE_URL:=http://qstardict.ylsoftware.com/files/
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_MD5SUM:=0828c3fa01c5237db8a67d356a9d1a8c
14
15include $(INCLUDE_DIR)/package.mk
16include $(INCLUDE_DIR)/nls.mk
17$(call include_mk,qmake.mk)
18
19define Package/qstardict
20    SECTION:=utils
21    CATEGORY:=Utilities
22    TITLE:=Qt clone of stardict
23    DEPENDS:=+qt4 +qt4-gui +dejavu-fonts-ttf +qt4-network +qt4-xml +glib2
24    URL:=http://qstardict.ylsoftware.com
25endef
26
27define Build/Configure
28    $(call Build/Configure/Qmake,qstardict)
29endef
30
31TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -liconv
32
33define Package/qstardict/install
34    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/qstardict/plugins
35    $(INSTALL_BIN) $(PKG_BUILD_DIR)/qstardict/qstardict $(1)/usr/bin/
36    $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/stardict/libstardict.so $(1)/usr/lib/qstardict/plugins
37    $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/web/libweb.so $(1)/usr/lib/qstardict/plugins
38endef
39
40$(eval $(call BuildPackage,qstardict))
41

Archive Download this file



interactive