[packages] rtorrent: update to 0.8.6_r1130 (#6685)
[openwrt/svn-archive/archive.git] / Xorg / lib / gtkhtml / Makefile
1 #
2 # Copyright (C) 2008 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_RELEASE:=1
12 PKG_VERSION:=3.29.1
13 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/3.29
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
16 include $(INCLUDE_DIR)/package.mk
17
18 PKG_INSTALL:=1
19
20 define Package/gtkhtml
21 SECTION:=xorg-app
22 CATEGORY:=Xorg
23 SUBMENU:=app
24 DEPENDS:=+gtk2 +libgconf2 +gnome-icon-theme
25 TITLE:=gtkhtml
26 URL:=http://www.gnome.org/projects/gtkhtml/
27 endef
28
29 TARGET_CFLAGS+=\
30 -I$(STAGING_DIR)/usr/lib/libintl/include/ \
31 -I$(STAGING_DIR)/usr/lib/libiconv/include/
32
33 TARGET_LDFLAGS+=\
34 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
35 -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
36 -L$(STAGING_DIR)/usr/lib/libiconv/lib/
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --enable-shared \
41 --enable-static \
42 --disable-shlib-factory \
43 );
44 endef
45
46 define Build/InstallDev
47 $(INSTALL_DIR) \
48 $(1)/usr/lib/pkgconfig \
49 $(1)/usr/include \
50 $(1)/usr/lib
51
52 $(CP) \
53 $(PKG_INSTALL_DIR)/usr/lib/*.{la,a,so*} \
54 $(1)/usr/lib/
55
56 $(CP) \
57 $(PKG_INSTALL_DIR)/usr/include/* \
58 $(1)/usr/include/
59
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
62 $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Package/gtkhtml/install
66 $(INSTALL_DIR) \
67 $(1)/usr/share \
68 $(1)/usr/lib
69
70 $(CP) \
71 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
72 $(1)/usr/lib/
73
74 $(CP) \
75 $(PKG_INSTALL_DIR)/usr/share/gtkhtml* \
76 $(1)/usr/share/
77 endef
78
79 $(eval $(call BuildPackage,gtkhtml))