New package: ZMusic-1.1.3.

ZMusic needs libopenal to enable sound playback.
libopenal, libfluidsynth and libsndfile are all loaded dynamically.

Based on and closes #20665.
This commit is contained in:
Érico Rolim 2020-08-30 17:28:45 -03:00 committed by Michael Aldridge
parent 1372203964
commit d16ca93336
4 changed files with 51 additions and 0 deletions

View file

@ -2975,6 +2975,8 @@ libpisync.so.1 pilot-link-0.12.5_1
libpitcl.so.0 pilot-link-0.12.5_1
libiscsi.so.9 libiscsi-1.19.0_1
libgme.so.0 libgme-0.6.1_1
libzmusic.so.1 ZMusic-1.1.2_1
libzmusiclite.so.1 ZMusic-1.1.2_1
libsidplayfp.so.5 libsidplayfp-2.0.0_1
libstilview.so.0 libsidplayfp-1.8.7_1
libczmq.so.4 czmq-4.0.1_1

1
srcpkgs/ZMusic-devel Symbolic link
View file

@ -0,0 +1 @@
ZMusic

View file

@ -0,0 +1,13 @@
Taken from libgme package.
--- thirdparty/game-music-emu/gme/blargg_endian.h
+++ thirdparty/game-music-emu/gme/blargg_endian.h
@@ -36,7 +36,7 @@
#endif
#if defined (MSB_FIRST) || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
- defined (__sparc__) || BLARGG_CPU_POWERPC || \
+ defined (__sparc__) || \
(defined (BIG_ENDIAN) && BIG_ENDIAN+0 != 4321)
#define BLARGG_BIG_ENDIAN 1
#elif !defined (__mips__)

35
srcpkgs/ZMusic/template Normal file
View file

@ -0,0 +1,35 @@
# Template file for 'ZMusic'
pkgname=ZMusic
version=1.1.3
revision=1
build_style=cmake
configure_args="-DGME_INCLUDE_DIR=/usr/include -DGME_LIBRARIES=gme"
hostmakedepends="pkg-config"
makedepends="zlib-devel alsa-lib-devel libgme-devel libopenal-devel libsndfile-devel"
# these are dlopened
depends="libfluidsynth libopenal libsndfile"
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=5f432b022e023175eae7701625f79287e9ffe889a444179681381026b4fb93bf
nocross=yes
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"
}
}