summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/freetype/freetype/use-right-libtool.patch14
-rw-r--r--meta/recipes-graphics/freetype/freetype_2.6.bb32
2 files changed, 26 insertions, 20 deletions
diff --git a/meta/recipes-graphics/freetype/freetype/use-right-libtool.patch b/meta/recipes-graphics/freetype/freetype/use-right-libtool.patch
new file mode 100644
index 0000000000..20838813dc
--- /dev/null
+++ b/meta/recipes-graphics/freetype/freetype/use-right-libtool.patch
@@ -0,0 +1,14 @@
1Freetype think that it knows best about where libtool is, and explicitly the
2libtool autoconf macros telling it where to find the libtool script. Of course
3we prefix the script with the target triplet, so it's wrong. Fix this by
4removing the forced assignment, so the configure script's knowledge of where it
5put libtool is used.
6
7Upstream-Status: Pending
8Signed-off-by: Ross Burton <ross.burton@intel.com>
9
10--- freetype-2.6/builds/unix/unix-cc.in.orig 2016-01-07 19:21:45.244943479 +0000
11+++ freetype-2.6/builds/unix/unix-cc.in 2016-01-07 19:21:50.213112131 +0000
12@@ -19,1 +18,1 @@
13-LIBTOOL := $(FT_LIBTOOL_DIR)/libtool
14+LIBTOOL := $(FT_LIBTOOL_DIR)/@LIBTOOL@
diff --git a/meta/recipes-graphics/freetype/freetype_2.6.bb b/meta/recipes-graphics/freetype/freetype_2.6.bb
index 70599c67a9..17ab1c87a7 100644
--- a/meta/recipes-graphics/freetype/freetype_2.6.bb
+++ b/meta/recipes-graphics/freetype/freetype_2.6.bb
@@ -13,48 +13,40 @@ LIC_FILES_CHKSUM = "file://docs/LICENSE.TXT;md5=c017ff17fc6f0794adf93db5559ccd56
13 13
14SECTION = "libs" 14SECTION = "libs"
15 15
16SRC_URI = "${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2" 16SRC_URI = "${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \
17 file://use-right-libtool.patch"
17SRC_URI[md5sum] = "5682890cb0267f6671dd3de6eabd3e69" 18SRC_URI[md5sum] = "5682890cb0267f6671dd3de6eabd3e69"
18SRC_URI[sha256sum] = "8469fb8124764f85029cc8247c31e132a2c5e51084ddce2a44ea32ee4ae8347e" 19SRC_URI[sha256sum] = "8469fb8124764f85029cc8247c31e132a2c5e51084ddce2a44ea32ee4ae8347e"
19 20
20BINCONFIG = "${bindir}/freetype-config" 21BINCONFIG = "${bindir}/freetype-config"
21 22
22inherit autotools-brokensep pkgconfig binconfig-disabled multilib_header 23inherit autotools pkgconfig binconfig-disabled multilib_header
23 24
24LIBTOOL = "${S}/builds/unix/${HOST_SYS}-libtool" 25EXTRA_OECONF = "CC_BUILD='${BUILD_CC}'"
25EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
26EXTRA_OEMAKE_class-native = ""
27EXTRA_OECONF = "--without-zlib --without-bzip2 CC_BUILD='${BUILD_CC}'"
28TARGET_CPPFLAGS += "-D_FILE_OFFSET_BITS=64" 26TARGET_CPPFLAGS += "-D_FILE_OFFSET_BITS=64"
29 27
30 28PACKAGECONFIG ??= "zlib"
31PACKAGECONFIG ??= "" 29PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2"
30PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
32PACKAGECONFIG[pixmap] = "--with-png,--without-png,libpng" 31PACKAGECONFIG[pixmap] = "--with-png,--without-png,libpng"
33# This results in a circular dependency so enabling is non-trivial 32# This results in a circular dependency so enabling is non-trivial
34PACKAGECONFIG[harfbuzz] = "--with-harfbuzz,--without-harfbuzz,harfbuzz" 33PACKAGECONFIG[harfbuzz] = "--with-harfbuzz,--without-harfbuzz,harfbuzz"
35 34
36do_configure() { 35do_configure() {
37 cd builds/unix 36 # Need this because although the autotools infrastructure is in
37 # builds/unix the configure script get written to ${S}, so we can't
38 # just use AUTOTOOLS_SCRIPT_PATH.
39 cd ${S}/builds/unix
38 libtoolize --force --copy 40 libtoolize --force --copy
39 aclocal -I . 41 aclocal -I .
40 gnu-configize --force 42 gnu-configize --force
41 autoconf 43 autoconf
42 cd ${S} 44 cd ${B}
43 oe_runconf
44}
45
46do_configure_class-native() {
47 (cd builds/unix && gnu-configize) || die "failure running gnu-configize"
48 oe_runconf 45 oe_runconf
49} 46}
50 47
51do_compile_prepend() {
52 ${BUILD_CC} -o objs/apinames src/tools/apinames.c
53}
54
55do_install_append() { 48do_install_append() {
56 oe_multilib_header freetype2/config/ftconfig.h 49 oe_multilib_header freetype2/config/ftconfig.h
57} 50}
58 51
59BBCLASSEXTEND = "native" 52BBCLASSEXTEND = "native"
60