2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@GNOME
/$(PKG_NAME
)/1.20/
17 PKG_MD5SUM
:=052b60a12f6b2eb4f251ab961f2b2b84
20 include $(INCLUDE_DIR
)/package.mk
22 EXTRA_LDFLAGS
:=-Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
23 -L
$(STAGING_DIR
)/usr
/lib
/libiconv
/lib
/ \
24 -L
$(STAGING_DIR
)/usr
/lib
/libintl
/lib
/
30 TITLE
:=Text layout and rendering library
31 DEPENDS
:=+xorg-server-essentials
+cairo
+glib2
34 define Package
/pango
/description
35 Pango is a library for layout and rendering of text
, with an emphasis
36 on internationalization. Pango can be used anywhere that text layout
37 is needed
; however
, most of the work on Pango so far has been done using
38 the GTK
+ widget toolkit
as a
test platform. Pango forms the core of text
39 and font handling for GTK
+-2.x.
43 $(MAKE
) -C
$(PKG_BUILD_DIR
)
44 $(INSTALL_DIR
) $(PKG_INSTALL_DIR
)/usr
/{lib
/pkgconfig
,include/pango-1.0
/pango
/,bin
/,lib
/pango
/1.6.0/modules
}
45 $(CP
) $(PKG_BUILD_DIR
)/pango
/.libs
/*so
* $(PKG_INSTALL_DIR
)/usr
/lib
/
46 rm -f
$(PKG_INSTALL_DIR
)/usr
/lib
/*T
47 $(CP
) $(PKG_BUILD_DIR
)/pango
/.libs
/pango-querymodules
$(PKG_INSTALL_DIR
)/usr
/bin
/
48 cd
$(PKG_BUILD_DIR
) ;for a in
`find -name pango-*.so`; do cp
$$$$a $(PKG_INSTALL_DIR
)/usr
/lib
/pango
/1.6.0/modules
/;done
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
/
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
/pango
/ $(1)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/ $(1)/usr
/lib
/
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
61 $(SED
) 's,Libs:,Libs: -L$$$${libdir}/libiconv/lib/ -L$$$${libdir}/libintl/lib/ ,g' $(1)/usr
/lib
/pkgconfig
/pango
*.
pc
64 define Package
/pango
/install
65 $(INSTALL_DIR
) $(1)/usr
/{lib
,bin
}
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
*so
* $(1)/usr
/lib
/
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
68 $(CP
) -r
$(PKG_INSTALL_DIR
)/usr
/lib
/pango
/ $(1)/usr
/lib
69 $(INSTALL_DIR
) $(1)/etc
/init.d
/
70 $(INSTALL_BIN
) .
/files
/pango-querymodules.init
$(1)/etc
/init.d
/pango-querymodules
73 $(eval
$(call BuildPackage
,pango
))