pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/alure Add alure 1.2
details: https://anonhg.NetBSD.org/pkgsrc/rev/b1cbe6e71352
branches: trunk
changeset: 312994:b1cbe6e71352
user: maya <maya%pkgsrc.org@localhost>
date: Fri Sep 21 13:24:34 2018 +0000
description:
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:
audio/alure/DESCR | 10 ++++
audio/alure/Makefile | 22 +++++++++
audio/alure/PLIST | 27 +++++++++++
audio/alure/buildlink3.mk | 14 ++++++
audio/alure/distinfo | 8 +++
audio/alure/options.mk | 48 +++++++++++++++++++++
audio/alure/patches/patch-CMakeLists.txt | 24 ++++++++++
audio/alure/patches/patch-src_codec__fluidsynth.cpp | 15 ++++++
8 files changed, 168 insertions(+), 0 deletions(-)
diffs (200 lines):
diff -r 770430effe2f -r b1cbe6e71352 audio/alure/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alure/DESCR Fri Sep 21 13:24:34 2018 +0000
@@ -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 -r 770430effe2f -r b1cbe6e71352 audio/alure/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alure/Makefile Fri Sep 21 13:24:34 2018 +0000
@@ -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@localhost
+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 -r 770430effe2f -r b1cbe6e71352 audio/alure/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alure/PLIST Fri Sep 21 13:24:34 2018 +0000
@@ -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 -r 770430effe2f -r b1cbe6e71352 audio/alure/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alure/buildlink3.mk Fri Sep 21 13:24:34 2018 +0000
@@ -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 -r 770430effe2f -r b1cbe6e71352 audio/alure/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alure/distinfo Fri Sep 21 13:24:34 2018 +0000
@@ -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 -r 770430effe2f -r b1cbe6e71352 audio/alure/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alure/options.mk Fri Sep 21 13:24:34 2018 +0000
@@ -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 -r 770430effe2f -r b1cbe6e71352 audio/alure/patches/patch-CMakeLists.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alure/patches/patch-CMakeLists.txt Fri Sep 21 13:24:34 2018 +0000
@@ -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 -r 770430effe2f -r b1cbe6e71352 audio/alure/patches/patch-src_codec__fluidsynth.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alure/patches/patch-src_codec__fluidsynth.cpp Fri Sep 21 13:24:34 2018 +0000
@@ -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>
Home |
Main Index |
Thread Index |
Old Index