From 9e86bdbd0eaf462f8bac019366e3d18b14d5dc10 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 25 Dec 2009 22:39:48 +0100 Subject: [PATCH] Added SDL_mixer-1.2.11 build template. --HG-- extra : convert_revision : 5f219bac633752dedc86ad821cda33fd8621d746 --- srcpkgs/SDL_mixer-devel | 1 + srcpkgs/SDL_mixer/SDL_mixer-devel.template | 21 +++++++++++++ srcpkgs/SDL_mixer/depends | 2 ++ srcpkgs/SDL_mixer/template | 34 ++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 120000 srcpkgs/SDL_mixer-devel create mode 100644 srcpkgs/SDL_mixer/SDL_mixer-devel.template create mode 100644 srcpkgs/SDL_mixer/depends create mode 100644 srcpkgs/SDL_mixer/template diff --git a/srcpkgs/SDL_mixer-devel b/srcpkgs/SDL_mixer-devel new file mode 120000 index 0000000000..6e93192bfc --- /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 0000000000..a57072cf95 --- /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 0000000000..bd2919ddf1 --- /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 0000000000..b82dfd5eac --- /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 +}