diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/alure/DESCR | 10 | ||||
-rw-r--r-- | audio/alure/Makefile | 22 | ||||
-rw-r--r-- | audio/alure/PLIST | 27 | ||||
-rw-r--r-- | audio/alure/buildlink3.mk | 14 | ||||
-rw-r--r-- | audio/alure/distinfo | 8 | ||||
-rw-r--r-- | audio/alure/options.mk | 48 | ||||
-rw-r--r-- | audio/alure/patches/patch-CMakeLists.txt | 24 | ||||
-rw-r--r-- | audio/alure/patches/patch-src_codec__fluidsynth.cpp | 15 |
8 files changed, 168 insertions, 0 deletions
diff --git a/audio/alure/DESCR b/audio/alure/DESCR new file mode 100644 index 00000000000..71017def7b5 --- /dev/null +++ b/audio/alure/DESCR @@ -0,0 +1,10 @@ +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. diff --git a/audio/alure/Makefile b/audio/alure/Makefile new file mode 100644 index 00000000000..1f317699de5 --- /dev/null +++ b/audio/alure/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2018/09/21 13:24:34 maya Exp $ + +DISTNAME= alure-1.2 +CATEGORIES= audio +MASTER_SITES= http://kcat.strangesoft.net/alure-releases/ + +MAINTAINER= bastiangermann@fishpost.de +HOMEPAGE= http://kcat.strangesoft.net/alure +COMMENT= Helps manage common tasks with OpenAL applications +LICENSE= mit + +USE_CMAKE= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ +CMAKE_ARGS+= -DBUILD_EXAMPLES=OFF -DDUMB=OFF -DDYNLOAD=OFF + +PKGCONFIG_OVERRIDE+= alure-static.pc.in +PKGCONFIG_OVERRIDE+= alure.pc.in + +.include "options.mk" +.include "../../audio/openal-soft/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/audio/alure/PLIST b/audio/alure/PLIST new file mode 100644 index 00000000000..bd08651bb65 --- /dev/null +++ b/audio/alure/PLIST @@ -0,0 +1,27 @@ +@comment $NetBSD: PLIST,v 1.1 2018/09/21 13:24:34 maya Exp $ +include/AL/alure.h +lib/libalure-static.a +lib/libalure.so +lib/libalure.so.1 +lib/libalure.so.${PKGVERSION}.0 +lib/pkgconfig/alure-static.pc +lib/pkgconfig/alure.pc +share/doc/alure/html/files/alure-cpp.html +share/doc/alure/html/files/buffer-cpp.html +share/doc/alure/html/files/istream-cpp.html +share/doc/alure/html/files/stream-cpp.html +share/doc/alure/html/files/streamplay-cpp.html +share/doc/alure/html/index.html +share/doc/alure/html/index/Functions.html +share/doc/alure/html/index/General.html +share/doc/alure/html/javascript/main.js +share/doc/alure/html/javascript/searchdata.js +share/doc/alure/html/search/FunctionsA.html +share/doc/alure/html/search/GeneralA.html +share/doc/alure/html/search/GeneralF.html +share/doc/alure/html/search/GeneralM.html +share/doc/alure/html/search/GeneralS.html +share/doc/alure/html/search/NoResults.html +share/doc/alure/html/styles/1.css +share/doc/alure/html/styles/2.css +share/doc/alure/html/styles/main.css diff --git a/audio/alure/buildlink3.mk b/audio/alure/buildlink3.mk new file mode 100644 index 00000000000..54fb71d878b --- /dev/null +++ b/audio/alure/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/09/21 13:24:34 maya Exp $ + +BUILDLINK_TREE+= alure + +.if !defined(ALURE_BUILDLINK3_MK) +ALURE_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.alure+= alure>=1.2 +BUILDLINK_PKGSRCDIR.alure?= ../../audio/alure + +.include "../../audio/openal-soft/buildlink3.mk" +.endif # ALURE_BUILDLINK3_MK + +BUILDLINK_TREE+= -alure diff --git a/audio/alure/distinfo b/audio/alure/distinfo new file mode 100644 index 00000000000..d20b303ad2b --- /dev/null +++ b/audio/alure/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2018/09/21 13:24:34 maya Exp $ + +SHA1 (alure-1.2.tar.gz) = 82c40fe01c22c4869130b29d26139720401a5313 +RMD160 (alure-1.2.tar.gz) = 900120da54efa87aca9bae460f9f4d7d7b23aa3f +SHA512 (alure-1.2.tar.gz) = 77c3064deeb0ae9a04c13895648d4c57dd6af803868c4db7489366dd698dbca2d162be84ec581df76417e99eb4b96c38032d690eb33f9fe1b7b352b4aa1c84c1 +Size (alure-1.2.tar.gz) = 85331 bytes +SHA1 (patch-CMakeLists.txt) = 06f86259498a723ce8c159774aa2afbb7418a2ae +SHA1 (patch-src_codec__fluidsynth.cpp) = 7042da99b93d722c3241094d7bb941250cb135f6 diff --git a/audio/alure/options.mk b/audio/alure/options.mk new file mode 100644 index 00000000000..bc541ed56b2 --- /dev/null +++ b/audio/alure/options.mk @@ -0,0 +1,48 @@ +# $NetBSD: options.mk,v 1.1 2018/09/21 13:24:34 maya Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.alure +PKG_SUPPORTED_OPTIONS= flac fluidsynth modplug mpg123 sndfile vorbis + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mflac) +CMAKE_ARGS+= -DFLAC=ON +.include "../../audio/flac/buildlink3.mk" +.else +CMAKE_ARGS+= -DFLAC=OFF +.endif + +.if !empty(PKG_OPTIONS:Mfluidsynth) +CMAKE_ARGS+= -DFLUIDSYNTH=ON +.include "../../audio/fluidsynth/buildlink3.mk" +.else +CMAKE_ARGS+= -DFLUIDSYNTH=OFF +.endif + +.if !empty(PKG_OPTIONS:Mmodplug) +CMAKE_ARGS+= -DMODPLUG=ON +.include "../../audio/libmodplug/buildlink3.mk" +.else +CMAKE_ARGS+= -DMODPLUG=OFF +.endif + +.if !empty(PKG_OPTIONS:Msndfile) +CMAKE_ARGS+= -DSNDFILE=ON +.include "../../audio/libsndfile/buildlink3.mk" +.else +CMAKE_ARGS+= -DSNDFILE=OFF +.endif + +.if !empty(PKG_OPTIONS:Mvorbis) +CMAKE_ARGS+= -DVORBIS=ON +.include "../../audio/libvorbis/buildlink3.mk" +.else +CMAKE_ARGS+= -DVORBIS=OFF +.endif + +.if !empty(PKG_OPTIONS:Mmpg123) +CMAKE_ARGS+= -DMPG123=ON +.include "../../audio/mpg123/buildlink3.mk" +.else +CMAKE_ARGS+= -DMPG123=OFF +.endif 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> |