void-packages/srcpkgs/SDL_mixer/template

32 lines
1.2 KiB
Plaintext

# Template file for 'SDL_mixer'
pkgname=SDL_mixer
version=1.2.12
revision=2
homepage="http://www.libsdl.org/projects/SDL_mixer/"
distfiles="http://www.libsdl.org/projects/$pkgname/release/$pkgname-$version.tar.gz"
build_style=gnu-configure
# The following deps are dlopen(3)ed at runtime.
depends="libvorbis libmikmod smpeg libflac"
makedepends="SDL-devel libvorbis-devel libmikmod-devel libflac-devel smpeg-devel fluidsynth-devel"
subpackages="$pkgname-devel"
short_desc="Multi-channel audio mixer library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
checksum=1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a
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."
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() {
vinstall COPYING 644 usr/share/licenses/${pkgname}
}