diff --git a/common/shlibs b/common/shlibs index 44f54987a27..a1b2c7e1b9a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/ZMusic-devel b/srcpkgs/ZMusic-devel new file mode 120000 index 00000000000..023ff24ecd4 --- /dev/null +++ b/srcpkgs/ZMusic-devel @@ -0,0 +1 @@ +ZMusic \ No newline at end of file diff --git a/srcpkgs/ZMusic/patches/ppc-musl.patch b/srcpkgs/ZMusic/patches/ppc-musl.patch new file mode 100644 index 00000000000..729b73b155d --- /dev/null +++ b/srcpkgs/ZMusic/patches/ppc-musl.patch @@ -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__) diff --git a/srcpkgs/ZMusic/template b/srcpkgs/ZMusic/template new file mode 100644 index 00000000000..b75b6d0c409 --- /dev/null +++ b/srcpkgs/ZMusic/template @@ -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 " +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" + } +}