aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2023-04-25 09:00:06 +0000
committerDaniel Engberg <diizzy@FreeBSD.org>2023-04-25 09:05:40 +0000
commit11f81d028a7cb790a7de14449d38e764390ef965 (patch)
tree683bcf95de0d4fb139656a57c2749038ea241275 /audio
parent673bd61b2fa56968033d4f0905bb6e1e0148c7ad (diff)
downloadports-11f81d028a7cb790a7de14449d38e764390ef965.tar.gz
ports-11f81d028a7cb790a7de14449d38e764390ef965.zip
Diffstat (limited to 'audio')
-rw-r--r--audio/zmusic/Makefile17
-rw-r--r--audio/zmusic/distinfo6
-rw-r--r--audio/zmusic/files/patch-source_mididevices_music__fluidsynth__mididevice.cpp11
-rw-r--r--audio/zmusic/files/patch-source_streamsources_music__dumb.cpp13
-rw-r--r--audio/zmusic/files/patch-thirdparty_CMakeLists.txt16
-rw-r--r--audio/zmusic/files/patch-thirdparty_game-music-emu_gme_blargg__endian.h13
-rw-r--r--audio/zmusic/pkg-plist4
7 files changed, 57 insertions, 23 deletions
diff --git a/audio/zmusic/Makefile b/audio/zmusic/Makefile
index 4f0b6ec18f6c..eff85ee1f262 100644
--- a/audio/zmusic/Makefile
+++ b/audio/zmusic/Makefile
@@ -1,5 +1,5 @@
PORTNAME= zmusic
-PORTVERSION= 1.1.10
+DISTVERSION= 1.1.12
CATEGORIES= audio
MAINTAINER= kevans@FreeBSD.org
@@ -12,17 +12,24 @@ LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/licenses/bsd.txt
LICENSE_FILE_GPLv3= ${WRKSRC}/licenses/gplv3.txt
LICENSE_FILE_LGPL3= ${WRKSRC}/licenses/lgplv3.txt
-LIB_DEPENDS= libsndfile.so:audio/libsndfile \
- libfluidsynth.so:audio/fluidsynth
+LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth \
+ libgme.so:audio/libgme \
+ libmpg123.so:audio/mpg123 \
+ libsndfile.so:audio/libsndfile
-USES= cmake
+USES= cmake compiler:c++11-lang localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= coelckers
GH_PROJECT= ZMusic
USE_LDCONFIG= yes
-CMAKE_OFF= DYN_SNDFILE DYN_FLUIDSYNTH
+
+EXTRACT_AFTER_ARGS+= --exclude thirdparty/fluidsynth \
+ --exclude thirdparty/game-music-emu \
+ --exclude thirdparty/zlib
+
+CMAKE_OFF= DYN_MPG123 DYN_SNDFILE
OPTIONS_DEFINE= ALSA
OPTIONS_DEFAULT= ALSA
diff --git a/audio/zmusic/distinfo b/audio/zmusic/distinfo
index 1387245a685e..40d79bb7ad1d 100644
--- a/audio/zmusic/distinfo
+++ b/audio/zmusic/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1666650759
-SHA256 (coelckers-ZMusic-1.1.10_GH0.tar.gz) = 378435b35f02a3123ee9e01b5e7990017f9bc1244b788e3bf54b37b34a2985ba
-SIZE (coelckers-ZMusic-1.1.10_GH0.tar.gz) = 1812700
+TIMESTAMP = 1681314359
+SHA256 (coelckers-ZMusic-1.1.12_GH0.tar.gz) = da818594b395aa9174561a36362332b0ab8e7906d2e556ec47669326e67613d4
+SIZE (coelckers-ZMusic-1.1.12_GH0.tar.gz) = 2275316
diff --git a/audio/zmusic/files/patch-source_mididevices_music__fluidsynth__mididevice.cpp b/audio/zmusic/files/patch-source_mididevices_music__fluidsynth__mididevice.cpp
new file mode 100644
index 000000000000..1d736471106a
--- /dev/null
+++ b/audio/zmusic/files/patch-source_mididevices_music__fluidsynth__mididevice.cpp
@@ -0,0 +1,11 @@
+--- source/mididevices/music_fluidsynth_mididevice.cpp.orig 2023-04-12 16:05:39 UTC
++++ source/mididevices/music_fluidsynth_mididevice.cpp
+@@ -47,7 +47,7 @@
+
+ FluidConfig fluidConfig;
+
+-#include "../thirdparty/fluidsynth/include/fluidsynth.h"
++#include <fluidsynth.h>
+
+ class FluidSynthMIDIDevice : public SoftSynthMIDIDevice
+ {
diff --git a/audio/zmusic/files/patch-source_streamsources_music__dumb.cpp b/audio/zmusic/files/patch-source_streamsources_music__dumb.cpp
new file mode 100644
index 000000000000..cdc73ccebbc8
--- /dev/null
+++ b/audio/zmusic/files/patch-source_streamsources_music__dumb.cpp
@@ -0,0 +1,13 @@
+--- source/streamsources/music_dumb.cpp.orig 2023-04-12 17:17:42 UTC
++++ source/streamsources/music_dumb.cpp
+@@ -43,8 +43,8 @@
+
+
+ #undef CDECL // w32api's windef.h defines this
+-#include "../dumb/include/dumb.h"
+-#include "../dumb/include/internal/it.h"
++#include "dumb.h"
++#include "internal/it.h"
+ #include "zmusic/m_swap.h"
+ #include "zmusic/mididefs.h"
+ #include "zmusic/midiconfig.h"
diff --git a/audio/zmusic/files/patch-thirdparty_CMakeLists.txt b/audio/zmusic/files/patch-thirdparty_CMakeLists.txt
new file mode 100644
index 000000000000..c76759691fe8
--- /dev/null
+++ b/audio/zmusic/files/patch-thirdparty_CMakeLists.txt
@@ -0,0 +1,16 @@
+--- thirdparty/CMakeLists.txt.orig 2023-04-02 07:04:28 UTC
++++ thirdparty/CMakeLists.txt
+@@ -35,7 +35,7 @@ endif()
+ # Nuked OPN2 is very accurate emulator, but it eats too much CPU for the workflow
+ set(GME_YM2612_EMU "Nuked" CACHE STRING "Which YM2612 emulator to use: \"Nuked\" (LGPLv2.1+), \"MAME\" (GPLv2+), or \"GENS\" (LGPLv2.1+)")
+ mark_as_advanced(GME_YM2612_EMU)
+- add_subdirectory(game-music-emu)
++# add_subdirectory(game-music-emu)
+ #endif()
+
+ add_subdirectory(dumb)
+@@ -45,4 +45,3 @@ add_subdirectory(timidity)
+ add_subdirectory(timidityplus)
+ add_subdirectory(wildmidi)
+ add_subdirectory(oplsynth)
+-add_subdirectory(fluidsynth/src)
diff --git a/audio/zmusic/files/patch-thirdparty_game-music-emu_gme_blargg__endian.h b/audio/zmusic/files/patch-thirdparty_game-music-emu_gme_blargg__endian.h
deleted file mode 100644
index 890758e04a89..000000000000
--- a/audio/zmusic/files/patch-thirdparty_game-music-emu_gme_blargg__endian.h
+++ /dev/null
@@ -1,13 +0,0 @@
---- thirdparty/game-music-emu/gme/blargg_endian.h.orig 2021-05-19 06:13:53 UTC
-+++ thirdparty/game-music-emu/gme/blargg_endian.h
-@@ -33,9 +33,7 @@
- #if defined (LSB_FIRST) || defined (__LITTLE_ENDIAN__) || BLARGG_CPU_X86 || \
- (defined (LITTLE_ENDIAN) && LITTLE_ENDIAN+0 != 1234)
- #define BLARGG_LITTLE_ENDIAN 1
--#endif
--
--#if defined (MSB_FIRST) || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
-+#elif defined (MSB_FIRST) || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
- defined (__sparc__) || BLARGG_CPU_POWERPC || \
- (defined (BIG_ENDIAN) && BIG_ENDIAN+0 != 4321)
- #define BLARGG_BIG_ENDIAN 1
diff --git a/audio/zmusic/pkg-plist b/audio/zmusic/pkg-plist
index ef60bf91bdbb..8244d1d6d13c 100644
--- a/audio/zmusic/pkg-plist
+++ b/audio/zmusic/pkg-plist
@@ -7,7 +7,7 @@ lib/cmake/ZMusic/ZMusicLiteTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/ZMusic/ZMusicLiteTargets.cmake
lib/libzmusic.so
lib/libzmusic.so.1
-lib/libzmusic.so.1.1.10
+lib/libzmusic.so.1.1.12
lib/libzmusiclite.so
lib/libzmusiclite.so.1
-lib/libzmusiclite.so.1.1.10
+lib/libzmusiclite.so.1.1.12