blob: aa246f99951106091e34bf791ffb960cae49bf39 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Simple DirectMedia Layer mixer library V2"
2SECTION = "libs"
3DEPENDS = "virtual/libsdl2 flac libmikmod libvorbis"
4LICENSE = "Zlib"
Brad Bishope42b3e32020-01-15 22:08:42 -05005LIC_FILES_CHKSUM = "file://COPYING.txt;md5=516daf7a177ad4c8874bb9efa1a69c1f"
Brad Bishop316dfdd2018-06-25 12:45:53 -04006
7SRC_URI = "http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${PV}.tar.gz"
8
Brad Bishope42b3e32020-01-15 22:08:42 -05009SRC_URI[md5sum] = "a36e8410cac46b00a4d01752b32c3eb1"
10SRC_URI[sha256sum] = "b4cf5a382c061cd75081cf246c2aa2f9df8db04bdda8dcdc6b6cca55bede2419"
Brad Bishop316dfdd2018-06-25 12:45:53 -040011
12S = "${WORKDIR}/SDL2_mixer-${PV}"
13
14inherit autotools-brokensep pkgconfig
15
16EXTRA_AUTORECONF += "--include=acinclude"
17EXTRA_OECONF = "--disable-music-mp3 --enable-music-ogg --enable-music-ogg-tremor LIBS=-L${STAGING_LIBDIR}"
18
19PACKAGECONFIG[mad] = "--enable-music-mp3-mad-gpl,--disable-music-mp3-mad-gpl,libmad"
20
21do_configure_prepend () {
22 # Remove old libtool macros.
23 MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
24 for i in ${MACROS}; do
25 rm -f acinclude/$i
26 done
27}