From c683ba05f4efd277112bde53d063cabebe50c97d Mon Sep 17 00:00:00 2001 From: Peppersawce <157759066+Peppersawce@users.noreply.github.com> Date: Mon, 26 May 2025 18:38:04 +0200 Subject: [PATCH] ZMusic port (#12295) --- media-libs/zmusic/zmusic-1.1.4~git.recipe | 65 +++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 media-libs/zmusic/zmusic-1.1.4~git.recipe diff --git a/media-libs/zmusic/zmusic-1.1.4~git.recipe b/media-libs/zmusic/zmusic-1.1.4~git.recipe new file mode 100644 index 000000000..5dbcb9f68 --- /dev/null +++ b/media-libs/zmusic/zmusic-1.1.4~git.recipe @@ -0,0 +1,65 @@ +SUMMARY="GZDoom's music system as a standalone library" +DESCRIPTION="This is a music library for use with the projects GZDoom, Raze, and the newer PrBoom+." +HOMEPAGE="https://github.com/ZDoom/ZMusic" +COPYRIGHT="2020-2025 GZDoom team and contributors" +LICENSE="GNU GPL v3" +REVISION="1" +srcGitRev="6928b8609db9b1c104c4cd4f9b163486121fb0f0" +SOURCE_URI="https://github.com/ZDoom/ZMusic/archive/$srcGitRev.zip" +CHECKSUM_SHA256="2a6b64d12b33f3d10e5dee7ad91753393aca2fcea0fdc109e043808af0aea85e" +SOURCE_DIR="ZMusic-$srcGitRev" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="1.0.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + zmusic$secondaryArchSuffix = $portVersion + lib:libzmusic$secondaryArchSuffix = $libVersionCompat + lib:libzmusiclite$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + " + +PROVIDES_devel=" + zmusic${secondaryArchSuffix}_devel = $portVersion + devel:libzmusic$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + haiku${secondaryArchSuffix}_devel + zmusic$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libglib_2.0$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release + + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLib libzmusic + + # devel package + packageEntries devel \ + $developDir +}