diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-09-19 13:07:08 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-09-19 13:07:08 +0800 |
commit | c49d671a4a12f431f2edc60c459236800572e1be (patch) | |
tree | 8e296d4ab08f7caf4ac353b903687b0d64812f4b /audio | |
parent | daf369d85665bc0bce0c063fe845d3e434b6e9f1 (diff) | |
download | freebsd-ports-gnome-c49d671a4a12f431f2edc60c459236800572e1be.tar.gz freebsd-ports-gnome-c49d671a4a12f431f2edc60c459236800572e1be.tar.zst freebsd-ports-gnome-c49d671a4a12f431f2edc60c459236800572e1be.zip |
audio/openal-soft: update to 1.18.1
- Add the EXAMPLES option
- Add a patch to fix the Jack backend for Jack 1
Changes: http://kcat.strangesoft.net/openal.html#release
ABI: https://abi-laboratory.pro/tracker/timeline/openal/
PR: 222437
Submitted by: kdrakehp@zoho.com
MFH: 2017Q3
Diffstat (limited to 'audio')
-rw-r--r-- | audio/openal-soft/Makefile | 11 | ||||
-rw-r--r-- | audio/openal-soft/distinfo | 6 | ||||
-rw-r--r-- | audio/openal-soft/files/patch-Alc_backends_jack.c | 34 | ||||
-rw-r--r-- | audio/openal-soft/files/patch-CMakeLists.txt | 12 | ||||
-rw-r--r-- | audio/openal-soft/files/patch-OpenAL32_alBuffer.c | 8 | ||||
-rw-r--r-- | audio/openal-soft/files/patch-examples_alffplay.cpp | 10 | ||||
-rw-r--r-- | audio/openal-soft/pkg-plist | 12 |
7 files changed, 66 insertions, 27 deletions
diff --git a/audio/openal-soft/Makefile b/audio/openal-soft/Makefile index bb0c1466fc32..f334002c11d5 100644 --- a/audio/openal-soft/Makefile +++ b/audio/openal-soft/Makefile @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= openal-soft -PORTVERSION= 1.18.0 -PORTREVISION= 2 +PORTVERSION= 1.18.1 CATEGORIES= audio MASTER_SITES= http://kcat.strangesoft.net/openal-releases/ @@ -25,9 +24,11 @@ CMAKE_ARGS= -DSHARE_INSTALL_DIR:STRING=${ETCDIR} \ -DALSOFT_REQUIRE_QSA:BOOL=OFF \ -DALSOFT_BACKEND_ALSA:BOOL=OFF \ -DALSOFT_BACKEND_WAVE:BOOL=ON \ + -DALSOFT_EXAMPLES:BOOL=OFF \ -DALSOFT_UTILS:BOOL=ON -OPTIONS_DEFINE= FLUIDSYNTH CONFIG OSS JACK PORTAUDIO PULSEAUDIO SNDIO +OPTIONS_DEFINE= EXAMPLES FLUIDSYNTH CONFIG OSS JACK PORTAUDIO \ + PULSEAUDIO SNDIO OPTIONS_DEFAULT= OSS OPTIONS_SUB= yes CONFIG_DESC= Install configuration utility (needs Qt 4.x) @@ -62,4 +63,8 @@ post-patch: @${REINPLACE_CMD} 's|$${CMAKE_INSTALL_DATADIR}/openal|${ETCDIR}|' \ ${WRKSRC}/CMakeLists.txt +post-install-EXAMPLES-on: + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${EXAMPLESDIR}) + .include <bsd.port.mk> diff --git a/audio/openal-soft/distinfo b/audio/openal-soft/distinfo index 0915ffd8beb6..faec72ebc106 100644 --- a/audio/openal-soft/distinfo +++ b/audio/openal-soft/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1500783565 -SHA256 (openal-soft-1.18.0.tar.bz2) = 4433b1391c61a7ca36d82c946c8f0ffe410569d6437e4ce72b3547aaf966ecde -SIZE (openal-soft-1.18.0.tar.bz2) = 627614 +TIMESTAMP = 1501391361 +SHA256 (openal-soft-1.18.1.tar.bz2) = 2d51a6529526ef22484f51567e31a5c346a599767991a3dc9d4dcd9d9cec71dd +SIZE (openal-soft-1.18.1.tar.bz2) = 638913 diff --git a/audio/openal-soft/files/patch-Alc_backends_jack.c b/audio/openal-soft/files/patch-Alc_backends_jack.c new file mode 100644 index 000000000000..0bcdde932777 --- /dev/null +++ b/audio/openal-soft/files/patch-Alc_backends_jack.c @@ -0,0 +1,34 @@ +--- Alc/backends/jack.c.orig 2017-07-30 05:09:21 UTC ++++ Alc/backends/jack.c +@@ -35,11 +35,13 @@ + #include <jack/ringbuffer.h> + + ++extern void default_jack_error_callback(const char *msg) JACK_OPTIONAL_WEAK_EXPORT; ++ + static const ALCchar jackDevice[] = "JACK Default"; + +- + #ifdef HAVE_DYNLOAD + #define JACK_FUNCS(MAGIC) \ ++ MAGIC(default_jack_error_callback); \ + MAGIC(jack_client_open); \ + MAGIC(jack_client_close); \ + MAGIC(jack_client_name_size); \ +@@ -65,6 +67,7 @@ static void *jack_handle; + JACK_FUNCS(MAKE_FUNC); + #undef MAKE_FUNC + ++#define default_jack_error_callback (*pdefault_jack_error_callback) + #define jack_client_open pjack_client_open + #define jack_client_close pjack_client_close + #define jack_client_name_size pjack_client_name_size +@@ -567,7 +570,7 @@ static ALCboolean ALCjackBackendFactory_init(ALCjackBa + + jack_set_error_function(jack_msg_handler); + client = jack_client_open("alsoft", ClientOptions, &status, NULL); +- jack_set_error_function(NULL); ++ jack_set_error_function(default_jack_error_callback); + if(client == NULL) + { + WARN("jack_client_open() failed, 0x%02x\n", status); diff --git a/audio/openal-soft/files/patch-CMakeLists.txt b/audio/openal-soft/files/patch-CMakeLists.txt index a481b198fee3..4f330d5f9840 100644 --- a/audio/openal-soft/files/patch-CMakeLists.txt +++ b/audio/openal-soft/files/patch-CMakeLists.txt @@ -1,6 +1,6 @@ ---- CMakeLists.txt.orig 2017-06-04 14:31:22 UTC +--- CMakeLists.txt.orig 2017-07-30 05:09:21 UTC +++ CMakeLists.txt -@@ -643,10 +643,6 @@ int main() +@@ -646,10 +646,6 @@ int main() CHECK_SYMBOL_EXISTS(pthread_mutex_timedlock pthread.h HAVE_PTHREAD_MUTEX_TIMEDLOCK) @@ -11,12 +11,12 @@ ENDIF() # Check for a 64-bit type -@@ -1299,7 +1295,7 @@ IF(ALSOFT_INSTALL) +@@ -1322,7 +1318,7 @@ IF(ALSOFT_INSTALL) DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/AL ) INSTALL(FILES "${OpenAL_BINARY_DIR}/openal.pc" - DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + DESTINATION "libdata/pkgconfig") - ENDIF() - - + IF(TARGET soft_oal) + INSTALL(TARGETS soft_oal + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} diff --git a/audio/openal-soft/files/patch-OpenAL32_alBuffer.c b/audio/openal-soft/files/patch-OpenAL32_alBuffer.c index 3587b3e5044e..974f84ec5557 100644 --- a/audio/openal-soft/files/patch-OpenAL32_alBuffer.c +++ b/audio/openal-soft/files/patch-OpenAL32_alBuffer.c @@ -1,8 +1,8 @@ ---- OpenAL32/alBuffer.c.orig 2016-01-25 03:12:39 UTC +--- OpenAL32/alBuffer.c.orig 2017-07-30 05:09:21 UTC +++ OpenAL32/alBuffer.c -@@ -1209,7 +1209,7 @@ static ALboolean DecomposeFormat(ALenum - { AL_FORMAT_BFORMAT3D_16, FmtBFormat3D, FmtShort }, - { AL_FORMAT_BFORMAT3D_FLOAT32, FmtBFormat3D, FmtFloat }, +@@ -1171,7 +1171,7 @@ static ALboolean DecomposeUserFormat(ALenum format, en + { AL_FORMAT_BFORMAT3D_FLOAT32, UserFmtBFormat3D, UserFmtFloat }, + { AL_FORMAT_BFORMAT3D_MULAW, UserFmtBFormat3D, UserFmtMulaw }, }; - ALuint i; + volatile ALuint i; diff --git a/audio/openal-soft/files/patch-examples_alffplay.cpp b/audio/openal-soft/files/patch-examples_alffplay.cpp deleted file mode 100644 index 4a3561ac5776..000000000000 --- a/audio/openal-soft/files/patch-examples_alffplay.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- examples/alffplay.cpp.orig 2017-07-23 04:34:58 UTC -+++ examples/alffplay.cpp -@@ -16,6 +16,7 @@ - #include <atomic> - #include <mutex> - #include <deque> -+#include <array> - - extern "C" { - #include "libavcodec/avcodec.h" diff --git a/audio/openal-soft/pkg-plist b/audio/openal-soft/pkg-plist index 032875500028..535d0dd99d76 100644 --- a/audio/openal-soft/pkg-plist +++ b/audio/openal-soft/pkg-plist @@ -20,7 +20,17 @@ include/AL/efx-creative.h include/AL/efx-presets.h lib/cmake/OpenAL/OpenALConfig-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/OpenAL/OpenALConfig.cmake -lib/libopenal.so.1.18.0 +lib/libopenal.so.1.18.1 lib/libopenal.so.1 lib/libopenal.so libdata/pkgconfig/openal.pc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alffplay.cpp +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alhrtf.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/allatency.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alloopback.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alrecord.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alreverb.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alstream.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/altonegen.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/common/alhelpers.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/common/alhelpers.h |