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