summaryrefslogtreecommitdiff
path: root/audio/alure/patches
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2018-09-21 13:24:34 +0000
committermaya <maya@pkgsrc.org>2018-09-21 13:24:34 +0000
commite49517c4a974b61fb31bfc296018731f2c1e8103 (patch)
treea296d8619796f9c761991d6bbb716b5a28b748c3 /audio/alure/patches
parent7d1c99e2486ff33f55097782ab88eda09e2c4954 (diff)
downloadpkgsrc-e49517c4a974b61fb31bfc296018731f2c1e8103.tar.gz
Add alure 1.2
ALURE is a utility library to help manage common tasks with OpenAL applications. This includes device enumeration and initialization, file loading, and streaming. The purpose of this library is to provide pre-made functionality that would otherwise be repetitive or difficult to (re)code for various projects and platforms, such as loading a sound file into an OpenAL buffer and streaming an audio file through a buffer queue. Support for different formats is consistant across platforms, so no special checks are needed when loading files, and all formats are handled through the same API. Packaged by Bastian Germann in PR pkg/53613.
Diffstat (limited to 'audio/alure/patches')
-rw-r--r--audio/alure/patches/patch-CMakeLists.txt24
-rw-r--r--audio/alure/patches/patch-src_codec__fluidsynth.cpp15
2 files changed, 39 insertions, 0 deletions
diff --git a/audio/alure/patches/patch-CMakeLists.txt b/audio/alure/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..14e4027e648
--- /dev/null
+++ b/audio/alure/patches/patch-CMakeLists.txt
@@ -0,0 +1,24 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2018/09/21 13:24:34 maya Exp $
+
+Link FLAC correctly (from http://repo.or.cz/alure.git/commit/6934c17f9ace7fc19ea94623dab0a4b37d11a879)
+
+--- CMakeLists.txt.orig 2011-07-29 08:37:48.000000000 +0000
++++ CMakeLists.txt
+@@ -286,7 +286,7 @@ IF(FLAC)
+ SET(ALURE_OBJS ${ALURE_OBJS} src/codec_flac.cpp)
+ ENDIF(HAS_FLAC)
+ ELSE(FLAC)
+- SET(LIBFLAC_LIBRARIES "")
++ SET(FLAC_LIBRARIES "")
+ ENDIF(FLAC)
+
+ # MPG123 support
+@@ -387,7 +387,7 @@ ENDIF(FLUIDSYNTH)
+
+
+ IF(NOT DYNLOAD)
+- SET(EXTRA_LIBS ${SNDFILE_LIBRARIES} ${VORBISFILE_LIBRARIES} ${LIBFLAC_LIBRARIES} ${MPG123_LIBRARIES} ${DUMB_LIBRARIES} ${MODPLUG_LIBRARIES} ${FLUIDSYNTH_LIBRARIES} ${EXTRA_LIBS})
++ SET(EXTRA_LIBS ${SNDFILE_LIBRARIES} ${VORBISFILE_LIBRARIES} ${FLAC_LIBRARIES} ${MPG123_LIBRARIES} ${DUMB_LIBRARIES} ${MODPLUG_LIBRARIES} ${FLUIDSYNTH_LIBRARIES} ${EXTRA_LIBS})
+ ELSE(NOT DYNLOAD)
+ ADD_DEFINITIONS(-DDYNLOAD=1)
+ ENDIF(NOT DYNLOAD)
diff --git a/audio/alure/patches/patch-src_codec__fluidsynth.cpp b/audio/alure/patches/patch-src_codec__fluidsynth.cpp
new file mode 100644
index 00000000000..6b0ba79697b
--- /dev/null
+++ b/audio/alure/patches/patch-src_codec__fluidsynth.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_codec__fluidsynth.cpp,v 1.1 2018/09/21 13:24:34 maya Exp $
+
+http://repo.or.cz/alure.git/patch/38e56406f47ee1322464e67b8fea8822856af61b
+
+--- src/codec_fluidsynth.cpp.orig 2011-07-29 08:37:48.000000000 +0000
++++ src/codec_fluidsynth.cpp
+@@ -29,6 +29,8 @@
+ #include <assert.h>
+ #ifdef _WIN32
+ #include <io.h>
++#else
++#include <unistd.h>
+ #endif
+
+ #include <istream>