From 6bfa97b034228b42175f4d0d83f3f2565157d30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sat, 2 Jan 2016 00:13:12 +0100 Subject: [PATCH] libsdl2-ttf: initial add 2.0.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it is sdl2 version of libsdl-ttf and reuses patches from libsdl-ttf Signed-off-by: Andreas Müller Signed-off-by: Martin Jansa --- .../configure.patch | 0 .../use.pkg-config.for.freetype2.patch | 0 .../libsdl-ttf/libsdl2-ttf_2.0.12.bb | 31 +++++++++++++++++++ 3 files changed, 31 insertions(+) rename meta-oe/recipes-support/libsdl-ttf/{libsdl-ttf-2.0.10 => files}/configure.patch (100%) rename meta-oe/recipes-support/libsdl-ttf/{libsdl-ttf-2.0.10 => files}/use.pkg-config.for.freetype2.patch (100%) create mode 100644 meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf_2.0.12.bb diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/configure.patch b/meta-oe/recipes-support/libsdl-ttf/files/configure.patch similarity index 100% rename from meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/configure.patch rename to meta-oe/recipes-support/libsdl-ttf/files/configure.patch diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/use.pkg-config.for.freetype2.patch b/meta-oe/recipes-support/libsdl-ttf/files/use.pkg-config.for.freetype2.patch similarity index 100% rename from meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/use.pkg-config.for.freetype2.patch rename to meta-oe/recipes-support/libsdl-ttf/files/use.pkg-config.for.freetype2.patch diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf_2.0.12.bb b/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf_2.0.12.bb new file mode 100644 index 0000000000..47ce11550a --- /dev/null +++ b/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf_2.0.12.bb @@ -0,0 +1,31 @@ +SUMMARY = "Simple DirectMedia Layer truetype font library" +SECTION = "libs" +DEPENDS = "virtual/libsdl2 freetype" +LICENSE = "Zlib" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=cdd16c6436d6b8fcbdd22a54d68c6dd3" + +SRC_URI = " \ + http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \ + file://use.pkg-config.for.freetype2.patch \ +" + +S = "${WORKDIR}/SDL2_ttf-${PV}" +#EXTRA_OECONF += "SDL_CONFIG=${STAGING_BINDIR_CROSS}/sdl-config " + +inherit autotools + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_configure_prepend() { + touch ${S}/NEWS ${S}/README ${S}/AUTHORS ${S}/ChangeLog + + # Removing these files fixes a libtool version mismatch. + MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" + + for i in ${MACROS}; do + rm -f ${S}/acinclude/$i + done +} + +SRC_URI[md5sum] = "79787216b56cb4707f39d538f2225e00" +SRC_URI[sha256sum] = "8728605443ea1cca5cad501dc34dc0cb15135d1e575551da6d151d213d356f6e"