c4ecb8adf5
Force it to link against libfluidsynth and libsndfile (which fixes a bug, because it only tried dlopening libfluidsynth.so.{1,2} and we ship .3). Also add mpg123 as a bonus and remove the unused openal (not mentioned at all) and gme (their version fixes bugs still present in upstream) deps.
32 lines
920 B
Bash
32 lines
920 B
Bash
# Template file for 'ZMusic'
|
|
pkgname=ZMusic
|
|
version=1.1.6
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DDYN_SNDFILE=OFF -DDYN_FLUIDSYNTH=OFF -DDYN_MPG123=OFF"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="zlib-devel alsa-lib-devel libsndfile-devel fluidsynth-devel mpg123-devel"
|
|
short_desc="GZDoom's music system"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/coelckers/ZMusic"
|
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
|
checksum=2cc4a08c4d213df80743828538631f452e1858c2ea5bb47a616e221492de05c0
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" musl-fts-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
vmkdir usr/share/licenses/${pkgname}
|
|
vcopy "licenses/*" usr/share/licenses/${pkgname}/
|
|
}
|
|
|
|
ZMusic-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|