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