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