move package gtkhtml into desktop feed
[openwrt/svn-archive/feeds.git] / desktop / libs / gtkhtml / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gtkhtml
11 PKG_VERSION:=3.29.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/3.29
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=899228059480ee3020ad49207d03b620
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/gtkhtml
24 SECTION:=xorg-app
25 CATEGORY:=Xorg
26 SUBMENU:=app
27 DEPENDS:=+gtk2 +libgconf2 +gnome-icon-theme
28 TITLE:=gtkhtml
29 URL:=http://www.gnome.org/projects/gtkhtml/
30 endef
31
32 TARGET_CFLAGS+=\
33 -I$(STAGING_DIR)/usr/lib/libintl/include/ \
34 -I$(STAGING_DIR)/usr/lib/libiconv/include/
35
36 TARGET_LDFLAGS+=\
37 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
38 -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
39 -L$(STAGING_DIR)/usr/lib/libiconv/lib/
40
41 define Build/Configure
42 $(call Build/Configure/Default, \
43 --enable-shared \
44 --enable-static \
45 --disable-shlib-factory \
46 );
47 endef
48
49 define Build/InstallDev
50 $(INSTALL_DIR) \
51 $(1)/usr/lib/pkgconfig \
52 $(1)/usr/include \
53 $(1)/usr/lib
54
55 $(CP) \
56 $(PKG_INSTALL_DIR)/usr/lib/*.{la,a,so*} \
57 $(1)/usr/lib/
58
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/include/* \
61 $(1)/usr/include/
62
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
65 $(1)/usr/lib/pkgconfig/
66 endef
67
68 define Package/gtkhtml/install
69 $(INSTALL_DIR) \
70 $(1)/usr/share \
71 $(1)/usr/lib
72
73 $(CP) \
74 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
75 $(1)/usr/lib/
76
77 $(CP) \
78 $(PKG_INSTALL_DIR)/usr/share/gtkhtml* \
79 $(1)/usr/share/
80 endef
81
82 $(eval $(call BuildPackage,gtkhtml))