[packages/pango] do not copy over static libs...
[openwrt/svn-archive/archive.git] / Xorg / lib / pango / Makefile
1 #
2 # Copyright (C) 2008-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 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pango
12 PKG_VERSION:=1.26.0
13 PKG_RELEASE:=4
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/1.26/
17 PKG_MD5SUM:=74ce18cfcc3ad0008a6ad56cfc535061
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 TARGET_LDFLAGS+= \
25 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
26 -L$(STAGING_DIR)/usr/lib/libiconv/lib \
27 -L$(STAGING_DIR)/usr/lib/libintl/lib
28
29 define Package/pango
30 SECTION:=xorg-libraries
31 CATEGORY:=Xorg
32 SUBMENU:=libraries
33 TITLE:=Text layout and rendering library
34 DEPENDS:=+cairo +glib2 +fontconfig +libfreetype \
35 +FEATURE_drawing-backend_libX11:libX11 \
36 +FEATURE_drawing-backend_libX11:libXft
37 URL:=http://www.pango.org/
38 endef
39
40 define Package/pango/description
41 Pango is a library for layout and rendering of text, with an emphasis
42 on internationalization. Pango can be used anywhere that text layout
43 is needed; however, most of the work on Pango so far has been done using
44 the GTK+ widget toolkit as a test platform. Pango forms the core of text
45 and font handling for GTK+-2.x.
46 endef
47
48 CONFIGURE_ARGS += \
49 $(if $(CONFIG_PACKAGE_libX11), --with-x, --without-x)
50
51 CONFIGURE_VARS += \
52 CXX="$(TARGET_CC)"
53
54 define Build/InstallDev
55 $(INSTALL_DIR) \
56 $(1)/usr/lib/pkgconfig \
57 $(1)/usr/lib/pango/1.6.0/modules \
58 $(1)/usr/include
59
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
62 $(1)/usr/lib
63
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/pango/1.6.0/modules/*.so* \
66 $(1)/usr/lib/pango/1.6.0/modules/
67
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
70 $(1)/usr/lib/pkgconfig
71
72 $(CP) \
73 $(PKG_INSTALL_DIR)/usr/include/* \
74 $(1)/usr/include/
75 endef
76
77 define Package/pango/install
78 $(INSTALL_DIR) \
79 $(1)/usr/lib/pango/1.6.0/modules \
80 $(1)/usr/bin \
81 $(1)/etc/init.d
82
83 $(CP) \
84 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
85 $(1)/usr/lib/
86
87 $(CP) \
88 $(PKG_INSTALL_DIR)/usr/lib/pango/1.6.0/modules/*.so* \
89 $(1)/usr/lib/pango/1.6.0/modules/
90
91 $(INSTALL_BIN) \
92 $(PKG_INSTALL_DIR)/usr/bin/pango-querymodules \
93 $(1)/usr/bin/
94
95 $(INSTALL_BIN) \
96 ./files/pango-querymodules.init \
97 $(1)/etc/init.d/pango-querymodules
98 endef
99
100 $(eval $(call BuildPackage,pango))