Skip to contentSkip to conversation

libsdl-image: Fix build with separate builddir

PATCH New Marko Lindqvist 1 participant 2 messages Jun 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libsdl-image: Fix build with separate builddir

Do not assume that sources are in the current directory in do_configure_prepend() but refer to them with path to source directory.

---
 .../libsdl-image/libsdl-image_1.2.12.bb                  | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
meta-oe/recipes-multimedia/libsdl-image/libsdl-image_1.2.12.bb +8 -8
index ef78927..d8c56fb 100644
@@ -20,12 +20,12 @@ export SDL_CONFIG = "${STAGING_BINDIR_CROSS}/sdl-config"
 EXTRA_OECONF += "--disable-jpg-shared --disable-png-shared -disable-tif-shared"
 
 do_configure_prepend() {
-    # Removing this file fixes a libtool version mismatch.
-    rm -f acinclude/libtool.m4
-    rm -f acinclude/sdl.m4
-    rm -f acinclude/pkg.m4
-    rm -f acinclude/lt~obsolete.m4
-    rm -f acinclude/ltoptions.m4
-    rm -f acinclude/ltsugar.m4
-    rm -f acinclude/ltversion.m4
+    # Removing these files fixes a libtool version mismatch.
+    rm -f ${S}/acinclude/libtool.m4
+    rm -f ${S}/acinclude/sdl.m4
+    rm -f ${S}/acinclude/pkg.m4
+    rm -f ${S}/acinclude/lt~obsolete.m4
+    rm -f ${S}/acinclude/ltoptions.m4
+    rm -f ${S}/acinclude/ltsugar.m4
+    rm -f ${S}/acinclude/ltversion.m4
 }
Signature · 1 line
2.0.0
#1 lore raw

PATCH 2/2 libsdl-ttf: Fix build with separate builddir

Do not assume that sources are in the current directory in do_configure_prepend() but refer to them with path to source directory.

---
 meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.10.bb | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
meta-oe/recipes-support/libsdl-ttf/libsdl-ttf_2.0.10.bb +5 -4
index c6e5a15..0127b31 100644
@@ -4,7 +4,7 @@ DEPENDS = "virtual/libsdl freetype"
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${PV}.tar.gz \
            file://configure.patch \
@@ -18,11 +18,12 @@ inherit autotools
 TARGET_CC_ARCH += "${LDFLAGS}"
 
 do_configure_prepend() {
-  
+
+    # 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 acinclude/$i
+      rm ${S}/acinclude/$i
     done
 
 }
Signature · 1 line
2.0.0