summaryrefslogtreecommitdiff
path: root/fontconfig/fontconfig_2.2.92.oe
blob: 50274e0b9a39117c3bb5471170c2a1dfa95140af (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
DESCRIPTION = "A library for configuring and customizing font access."
DEPENDS = "virtual/libc expat freetype freetype-native zlib"

FC_SONAME = "1.0.4"

SRC_URI = "http://pdx.freedesktop.org/~fontconfig/release/fontconfig-${PV}.tar.gz \
	   file://${FILESDIR}/freetype-includes.patch;patch=1;pnum=0 \
	   file://${FILESDIR}/makefile1.patch;patch=1;pnum=0 \
	   file://${FILESDIR}/makefile2.patch;patch=1;pnum=0"

S = "${WORKDIR}/fontconfig-${PV}"

inherit autotools libtool pkgconfig

EXTRA_OECONF = " --disable-docs "

do_compile () {
# XXX ${PV} dist missing some files !
	   touch fc-list/fc-list.1
	   touch fc-cache/fc-cache.1
	   oe_runmake -C fc-lang      "CC=${BUILD_CC}" \
	   	"CFLAGS=${BUILD_CFLAGS}" "LDFLAGS=${BUILD_LDFLAGS}" \
	   	"CPPFLAGS=${BUILD_CPPFLAGS}" "CXXFLAGS=${BUILD_CXXFLAGS}" \
		"FREETYPE_CFLAGS=-I${STAGING_INCDIR}/freetype2" "FREETYPE_LIBS=-lfreetype -lz"
	   oe_runmake -C fc-glyphname "CC=${BUILD_CC}" \
	   	"CFLAGS=${BUILD_CFLAGS}" "LDFLAGS=${BUILD_LDFLAGS}" \
	   	"CPPFLAGS=${BUILD_CPPFLAGS}" "CXXFLAGS=${BUILD_CXXFLAGS}"
		"FREETYPE_CFLAGS=-I${STAGING_INCDIR}/freetype2" "FREETYPE_LIBS=-lfreetype -lz"
	   oe_runmake
}


do_stage () {
	oe_soinstall src/.libs/libfontconfig.so.1.0.4 ${STAGING_LIBDIR}/
	install -m 0644 src/.libs/libfontconfig.a ${STAGING_LIBDIR}/
	install -m 0644 src/.libs/libfontconfig.lai ${STAGING_LIBDIR}/libfontconfig.la
	install -d ${STAGING_INCDIR}/fontconfig
	cp -a ${S}/fontconfig/*.h ${STAGING_INCDIR}/fontconfig/
}