diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-17 14:47:00 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-07-22 00:01:51 +0200 |
commit | 578663d03529ac34dc411f925bd8e429ae91642b (patch) | |
tree | cf45558187aef7d2f3b0d2c13c293487dfde00ba | |
parent | e129bf3b527a9e8471d38da2e1552c32257d5c0c (diff) | |
download | meta-openembedded-578663d03529ac34dc411f925bd8e429ae91642b.tar.gz |
libsdl-ttf: Update configure.patch
Update configure.patch to modernise configure.in, in particular passing the
foreign option to automake. The other changes are other modernisations
that were needed to make that.
Also use rm -f so that do_configure can rerun in the prepend.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/configure.patch | 45 | ||||
-rw-r--r-- | meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.10.bb | 2 |
2 files changed, 43 insertions, 4 deletions
diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/configure.patch b/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/configure.patch index 2069644f9b..de88f0a34a 100644 --- a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/configure.patch +++ b/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf-2.0.10/configure.patch | |||
@@ -1,8 +1,38 @@ | |||
1 | Index: SDL_ttf-2.0.10/configure.in | 1 | Index: SDL_ttf-2.0.10/configure.in |
2 | =================================================================== | 2 | =================================================================== |
3 | --- SDL_ttf-2.0.10.orig/configure.in 2010-10-15 10:54:51.392730531 +0200 | 3 | --- SDL_ttf-2.0.10.orig/configure.in 2009-10-12 23:06:38.000000000 +0000 |
4 | +++ SDL_ttf-2.0.10/configure.in 2010-10-15 10:55:06.382727473 +0200 | 4 | +++ SDL_ttf-2.0.10/configure.in 2014-07-17 12:33:34.011662505 +0000 |
5 | @@ -25,6 +25,8 @@ | 5 | @@ -1,5 +1,4 @@ |
6 | dnl Process this file with autoconf to produce a configure script. | ||
7 | -AC_INIT(README) | ||
8 | |||
9 | dnl Set various version strings - taken gratefully from the GTk sources | ||
10 | |||
11 | @@ -11,12 +10,19 @@ | ||
12 | # if backwards compatibility has been broken, | ||
13 | # set BINARY_AGE and INTERFACE_AGE to 0. | ||
14 | |||
15 | -MAJOR_VERSION=2 | ||
16 | -MINOR_VERSION=0 | ||
17 | -MICRO_VERSION=10 | ||
18 | +m4_define([sdlttf_major_version],[2]) | ||
19 | +m4_define([sdlttf_minor_version],[0]) | ||
20 | +m4_define([sdlttf_micro_version],[10]) | ||
21 | +m4_define([sdlttf_version], [sdlttf_major_version.sdlttf_minor_version.sdlttf_micro_version]) | ||
22 | + | ||
23 | +AC_INIT([SDL_ttf], [sdlttf_version]) | ||
24 | + | ||
25 | +MAJOR_VERSION=sdlttf_major_version | ||
26 | +MINOR_VERSION=sdlttf_minor_version | ||
27 | +MICRO_VERSION=sdlttf_micro_version | ||
28 | INTERFACE_AGE=0 | ||
29 | BINARY_AGE=10 | ||
30 | -VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION | ||
31 | +VERSION=sdlttf_version | ||
32 | |||
33 | AC_SUBST(MAJOR_VERSION) | ||
34 | AC_SUBST(MINOR_VERSION) | ||
35 | @@ -25,6 +31,8 @@ | ||
6 | AC_SUBST(BINARY_AGE) | 36 | AC_SUBST(BINARY_AGE) |
7 | AC_SUBST(VERSION) | 37 | AC_SUBST(VERSION) |
8 | 38 | ||
@@ -11,3 +41,12 @@ Index: SDL_ttf-2.0.10/configure.in | |||
11 | # libtool versioning | 41 | # libtool versioning |
12 | LT_INIT([win32-dll]) | 42 | LT_INIT([win32-dll]) |
13 | 43 | ||
44 | @@ -42,7 +50,7 @@ | ||
45 | AC_CANONICAL_HOST | ||
46 | |||
47 | dnl Setup for automake | ||
48 | -AM_INIT_AUTOMAKE(SDL_ttf, $VERSION) | ||
49 | +AM_INIT_AUTOMAKE([foreign]) | ||
50 | |||
51 | dnl Check for tools | ||
52 | AC_PROG_LIBTOOL | ||
diff --git a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.10.bb b/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.10.bb index 47026a236a..ad3792e22e 100644 --- a/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.10.bb +++ b/meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.10.bb | |||
@@ -24,7 +24,7 @@ do_configure_prepend() { | |||
24 | MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" | 24 | MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" |
25 | 25 | ||
26 | for i in ${MACROS}; do | 26 | for i in ${MACROS}; do |
27 | rm ${S}/acinclude/$i | 27 | rm -f ${S}/acinclude/$i |
28 | done | 28 | done |
29 | 29 | ||
30 | } | 30 | } |