a2421121d7a25f043afd3781fa021aca77730db1
[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 endef
36
37 define Package/pango/description
38 Pango is a library for layout and rendering of text, with an emphasis
39 on internationalization. Pango can be used anywhere that text layout
40 is needed; however, most of the work on Pango so far has been done using
41 the GTK+ widget toolkit as a test platform. Pango forms the core of text
42 and font handling for GTK+-2.x.
43 endef
44
45 CONFIGURE_ARGS += \
46 $(if $(CONFIG_PACKAGE_libX11), --with-x, --without-x)
47
48 define Build/InstallDev
49 $(INSTALL_DIR) \
50 $(1)/usr/lib/pkgconfig \
51 $(1)/usr/lib/pango/1.6.0/modules \
52 $(1)/usr/include
53
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
56 $(1)/usr/lib
57
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/lib/pango/1.6.0/modules/*.{so*,a,la} \
60 $(1)/usr/lib/pango/1.6.0/modules/
61
62 $(INSTALL_DATA) \
63 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
64 $(1)/usr/lib/pkgconfig
65
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/include/* \
68 $(1)/usr/include/
69 endef
70
71 define Package/pango/install
72 $(INSTALL_DIR) \
73 $(1)/usr/lib/pango/1.6.0/modules \
74 $(1)/usr/bin \
75 $(1)/etc/init.d
76
77 $(CP) \
78 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
79 $(1)/usr/lib/
80
81 $(CP) \
82 $(PKG_INSTALL_DIR)/usr/lib/pango/1.6.0/modules/*.so* \
83 $(1)/usr/lib/pango/1.6.0/modules/
84
85 $(INSTALL_BIN) \
86 $(PKG_INSTALL_DIR)/usr/bin/pango-querymodules \
87 $(1)/usr/bin/
88
89 $(INSTALL_BIN) \
90 ./files/pango-querymodules.init \
91 $(1)/etc/init.d/pango-querymodules
92 endef
93
94 $(eval $(call BuildPackage,pango))