inherit autotools pkgconfig binconfig-disabled multilib_header
+# Adapt autotools to work with the minimal autoconf usage in freetype
+AUTOTOOLS_SCRIPT_PATH = "${S}/builds/unix"
+CONFIGURE_SCRIPT = "${S}/configure"
+EXTRA_AUTORECONF += "--exclude=autoheader --exclude=automake"
+
PACKAGECONFIG ??= "zlib"
PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2"
TARGET_CPPFLAGS += "-D_FILE_OFFSET_BITS=64"
-do_configure() {
- # Need this because although the autotools infrastructure is in
- # builds/unix the configure script get written to ${S}, so we can't
- # just use AUTOTOOLS_SCRIPT_PATH.
- cd ${S}/builds/unix
- libtoolize --force --copy
- aclocal -I .
- gnu-configize --force
- autoconf
- cd ${B}
- oe_runconf
-}
-
do_install_append() {
oe_multilib_header freetype2/freetype/config/ftconfig.h
}