summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2018-08-16 20:27:47 +0200
committerKhem Raj <raj.khem@gmail.com>2018-08-19 16:09:28 -0700
commit23561de348d225aba3d01bb1b7355bbd43b309ba (patch)
tree321a118e9db9bc47bfb97d3aa8985b67b15ca12f /meta-oe/recipes-support
parent227b687ecd3e92f979d2297982ef72142a3c798b (diff)
downloadmeta-openembedded-23561de348d225aba3d01bb1b7355bbd43b309ba.tar.gz
move all libsdl recipes in one folder and follow oe-core's folder for libsdl
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support')
-rw-r--r--meta-oe/recipes-support/libsdl-ttf/libsdl-ttf/use.pkg-config.for.freetype2.patch62
-rw-r--r--meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.11.bb29
-rw-r--r--meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/automake_foreign.patch21
-rw-r--r--meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/use.pkg-config.for.freetype2.patch62
-rw-r--r--meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf_2.0.14.bb30
5 files changed, 0 insertions, 204 deletions
diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf/use.pkg-config.for.freetype2.patch b/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf/use.pkg-config.for.freetype2.patch
deleted file mode 100644
index 1116c34d07..0000000000
--- a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf/use.pkg-config.for.freetype2.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From 8cf318197eea91bec6057308befbb29426d69014 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Thu, 22 May 2014 10:59:33 +0100
4Subject: [PATCH] freetype-config was removed from oe-core in
5
6commit 5870bd272b0b077d0826fb900b251884c1c05061
7
8 binconfig-disabled: Add class and use
9
10---
11 configure.in | 38 +++++---------------------------------
12 1 file changed, 5 insertions(+), 33 deletions(-)
13
14diff --git a/configure.in b/configure.in
15index 865075e..d7a5a81 100644
16--- a/configure.in
17+++ b/configure.in
18@@ -90,39 +90,11 @@ case "$host" in
19 esac
20 AM_CONDITIONAL(USE_VERSION_RC, test x$use_version_rc = xtrue)
21
22-dnl Check for the FreeType 2 library
23-dnl
24-dnl Get the cflags and libraries from the freetype-config script
25-dnl
26-AC_ARG_WITH(freetype-prefix,[ --with-freetype-prefix=PFX Prefix where FREETYPE is
27-installed (optional)],
28- freetype_prefix="$withval", freetype_prefix="")
29-AC_ARG_WITH(freetype-exec-prefix,[ --with-freetype-exec-prefix=PFX Exec prefix
30-where FREETYPE is installed (optional)],
31- freetype_exec_prefix="$withval", freetype_exec_prefix="")
32-
33-if test x$freetype_exec_prefix != x ; then
34- freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix"
35- if test x${FREETYPE_CONFIG+set} != xset ; then
36- FREETYPE_CONFIG=$freetype_exec_prefix/bin/freetype-config
37- fi
38-fi
39-if test x$freetype_prefix != x ; then
40- freetype_args="$freetype_args --prefix=$freetype_prefix"
41- if test x${FREETYPE_CONFIG+set} != xset ; then
42- FREETYPE_CONFIG=$freetype_prefix/bin/freetype-config
43- fi
44-fi
45-AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
46-no_freetype=""
47-if test "$FREETYPE_CONFIG" = "no" ; then
48- AC_MSG_ERROR([
49-*** Unable to find FreeType2 library (http://www.freetype.org/)
50-])
51-else
52- CFLAGS="$CFLAGS `$FREETYPE_CONFIG $freetypeconf_args --cflags`"
53- LIBS="$LIBS `$FREETYPE_CONFIG $freetypeconf_args --libs`"
54-fi
55+PKG_CHECK_MODULES(FREETYPE2, freetype2,
56+ CFLAGS="$CFLAGS $FREETYPE2_CFLAGS"
57+ LIBS="$LIBS $FREETYPE2_LIBS",
58+ AC_MSG_ERROR([*** Unable to find FreeType2 library (http://www.freetype.org/)])
59+)
60
61 dnl Check for SDL
62 SDL_VERSION=1.2.4
diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.11.bb b/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.11.bb
deleted file mode 100644
index d8b378f2cd..0000000000
--- a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.11.bb
+++ /dev/null
@@ -1,29 +0,0 @@
1SUMMARY = "Simple DirectMedia Layer truetype font library"
2SECTION = "libs"
3DEPENDS = "virtual/libsdl freetype"
4LICENSE = "Zlib"
5LIC_FILES_CHKSUM = "file://COPYING;md5=22800d1b3701377aae0b61ee36f5c303"
6
7SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${PV}.tar.gz \
8 file://use.pkg-config.for.freetype2.patch \
9"
10SRC_URI[md5sum] = "61e29bd9da8d245bc2471d1b2ce591aa"
11SRC_URI[sha256sum] = "724cd895ecf4da319a3ef164892b72078bd92632a5d812111261cde248ebcdb7"
12
13S = "${WORKDIR}/SDL_ttf-${PV}"
14
15inherit autotools pkgconfig
16
17LDFLAGS += "-lm"
18
19do_configure_prepend() {
20 # make autoreconf happy
21 touch ${S}/NEWS ${S}/AUTHORS ${S}/ChangeLog
22
23 # Removing these files fixes a libtool version mismatch.
24 MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
25
26 for i in ${MACROS}; do
27 rm -f ${S}/acinclude/$i
28 done
29}
diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/automake_foreign.patch b/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/automake_foreign.patch
deleted file mode 100644
index 871e6e94ef..0000000000
--- a/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/automake_foreign.patch
+++ /dev/null
@@ -1,21 +0,0 @@
1From f9c4ad3a171d676e3818b8f6897f325ccf0b2203 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 9 May 2017 00:57:10 -0700
4
5---
6 Makefile.am | 2 ++
7 1 file changed, 2 insertions(+)
8
9diff --git a/Makefile.am b/Makefile.am
10index 8166d91..8e05e49 100644
11--- a/Makefile.am
12+++ b/Makefile.am
13@@ -2,6 +2,8 @@
14
15 lib_LTLIBRARIES = libSDL2_ttf.la
16
17+AUTOMAKE_OPTIONS = foreign
18+
19 libSDL2_ttfincludedir = $(includedir)/SDL2
20 libSDL2_ttfinclude_HEADERS = \
21 SDL_ttf.h
diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/use.pkg-config.for.freetype2.patch b/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/use.pkg-config.for.freetype2.patch
deleted file mode 100644
index 1dfbec6edd..0000000000
--- a/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/use.pkg-config.for.freetype2.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From e6d2c0e130811c15b5f5cc10221fae182cb8609e Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Thu, 22 May 2014 10:59:33 +0100
4Subject: [PATCH] freetype-config was removed from oe-core in
5
6commit 5870bd272b0b077d0826fb900b251884c1c05061
7
8 binconfig-disabled: Add class and use
9
10---
11 configure.in | 38 +++++---------------------------------
12 1 file changed, 5 insertions(+), 33 deletions(-)
13
14diff --git a/configure.in b/configure.in
15index 9b36e15..f300cae 100644
16--- a/configure.in
17+++ b/configure.in
18@@ -86,39 +86,11 @@ case "$host" in
19 esac
20 AM_CONDITIONAL(USE_VERSION_RC, test x$use_version_rc = xtrue)
21
22-dnl Check for the FreeType 2 library
23-dnl
24-dnl Get the cflags and libraries from the freetype-config script
25-dnl
26-AC_ARG_WITH(freetype-prefix,[ --with-freetype-prefix=PFX Prefix where FREETYPE is
27-installed (optional)],
28- freetype_prefix="$withval", freetype_prefix="")
29-AC_ARG_WITH(freetype-exec-prefix,[ --with-freetype-exec-prefix=PFX Exec prefix
30-where FREETYPE is installed (optional)],
31- freetype_exec_prefix="$withval", freetype_exec_prefix="")
32-
33-if test x$freetype_exec_prefix != x ; then
34- freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix"
35- if test x${FREETYPE_CONFIG+set} != xset ; then
36- FREETYPE_CONFIG=$freetype_exec_prefix/bin/freetype-config
37- fi
38-fi
39-if test x$freetype_prefix != x ; then
40- freetype_args="$freetype_args --prefix=$freetype_prefix"
41- if test x${FREETYPE_CONFIG+set} != xset ; then
42- FREETYPE_CONFIG=$freetype_prefix/bin/freetype-config
43- fi
44-fi
45-AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
46-no_freetype=""
47-if test "$FREETYPE_CONFIG" = "no" ; then
48- AC_MSG_ERROR([
49-*** Unable to find FreeType2 library (http://www.freetype.org/)
50-])
51-else
52- CFLAGS="$CFLAGS `$FREETYPE_CONFIG $freetypeconf_args --cflags`"
53- LIBS="$LIBS `$FREETYPE_CONFIG $freetypeconf_args --libs`"
54-fi
55+PKG_CHECK_MODULES(FREETYPE2, freetype2,
56+ CFLAGS="$CFLAGS $FREETYPE2_CFLAGS"
57+ LIBS="$LIBS $FREETYPE2_LIBS",
58+ AC_MSG_ERROR([*** Unable to find FreeType2 library (http://www.freetype.org/)])
59+)
60
61 dnl Check for SDL
62 SDL_VERSION=2.0.0
diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf_2.0.14.bb b/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf_2.0.14.bb
deleted file mode 100644
index 4601593ad8..0000000000
--- a/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf_2.0.14.bb
+++ /dev/null
@@ -1,30 +0,0 @@
1SUMMARY = "Simple DirectMedia Layer truetype font library"
2SECTION = "libs"
3DEPENDS = "virtual/libsdl2 freetype virtual/libgl"
4LICENSE = "Zlib"
5LIC_FILES_CHKSUM = "file://COPYING.txt;md5=cb33e7c4df9fbde389f149ad6bc93ce5"
6
7SRC_URI = " \
8 http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \
9 file://use.pkg-config.for.freetype2.patch \
10 file://automake_foreign.patch \
11"
12SRC_URI[md5sum] = "e53c05e1e7f1382c316afd6c763388b1"
13SRC_URI[sha256sum] = "34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276"
14
15S = "${WORKDIR}/SDL2_ttf-${PV}"
16
17inherit autotools pkgconfig distro_features_check
18
19# links to libGL.so
20REQUIRED_DISTRO_FEATURES += "x11 opengl"
21
22do_configure_prepend() {
23 # Removing these files fixes a libtool version mismatch.
24 MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
25
26 for i in ${MACROS}; do
27 rm -f ${S}/acinclude/$i
28 done
29}
30ASNEEDED = ""