added pango
[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
18 include $(INCLUDE_DIR)/package.mk
19
20 EXTRA_LDFLAGS:="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
21
22 #CONFIGURE_VARS+=FONTCONFIG_LIBS="-L/usr/src/owrt-X2/staging_dir/i386/usr/lib $(STAGING_DIR)/usr/lib/libfontconfig.la -lz"
23
24 CONFIGURE_VARS+=RELINK_DIR=$(STAGING_DIR)
25
26 define Package/pango
27 SECTION:=xorg-libs
28 CATEGORY:=Xorg
29 SUBMENU:=libraries
30 TITLE:=Text layout and rendering library
31 DEPENDS:=+xorg-server-essentials +cairo +glib2
32 endef
33
34 define Build/Configure
35 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
36 if [ -x $(CONFIGURE_CMD) ]; then \
37 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
38 $(CONFIGURE_VARS) \
39 $(CONFIGURE_CMD) \
40 $(CONFIGURE_ARGS_XTRA) \
41 $(CONFIGURE_ARGS) ;\
42 fi \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR)
48 #$(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
49 $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{lib/pkgconfig,include/pango-1.0/pango/}
50 $(CP) $(PKG_BUILD_DIR)/pango/.libs/*so* $(PKG_INSTALL_DIR)/usr/lib/
51 rm -f $(PKG_INSTALL_DIR)/usr/lib/*T
52 $(CP) $(PKG_BUILD_DIR)/pango/*.la $(PKG_INSTALL_DIR)/usr/lib/
53 $(CP) $(PKG_BUILD_DIR)/*.pc $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/
54 rm $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*uninstalled.pc
55 $(CP) $(PKG_BUILD_DIR)/pango/*.h $(PKG_INSTALL_DIR)/usr/include/pango-1.0/pango/
56 endef
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(STAGING_DIR)/usr/{lib,include}
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ $(STAGING_DIR)/usr/lib/
62 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/
63 $(SED) "s,"prefix\=.*",prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/lib/pkgconfig/pango*.pc
64 $(SED) "s,"exec_prefix\=.*",exec_prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/lib/pkgconfig/pango*.pc
65 $(SED) "s,Libs:,Libs: -L$(STAGING_DIR)/usr/lib/libiconv/lib/ -L$(STAGING_DIR)/usr/lib/libintl/lib/ ,g" $(STAGING_DIR)/usr/lib/pkgconfig/pango*.pc
66 $(SED) "s,"libdir\=\'/usr/lib\'",libdir='$(STAGING_DIR)/usr/lib\'," $(STAGING_DIR)/usr/lib/libpango*.la
67 endef
68
69 define Package/pango/Install
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,pango))