Skip to contentSkip to conversation

libsdl2-mixer: add recipe

PATCH In review Marko Lindqvist 2 participants 2 messages Oct 30, 2013 – Nov 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsdl2-mixer: add recipe

---
 .../libsdl2-mixer/libsdl2-mixer/configure.patch    | 26 +++++++++++++++
 .../libsdl2-mixer/libsdl2-mixer_2.0.0.bb           | 39 ++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer/configure.patch
 create mode 100644 meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer_2.0.0.bb
meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer/configure.patch new file +26 -0
new file mode 100644
index 0000000..43477e0
@@ -0,0 +1,26 @@
+Upstream-Status: Inappropriate [configure]
+
+Adopted from similar patch for libsdl-mixer.
+
+Signed-off-by: Marko Lindqvist <[email protected]>
+diff -Nurd SDL2_mixer-2.0.0/configure.in SDL2_mixer-2.0.0/configure.in
+--- SDL2_mixer-2.0.0/configure.in	2013-08-10 20:39:55.000000000 +0300
++++ SDL2_mixer-2.0.0/configure.in	2013-10-30 15:40:40.508477024 +0200
+@@ -1,6 +1,5 @@
+ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT(README.txt)
+-AC_CONFIG_AUX_DIR(build-scripts)
+ 
+ dnl Set various version strings - taken gratefully from the GTk sources
+ 
+@@ -40,10 +39,6 @@
+ AC_SUBST(LT_REVISION)
+ AC_SUBST(LT_AGE)
+ 
+-dnl Detect the canonical build and host environments
+-AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
+-dnl AC_CANONICAL_HOST
+-
+ dnl Check for tools
+ AC_PROG_LIBTOOL
+ AC_PROG_CC
meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer_2.0.0.bb new file +39 -0
new file mode 100644
index 0000000..f016e84
@@ -0,0 +1,39 @@
+DESCRIPTION = "Simple DirectMedia Layer mixer library."
+SECTION = "libs"
+DEPENDS = "virtual/libsdl2 flac libmikmod libvorbis"
+LICENSE = "Zlib"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7d198f6396c6f21fa575129c5b2fe8fe"
+
+SRC_URI = "http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${PV}.tar.gz \
+           file://configure.patch \
+"
+
+SRC_URI[md5sum] = "65f6d80df073a1fb3bb537fbda031b50"
+SRC_URI[sha256sum] = "a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b"
+
+S = "${WORKDIR}/SDL2_mixer-${PV}"
+
+inherit autotools
+
+EXTRA_AUTORECONF += "--include=acinclude"
+EXTRA_OECONF = "--disable-music-mp3 --enable-music-ogg --enable-music-ogg-tremor LIBS=-L${STAGING_LIBDIR}"
+
+PACKAGECONFIG[mad] = "--enable-music-mp3-mad-gpl,--disable-music-mp3-mad-gpl,libmad"
+
+do_configure () {
+    # Remove old libtool macros.
+    MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
+    for i in ${MACROS}; do
+        rm -f acinclude/$i
+    done
+    cp build-scripts/* . || true
+    rm -rf build-scripts/
+    export SYSROOT=$PKG_CONFIG_SYSROOT_DIR
+
+    autotools_do_configure
+
+    rm config.log
+    for i in $(find -name "Makefile") ; do
+        sed -i -e 's:-L/usr/lib:-L${STAGING_LIBDIR}:g' $i
+    done
+}
Signature · 1 line
1.8.4.rc3
#1 lore raw
Quoted 57 lines · Marko Lindqvist
---
 .../libsdl2-mixer/libsdl2-mixer/configure.patch    | 26 +++++++++++++++
 .../libsdl2-mixer/libsdl2-mixer_2.0.0.bb           | 39 ++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer/configure.patch
 create mode 100644 meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer_2.0.0.bb
meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer/configure.patch new file +26 -0
new file mode 100644
index 0000000..43477e0
@@ -0,0 +1,26 @@
+Upstream-Status: Inappropriate [configure]
+
+Adopted from similar patch for libsdl-mixer.
+
+Signed-off-by: Marko Lindqvist <[email protected]>
+diff -Nurd SDL2_mixer-2.0.0/configure.in SDL2_mixer-2.0.0/configure.in
+--- SDL2_mixer-2.0.0/configure.in	2013-08-10 20:39:55.000000000 +0300
++++ SDL2_mixer-2.0.0/configure.in	2013-10-30 15:40:40.508477024 +0200
+@@ -1,6 +1,5 @@
+ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT(README.txt)
+-AC_CONFIG_AUX_DIR(build-scripts)
+ 
+ dnl Set various version strings - taken gratefully from the GTk sources
+ 
+@@ -40,10 +39,6 @@
+ AC_SUBST(LT_REVISION)
+ AC_SUBST(LT_AGE)
+ 
+-dnl Detect the canonical build and host environments
+-AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
+-dnl AC_CANONICAL_HOST
+-
+ dnl Check for tools
+ AC_PROG_LIBTOOL
+ AC_PROG_CC
meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer_2.0.0.bb new file +11 -0
new file mode 100644
index 0000000..f016e84
@@ -0,0 +1,39 @@
+DESCRIPTION = "Simple DirectMedia Layer mixer library."
+SECTION = "libs"
+DEPENDS = "virtual/libsdl2 flac libmikmod libvorbis"
+LICENSE = "Zlib"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7d198f6396c6f21fa575129c5b2fe8fe"
+
+SRC_URI = "http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${PV}.tar.gz \
+           file://configure.patch \
+"
+
+SRC_URI[md5sum] = "65f6d80df073a1fb3bb537fbda031b50"

meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer_2.0.0.bb line 21

Quoted 10 lines
meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer_2.0.0.bb new file +10 -0
+SRC_URI[sha256sum] = "a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b"
+
+S = "${WORKDIR}/SDL2_mixer-${PV}"
+
+inherit autotools
+
+EXTRA_AUTORECONF += "--include=acinclude"
+EXTRA_OECONF = "--disable-music-mp3 --enable-music-ogg --enable-music-ogg-tremor LIBS=-L${STAGING_LIBDIR}"
+
+PACKAGECONFIG[mad] = "--enable-music-mp3-mad-gpl,--disable-music-mp3-mad-gpl,libmad"

do_compile fails with:
| In file included from mixer.c:41:0:
| dynamic_ogg.h:24:25: fatal error: ivorbisfile.h: No such file or directory

|  #include <ivorbisfile.h>
|                          ^
| compilation terminated.

Full log
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches//log.world.20131102_233937.log/bitbake.log

Quoted 25 lines
meta-oe/recipes-multimedia/libsdl2-mixer/libsdl2-mixer_2.0.0.bb new file +18 -0
+
+do_configure () {
+    # Remove old libtool macros.
+    MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
+    for i in ${MACROS}; do
+        rm -f acinclude/$i
+    done
+    cp build-scripts/* . || true
+    rm -rf build-scripts/
+    export SYSROOT=$PKG_CONFIG_SYSROOT_DIR
+
+    autotools_do_configure
+
+    rm config.log
+    for i in $(find -name "Makefile") ; do
+        sed -i -e 's:-L/usr/lib:-L${STAGING_LIBDIR}:g' $i
+    done
+}
Signature · 6 lines
1.8.4.rc3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]