065b4d23ac
This fixes "Mixer not built with MP3 support", caused by SDL2_mixer being compiled against an old and incompatible version of smpeg. Also add static libraries to -devel package.
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'SDL2_mixer'
|
|
pkgname=SDL2_mixer
|
|
version=2.0.1
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL2-devel libvorbis-devel libmikmod-devel libflac-devel smpeg2-devel fluidsynth-devel"
|
|
# The following deps are dlopen(3)ed at runtime.
|
|
depends="libvorbis libmikmod smpeg2 libflac"
|
|
short_desc="Multi-channel audio mixer library (SDL 2.x)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="BSD"
|
|
homepage="http://www.libsdl.org/projects/SDL_mixer/"
|
|
distfiles="http://www.libsdl.org/projects/SDL_mixer/release/$pkgname-$version.tar.gz"
|
|
checksum=5a24f62a610249d744cbd8d28ee399d8905db7222bf3bdbc8a8b4a76e597695f
|
|
|
|
pre_configure() {
|
|
sed -e "/CONFIG_FILE_ETC/s|/etc/timidity.cfg|/etc/timidity++/timidity.cfg|" \
|
|
-e "/DEFAULT_PATH/s|/etc/timidity|/etc/timidity++|" \
|
|
-e "/DEFAULT_PATH2/s|/usr/local/lib/timidity|/usr/lib/timidity|" \
|
|
-i timidity/config.h
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING.txt COPYING
|
|
}
|
|
|
|
SDL2_mixer-devel_package() {
|
|
depends="SDL2-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|