lots of package cleanups/fixes
[openwrt/svn-archive/archive.git] / XOrg / lib / pango / Makefile
1 #
2 # Copyright (C) 2006 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.12.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.gnome.org/pub/gnome/sources/pango/1.12/
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 EXTRA_LDFLAGS:=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib/ -L$(STAGING_DIR)/usr/lib/libintl/lib/
22
23 define Package/pango
24 SECTION:=xorg-libs
25 CATEGORY:=Xorg
26 SUBMENU:=libraries
27 TITLE:=Text layout and rendering library
28 DEPENDS:=+xorg-server-essentials +cairo +glib2
29 endef
30
31 define Build/Configure
32 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
33 if [ -x $(CONFIGURE_CMD) ]; then \
34 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
35 $(CONFIGURE_VARS) \
36 $(CONFIGURE_CMD) \
37 $(CONFIGURE_ARGS_XTRA) \
38 $(CONFIGURE_ARGS) ;\
39 fi \
40 )
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR)
45 #$(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
46 $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{lib/pkgconfig,include/pango-1.0/pango/}
47 $(CP) $(PKG_BUILD_DIR)/pango/.libs/*so* $(PKG_INSTALL_DIR)/usr/lib/
48 rm -f $(PKG_INSTALL_DIR)/usr/lib/*T
49 $(CP) $(PKG_BUILD_DIR)/pango/*.la $(PKG_INSTALL_DIR)/usr/lib/
50 $(CP) $(PKG_BUILD_DIR)/*.pc $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/
51 rm $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*uninstalled.pc
52 $(CP) $(PKG_BUILD_DIR)/pango/*.h $(PKG_INSTALL_DIR)/usr/include/pango-1.0/pango/
53 endef
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/{lib,include}
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ $(1)/usr/lib/
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
60 $(SED) "s,Libs:,Libs: -L$$$${libdir}/libiconv/lib/ -L$$$${libdir}/libintl/lib/ ,g" $(1)/usr/lib/pkgconfig/pango*.pc
61 endef
62
63 define Package/pango/Install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,pango))