summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-08-01 12:43:57 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-08-01 12:43:57 +0000
commit8a766b27a2ea44ee41988456f87fb3f4accbf5d9 (patch)
tree85065aa4c61490ac0da0965c79fb89ebb3a189a9 /meta
parenta40e1ffd56734781d99abcf1fb3f09940e3bfb8e (diff)
downloadpoky-8a766b27a2ea44ee41988456f87fb3f4accbf5d9.tar.gz
freetype: added 2.3.5
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2271 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/freetype/freetype-2.3.5/fix-x86_64-build.patch26
-rw-r--r--meta/packages/freetype/freetype-native_2.3.5.bb21
-rw-r--r--meta/packages/freetype/freetype_2.3.5.bb41
3 files changed, 88 insertions, 0 deletions
diff --git a/meta/packages/freetype/freetype-2.3.5/fix-x86_64-build.patch b/meta/packages/freetype/freetype-2.3.5/fix-x86_64-build.patch
new file mode 100644
index 0000000000..ae504dcb0b
--- /dev/null
+++ b/meta/packages/freetype/freetype-2.3.5/fix-x86_64-build.patch
@@ -0,0 +1,26 @@
1Index: freetype-2.3.1/builds/unix/configure.raw
2===================================================================
3--- freetype-2.3.1.orig/builds/unix/configure.raw
4+++ freetype-2.3.1/builds/unix/configure.raw
5@@ -40,7 +40,7 @@ AC_SUBST(EXEEXT)
6 # checks for native programs to generate building tool
7
8 if test ${cross_compiling} = yes; then
9- AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build-gcc})
10+ AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build}-gcc)
11 test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, gcc, gcc)
12 test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, cc, cc, , , /usr/ucb/cc)
13 test -z "${CC_BUILD}" && AC_MSG_ERROR([cannot find native C compiler])
14Index: freetype-2.3.1/builds/unix/configure.ac
15===================================================================
16--- freetype-2.3.1.orig/builds/unix/configure.ac
17+++ freetype-2.3.1/builds/unix/configure.ac
18@@ -40,7 +40,7 @@ AC_SUBST(EXEEXT)
19 # checks for native programs to generate building tool
20
21 if test ${cross_compiling} = yes; then
22- AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build-gcc})
23+ AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build}-gcc)
24 test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, gcc, gcc)
25 test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, cc, cc, , , /usr/ucb/cc)
26 test -z "${CC_BUILD}" && AC_MSG_ERROR([cannot find native C compiler])
diff --git a/meta/packages/freetype/freetype-native_2.3.5.bb b/meta/packages/freetype/freetype-native_2.3.5.bb
new file mode 100644
index 0000000000..b5e8b307cd
--- /dev/null
+++ b/meta/packages/freetype/freetype-native_2.3.5.bb
@@ -0,0 +1,21 @@
1require freetype_${PV}.bb
2inherit native
3DEPENDS = ""
4FILESPATH = "${FILE_DIRNAME}/freetype-${PV}:${FILE_DIRNAME}/freetype:${FILE_DIRNAME}/files"
5
6EXTRA_OEMAKE=
7
8do_configure() {
9 (cd builds/unix && gnu-configize) || die "failure running gnu-configize"
10 oe_runconf
11}
12
13do_stage() {
14 autotools_stage_includes
15 oe_libinstall -so -a -C objs libfreetype ${STAGING_LIBDIR}
16}
17
18do_install() {
19 :
20}
21
diff --git a/meta/packages/freetype/freetype_2.3.5.bb b/meta/packages/freetype/freetype_2.3.5.bb
new file mode 100644
index 0000000000..c1febe8a90
--- /dev/null
+++ b/meta/packages/freetype/freetype_2.3.5.bb
@@ -0,0 +1,41 @@
1DESCRIPTION = "Freetype font rendering library"
2SECTION = "libs"
3LICENSE = "freetype"
4PR = "r2"
5
6SRC_URI = "${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \
7 file://fix-x86_64-build.patch;patch=1 \
8 file://no-hardcode.patch;patch=1 \
9 "
10
11S = "${WORKDIR}/freetype-${PV}"
12
13inherit autotools pkgconfig binconfig
14
15DEFAULT_PREFERENCE = "-1"
16
17LIBTOOL = "${S}/builds/unix/${HOST_SYS}-libtool"
18EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
19EXTRA_OECONF = "--without-zlib"
20
21do_configure() {
22 cd builds/unix
23 gnu-configize
24 aclocal -I .
25 autoconf
26 cd ${S}
27 oe_runconf
28}
29
30do_compile_prepend() {
31 ${BUILD_CC} -o objs/apinames src/tools/apinames.c
32}
33
34do_stage() {
35 export LIBTOOL='${LIBTOOL}'
36 autotools_stage_all
37 oe_libinstall -so -a -C objs libfreetype ${STAGING_LIBDIR}
38}
39
40FILES_${PN} = "${libdir}/lib*.so.*"
41FILES_${PN}-dev += "${bindir}"