From 95ba7f025fe8db6a9255dc526e30ff3ff74f46bb Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 18 Sep 2016 18:05:29 +0300 Subject: [PATCH] libsdl2-gfx: Add recipe Signed-off-by: Marko Lindqvist --- .../libsdl2-gfx/acinclude2m4.patch | 23 +++++++++++++++++ dependencies/libsdl2-gfx/libsdl2-gfx_1.0.1.bb | 25 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 dependencies/libsdl2-gfx/libsdl2-gfx/acinclude2m4.patch create mode 100644 dependencies/libsdl2-gfx/libsdl2-gfx_1.0.1.bb diff --git a/dependencies/libsdl2-gfx/libsdl2-gfx/acinclude2m4.patch b/dependencies/libsdl2-gfx/libsdl2-gfx/acinclude2m4.patch new file mode 100644 index 0000000..2590dc8 --- /dev/null +++ b/dependencies/libsdl2-gfx/libsdl2-gfx/acinclude2m4.patch @@ -0,0 +1,23 @@ +diff -Nurd SDL2_gfx-1.0.1/autogen.sh SDL2_gfx-1.0.1/autogen.sh +--- SDL2_gfx-1.0.1/autogen.sh 2012-09-05 04:51:19.000000000 +0300 ++++ SDL2_gfx-1.0.1/autogen.sh 2016-09-18 18:21:14.113749811 +0300 +@@ -1,6 +1,6 @@ + #!/bin/sh + # +-aclocal -I acinclude ++aclocal -I m4 + automake --foreign --include-deps --add-missing --copy + autoconf + +diff -Nurd SDL2_gfx-1.0.1/configure.in SDL2_gfx-1.0.1/configure.in +--- SDL2_gfx-1.0.1/configure.in 2014-06-19 09:11:23.000000000 +0300 ++++ SDL2_gfx-1.0.1/configure.in 2016-09-18 18:21:59.205661379 +0300 +@@ -44,6 +44,8 @@ + dnl Setup for automake + AM_INIT_AUTOMAKE(SDL2_gfx, $VERSION) + ++AC_CONFIG_MACRO_DIRS([m4]) ++ + dnl Check for tools + AC_PROG_LIBTOOL + AC_PROG_CC diff --git a/dependencies/libsdl2-gfx/libsdl2-gfx_1.0.1.bb b/dependencies/libsdl2-gfx/libsdl2-gfx_1.0.1.bb new file mode 100644 index 0000000..8f0d2e4 --- /dev/null +++ b/dependencies/libsdl2-gfx/libsdl2-gfx_1.0.1.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "SDL2 graphics drawing primitives and other support functions." +SECTION = "libs" + +LICENSE = "zlib" +LIC_FILES_CHKSUM = "file://COPYING;md5=e04e1feb331457e9da15e0c88d0e8097" + +DEPENDS = "virtual/libsdl2" + +SRC_URI = "\ + http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-${PV}.tar.gz \ + file://acinclude2m4.patch \ +" + +SRC_URI[md5sum] = "9c96816618e3e086d885d1d214e59d87" +SRC_URI[sha256sum] = "d69bcbceb811b4e5712fbad3ede737166327f44b727f1388c32581dbbe8c599a" + +S = "${WORKDIR}/SDL2_gfx-${PV}" + +inherit autotools pkgconfig + +EXTRA_OECONF += "SDL_CONFIG=${STAGING_BINDIR_CROSS}/pkg-config sdl2" + +do_unpack_append() { + os.rename("SDL2_gfx-1.0.1/acinclude", "SDL2_gfx-1.0.1/m4") +}