summaryrefslogtreecommitdiff
path: root/freetype/freetype_2.1.7.oe
blob: f98469d6e579d009f57c2c68c1df627e846cac38 (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
DESCRIPTION = Freetype font rendering library
DEPENDS = virtual/libc
RDEPENDS = libc6

FT_SONAME = 6.3.5

SRC_URI = ftp://ftp.freetype.org/freetype/freetype2/freetype-${PV}.tar.bz2 \
	  file://${FILESDIR}/configure.patch;patch=1

inherit autotools libtool pkgconfig

LIBTOOL=${S}/builds/unix/${HOST_SYS}-libtool
EXTRA_OEMAKE="'LIBTOOL=${LIBTOOL}'"

do_configure () {
	cd builds/unix
	aclocal -I .
	autoconf
	cd ${S}
	oe_runconf
}

do_stage () {
	install -m 755 -D objs/.libs/libfreetype.so.${FT_SONAME} ${STAGING_LIBDIR}/libfreetype.so.${FT_SONAME}
	ln -sf ./libfreetype.so.${FT_SONAME} ${STAGING_LIBDIR}/libfreetype.so.6
	ln -sf ./libfreetype.so.${FT_SONAME} ${STAGING_LIBDIR}/libfreetype.so

	install -m 0644 objs/.libs/libfreetype.lai ${STAGING_LIBDIR}/libfreetype.la
	cp -a include/*.h ${STAGING_INCDIR}
	install -d ${STAGING_INCDIR}/freetype2
	cp -a include/freetype ${STAGING_INCDIR}/freetype2/

	sed -e 's,${prefix},${STAGING_DIR}/target,' < builds/unix/freetype-config > ${STAGING_BINDIR}/freetype-config
	chmod u+x ${STAGING_BINDIR}/freetype-config
}