summaryrefslogtreecommitdiff
path: root/pango/pango_1.2.5.oe
blob: b63e18b3f3cfff2c2c275ecf94596aa303b18602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
DEPENDS = virtual/libc glib-2.0 fontconfig freetype zlib x11-cvs xft-cvs xproto-cvs

SRC_URI = http://ftp.gnome.org/pub/gnome/sources/pango/1.2/pango-${PV}.tar.bz2 \
	  file://${FILESDIR}/ft2.patch;patch=1 \
	  file://${FILESDIR}/m4.patch;patch=1

inherit autotools libtool pkgconfig

EXTRA_OECONF = '--disable-glibtest \
		--enable-explicit-deps=no'

FILES_${PN}-doc:=${FILES_pango-doc} ${datadir}/gtk-doc

do_compile_prepend () {
	if test -e ${S}/${HOST_PREFIX}libtool; then LIBTOOL=${S}/${HOST_PREFIX}libtool; else LIBTOOL=${S}/libtool; fi
	(cd tests && \
	/bin/sh $LIBTOOL --silent --mode=compile ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR}/glib-2.0 gen-all-unicode.c -c -o gen-all-unicode.o && \
	/bin/sh $LIBTOOL --silent --mode=link ${BUILD_CC} ${BUILD_LDFLAGS} -lglib-2.0 gen-all-unicode.o -o gen-all-unicode && \
	touch gen-all-unicode.c .libs/gen-all-unicode gen-all-unicode gen-all-unicode.o .deps/gen-all-unicode.Po)
}

SOV=0.200.5
do_stage () {
	install -m 0755 pango/.libs/libpangoft2-1.0.so.${SOV} ${STAGING_LIBDIR}/
	install -m 0755 pango/.libs/libpangoft2-1.0.lai ${STAGING_LIBDIR}/libpangoft2-1.0.la
	install -m 0755 pango/.libs/libpangoft2-1.0.a ${STAGING_LIBDIR}/
	install -m 0755 pango/.libs/libpangox-1.0.so.${SOV} ${STAGING_LIBDIR}/
	install -m 0755 pango/.libs/libpangox-1.0.lai ${STAGING_LIBDIR}/libpangox-1.0.la
	install -m 0755 pango/.libs/libpangox-1.0.a ${STAGING_LIBDIR}/
	install -m 0755 pango/.libs/libpangoxft-1.0.so.${SOV} ${STAGING_LIBDIR}/
	install -m 0755 pango/.libs/libpangoxft-1.0.lai ${STAGING_LIBDIR}/libpangoxft-1.0.la
	install -m 0755 pango/.libs/libpangoxft-1.0.a ${STAGING_LIBDIR}/
	install -m 0755 pango/.libs/libpango-1.0.so.${SOV} ${STAGING_LIBDIR}/
	install -m 0755 pango/.libs/libpango-1.0.lai ${STAGING_LIBDIR}/libpango-1.0.la
	install -m 0755 pango/.libs/libpango-1.0.a ${STAGING_LIBDIR}/
	ln -sf libpango-1.0.so.${SOV} ${STAGING_LIBDIR}/libpango-1.0.so.0
	ln -sf libpango-1.0.so.${SOV} ${STAGING_LIBDIR}/libpango-1.0.so
	ln -sf libpangox-1.0.so.${SOV} ${STAGING_LIBDIR}/libpangox-1.0.so.0
	ln -sf libpangox-1.0.so.${SOV} ${STAGING_LIBDIR}/libpangox-1.0.so
	ln -sf libpangoxft-1.0.so.${SOV} ${STAGING_LIBDIR}/libpangoxft-1.0.so.0
	ln -sf libpangoxft-1.0.so.${SOV} ${STAGING_LIBDIR}/libpangoxft-1.0.so
	ln -sf libpangoft2-1.0.so.${SOV} ${STAGING_LIBDIR}/libpangoft2-1.0.so.0
	ln -sf libpangoft2-1.0.so.${SOV} ${STAGING_LIBDIR}/libpangoft2-1.0.so
	install -d ${STAGING_INCDIR}/pango
	install -m 0644 pango/pango*.h ${STAGING_INCDIR}/pango/
}