diff options
author | mva <mva@FreeBSD.org> | 2016-10-23 18:51:30 +0800 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2016-10-23 18:51:30 +0800 |
commit | 7aecb4515357e27fa9986df93e3f53315628e379 (patch) | |
tree | 3d7e197c67d8c1b5f4c7c60bc7507a241e73c3d4 | |
parent | e4515585ff2882bafe61606556ba1672f25c67e4 (diff) | |
download | freebsd-ports-gnome-7aecb4515357e27fa9986df93e3f53315628e379.tar.gz freebsd-ports-gnome-7aecb4515357e27fa9986df93e3f53315628e379.tar.zst freebsd-ports-gnome-7aecb4515357e27fa9986df93e3f53315628e379.zip |
- Update to version 1.17.2
- New option JACK for Jack audio server support
PR: 213392
Submitted by: kdrakehp@zoho.com
-rw-r--r-- | audio/openal-soft/Makefile | 17 | ||||
-rw-r--r-- | audio/openal-soft/distinfo | 5 | ||||
-rw-r--r-- | audio/openal-soft/files/patch-CMakeLists.txt | 38 | ||||
-rw-r--r-- | audio/openal-soft/files/patch-OpenAL32_alBuffer.c | 8 | ||||
-rw-r--r-- | audio/openal-soft/pkg-plist | 4 |
5 files changed, 29 insertions, 43 deletions
diff --git a/audio/openal-soft/Makefile b/audio/openal-soft/Makefile index 387ce8c6532e..d82471d5b4d4 100644 --- a/audio/openal-soft/Makefile +++ b/audio/openal-soft/Makefile @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= openal-soft -PORTVERSION= 1.16.0 -PORTREVISION= 4 +PORTVERSION= 1.17.2 CATEGORIES= audio MASTER_SITES= http://kcat.strangesoft.net/openal-releases/ @@ -15,16 +14,18 @@ CONFLICTS= openal-200[0-9]* USES= tar:bzip2 cmake compiler:c11 USE_LDCONFIG= yes -CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS:BOOL=ON \ +CMAKE_ARGS+= -DSHARE_INSTALL_DIR:STRING=${ETCDIR} \ + -DALSOFT_REQUIRE_OSS:BOOL=ON \ -DALSOFT_REQUIRE_SOLARIS:BOOL=OFF \ -DALSOFT_REQUIRE_SNDIO:BOOL=OFF \ -DALSOFT_REQUIRE_QSA:BOOL=OFF \ -DALSOFT_BACKEND_ALSA:BOOL=OFF \ + -DALSOFT_BACKEND_JACK:BOOL=OFF \ -DALSOFT_BACKEND_WAVE:BOOL=ON \ -DALSOFT_UTILS:BOOL=ON \ -DALSOFT_EXAMPLES:BOOL=OFF -OPTIONS_DEFINE= FLUIDSYNTH CONFIG PORTAUDIO PULSEAUDIO SNDIO +OPTIONS_DEFINE= FLUIDSYNTH CONFIG JACK PORTAUDIO PULSEAUDIO SNDIO OPTIONS_SUB= yes CONFIG_DESC= Install configuration utility (needs Qt 4.x) @@ -37,6 +38,9 @@ CONFIG_USE= QT4=corelib,gui,qmake_build,moc_build,rcc_build,uic_build FLUIDSYNTH_CMAKE_ON= -DALSOFT_REQUIRE_FLUIDSYNTH:BOOL=ON FLUIDSYNTH_CMAKE_OFF= -DALSOFT_MIDI_FLUIDSYNTH:BOOL=OFF FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth +JACK_CMAKE_ON= -DALSOFT_REQUIRE_JACK:BOOL=ON +JACK_CMAKE_OFF= -DALSOFT_REQUIRE_JACK:BOOL=OFF +JACK_LIB_DEPENDS= libjack.so:audio/jack PORTAUDIO_CMAKE_ON= -DALSOFT_REQUIRE_PORTAUDIO:BOOL=ON PORTAUDIO_CMAKE_OFF= -DALSOFT_BACKEND_PORTAUDIO:BOOL=OFF PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio @@ -49,9 +53,8 @@ SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio post-patch: @${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \ - ${WRKSRC}/Alc/alcConfig.c \ - ${WRKSRC}/CMakeLists.txt - @${REINPLACE_CMD} 's|share/openal|${ETCDIR}|' \ + ${WRKSRC}/Alc/alcConfig.c + @${REINPLACE_CMD} 's|$${SHARE_INSTALL_DIR}/openal|${ETCDIR}|' \ ${WRKSRC}/CMakeLists.txt .include <bsd.port.mk> diff --git a/audio/openal-soft/distinfo b/audio/openal-soft/distinfo index f7362edf87ab..fd4bd1196dc9 100644 --- a/audio/openal-soft/distinfo +++ b/audio/openal-soft/distinfo @@ -1,2 +1,3 @@ -SHA256 (openal-soft-1.16.0.tar.bz2) = 2f3dcd313fe26391284fbf8596863723f99c65d6c6846dccb48e79cadaf40d5f -SIZE (openal-soft-1.16.0.tar.bz2) = 393280 +TIMESTAMP = 1474007361 +SHA256 (openal-soft-1.17.2.tar.bz2) = a341f8542f1f0b8c65241a17da13d073f18ec06658e1a1606a8ecc8bbc2b3314 +SIZE (openal-soft-1.17.2.tar.bz2) = 486934 diff --git a/audio/openal-soft/files/patch-CMakeLists.txt b/audio/openal-soft/files/patch-CMakeLists.txt index 5322bdebc3be..d111cfbe7bd3 100644 --- a/audio/openal-soft/files/patch-CMakeLists.txt +++ b/audio/openal-soft/files/patch-CMakeLists.txt @@ -1,26 +1,6 @@ ---- CMakeLists.txt.orig 2014-08-15 07:06:59 UTC +--- CMakeLists.txt.orig 2016-01-25 03:12:39 UTC +++ CMakeLists.txt -@@ -62,8 +62,8 @@ ELSE() - SET(LIBNAME openal) - - # These are needed on non-Windows systems for extra features -- ADD_DEFINITIONS(-D_GNU_SOURCE=1 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700) -- SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -D_GNU_SOURCE=1 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700") -+ ADD_DEFINITIONS(-D_GNU_SOURCE=1) -+ SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -D_GNU_SOURCE=1") - ENDIF() - - # Set defines for large file support -@@ -186,7 +186,7 @@ HAVE_C11_ALIGNAS) - # Check if we have C11 _Atomic - CHECK_C_SOURCE_COMPILES( - "#include <stdatomic.h> -- int _Atomic foo; -+ const int _Atomic foo = ATOMIC_VAR_INIT(~0); - int main() - { - return atomic_load(&foo); -@@ -523,10 +523,6 @@ IF(NOT HAVE_WINDOWS_H) +@@ -582,10 +582,6 @@ int main() CHECK_SYMBOL_EXISTS(pthread_mutex_timedlock pthread.h HAVE_PTHREAD_MUTEX_TIMEDLOCK) @@ -31,12 +11,12 @@ ENDIF() # Check for a 64-bit type -@@ -1108,7 +1104,7 @@ INSTALL(FILES include/AL/al.h - DESTINATION include/AL - ) - INSTALL(FILES "${OpenAL_BINARY_DIR}/openal.pc" -- DESTINATION "lib${LIB_SUFFIX}/pkgconfig") -+ DESTINATION "libdata/pkgconfig") +@@ -1184,7 +1180,7 @@ IF(ALSOFT_INSTALL) + DESTINATION include/AL + ) + INSTALL(FILES "${OpenAL_BINARY_DIR}/openal.pc" +- DESTINATION "lib${LIB_SUFFIX}/pkgconfig") ++ DESTINATION "libdata/pkgconfig") + ENDIF() - MESSAGE(STATUS "") diff --git a/audio/openal-soft/files/patch-OpenAL32_alBuffer.c b/audio/openal-soft/files/patch-OpenAL32_alBuffer.c index 715b719802e0..3587b3e5044e 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 2014-08-15 07:06:59 UTC +--- OpenAL32/alBuffer.c.orig 2016-01-25 03:12:39 UTC +++ OpenAL32/alBuffer.c -@@ -1179,7 +1179,7 @@ static ALboolean DecomposeFormat(ALenum - { AL_7POINT1_16_SOFT, FmtX71, FmtShort }, - { AL_7POINT1_32F_SOFT, FmtX71, FmtFloat }, +@@ -1209,7 +1209,7 @@ static ALboolean DecomposeFormat(ALenum + { AL_FORMAT_BFORMAT3D_16, FmtBFormat3D, FmtShort }, + { AL_FORMAT_BFORMAT3D_FLOAT32, FmtBFormat3D, FmtFloat }, }; - ALuint i; + volatile ALuint i; diff --git a/audio/openal-soft/pkg-plist b/audio/openal-soft/pkg-plist index b70e23291aee..f7f64e4e06cc 100644 --- a/audio/openal-soft/pkg-plist +++ b/audio/openal-soft/pkg-plist @@ -1,3 +1,5 @@ +bin/altonegen +bin/bsincgen bin/makehrtf %%CONFIG%%bin/alsoft-config bin/openal-info @@ -10,7 +12,7 @@ include/AL/alext.h include/AL/efx.h include/AL/efx-creative.h include/AL/efx-presets.h -lib/libopenal.so.1.16.0 +lib/libopenal.so.1.17.2 lib/libopenal.so.1 lib/libopenal.so libdata/pkgconfig/openal.pc |