void-packages/srcpkgs/SDL2_mixer/template
Juan RP 9d92a2f2e5 SDL2_{image,mixer,net}: get rid of 'gles' build option.
SDL2 should be only one required to be interacting with
rpi-userland, those settings are propagated.
2020-01-06 19:13:10 +01:00

38 lines
1.3 KiB
Bash

# Template file for 'SDL2_mixer'
pkgname=SDL2_mixer
version=2.0.4
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="SDL2-devel libvorbis-devel libmikmod-devel libflac-devel
libmodplug-devel mpg123-devel smpeg2-devel fluidsynth-devel opusfile-devel"
# The following deps are dlopen(3)ed at runtime.
depends="libvorbis libmikmod libmpg123 libmodplug libflac smpeg2 opusfile"
short_desc="Multi-channel audio mixer library (SDL 2.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://www.libsdl.org/projects/SDL_mixer/"
distfiles="http://www.libsdl.org/projects/SDL_mixer/release/${pkgname}-${version}.tar.gz"
checksum=b4cf5a382c061cd75081cf246c2aa2f9df8db04bdda8dcdc6b6cca55bede2419
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/options.h
}
post_install() {
vlicense COPYING.txt COPYING
}
SDL2_mixer-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}