6d6e4461765eaf38ec8d63745cf2973861f23552
[packages.git] / Xorg / lib / pangomm / 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 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pangomm
12 PKG_VERSION:=2.26.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.26/
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL=1
22
23 TARGET_CFLAGS+=\
24         -I$(STAGING_DIR)/usr/lib/libintl/include/ \
25         -I$(STAGING_DIR)/usr/lib/libiconv/include/
26
27 TARGET_LDFLAGS+=\
28         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
29         -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
30         -L$(STAGING_DIR)/usr/lib/libiconv/lib/
31
32 define Package/pangomm
33   SECTION:=xorg-libs
34   CATEGORY:=Xorg
35   SUBMENU:=libraries
36   TITLE:=Text layout and rendering library
37   DEPENDS:=+glibmm +cairomm +pango
38 endef
39
40 CONFIGURE_ARGS+= --disable-documentation
41
42 define Package/pangomm/description
43 c++-bindings for pango
44 endef
45
46 define Build/InstallDev
47         $(INSTALL_DIR) \
48                 $(1)/usr/lib/pkgconfig \
49                 $(1)/usr/lib/pangomm/1.6.0/modules \
50                 $(1)/usr/include
51
52         $(CP) \
53                 $(PKG_INSTALL_DIR)/usr/lib/* \
54                 $(1)/usr/lib/
55
56         $(INSTALL_DATA) \
57                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
58                 $(1)/usr/lib/pkgconfig/
59
60         $(CP) \
61                 $(PKG_INSTALL_DIR)/usr/include/* \
62                 $(1)/usr/include/
63 endef
64
65 define Package/pangomm/install
66         $(INSTALL_DIR) \
67                 $(1)/usr/lib
68
69         $(CP) \
70                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
71                 $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,pangomm))