diff --git a/srcpkgs/SDL_mixer-devel b/srcpkgs/SDL_mixer-devel new file mode 120000 index 00000000000..6e93192bfca --- /dev/null +++ b/srcpkgs/SDL_mixer-devel @@ -0,0 +1 @@ +SDL_mixer \ No newline at end of file diff --git a/srcpkgs/SDL_mixer/SDL_mixer-devel.template b/srcpkgs/SDL_mixer/SDL_mixer-devel.template new file mode 100644 index 00000000000..a57072cf955 --- /dev/null +++ b/srcpkgs/SDL_mixer/SDL_mixer-devel.template @@ -0,0 +1,21 @@ +# Template file for 'SDL_mixer-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run SDL-devel +Add_dependency run libvorbis-devel +Add_dependency run libmikmod-devel +Add_dependency run libflac-devel +Add_dependency run smpeg-devel + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/SDL_mixer/depends b/srcpkgs/SDL_mixer/depends new file mode 100644 index 00000000000..bd2919ddf10 --- /dev/null +++ b/srcpkgs/SDL_mixer/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.2.11" +api_depends="${abi_depends}" diff --git a/srcpkgs/SDL_mixer/template b/srcpkgs/SDL_mixer/template new file mode 100644 index 00000000000..b82dfd5eacd --- /dev/null +++ b/srcpkgs/SDL_mixer/template @@ -0,0 +1,34 @@ +# Template file for 'SDL_mixer' +pkgname=SDL_mixer +version=1.2.11 +distfiles="http://www.libsdl.org/projects/$pkgname/release/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="Multi-channel audio mixer library" +maintainer="Juan RP " +checksum=86145ac39cac6d2c6169c226f937648dca5e89dcd828751763dd174fa9af9cf9 +long_desc=" + SDL_mixer is a sample multi-channel audio mixer library. It supports any + number of simultaneously playing channels of 16 bit stereo audio, plus + a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI, + Ogg Vorbis, and SMPEG MP3 libraries." + +subpackages="$pkgname-devel" +Add_dependency run glibc +Add_dependency run SDL +Add_dependency run libvorbis +Add_dependency run libmikmod +Add_dependency run smpeg +Add_dependency run libflac +Add_dependency build SDL-devel +Add_dependency build libvorbis-devel +Add_dependency build libmikmod-devel +Add_dependency build libflac-devel +Add_dependency build smpeg-devel + +pre_configure() +{ + sed -i 's|/usr/local/lib/timidity|/usr/lib/timidity|' \ + ${wrksrc}/timidity/config.h || return 1 + sed -i 's|/etc/timidity/timidity.cfg|/etc/timidity++/timidity.cfg|' \ + ${wrksrc}/timidity/config.h || return 1 +}