pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/audio/alure



Module Name:    pkgsrc
Committed By:   maya
Date:           Fri Sep 21 13:24:34 UTC 2018

Added Files:
        pkgsrc/audio/alure: DESCR Makefile PLIST buildlink3.mk distinfo
            options.mk
        pkgsrc/audio/alure/patches: patch-CMakeLists.txt
            patch-src_codec__fluidsynth.cpp

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/alure/DESCR pkgsrc/audio/alure/Makefile \
    pkgsrc/audio/alure/PLIST pkgsrc/audio/alure/buildlink3.mk \
    pkgsrc/audio/alure/distinfo pkgsrc/audio/alure/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/alure/patches/patch-CMakeLists.txt \
    pkgsrc/audio/alure/patches/patch-src_codec__fluidsynth.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/audio/alure/DESCR
diff -u /dev/null pkgsrc/audio/alure/DESCR:1.1
--- /dev/null   Fri Sep 21 13:24:34 2018
+++ pkgsrc/audio/alure/DESCR    Fri Sep 21 13:24:34 2018
@@ -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.
Index: pkgsrc/audio/alure/Makefile
diff -u /dev/null pkgsrc/audio/alure/Makefile:1.1
--- /dev/null   Fri Sep 21 13:24:34 2018
+++ pkgsrc/audio/alure/Makefile Fri Sep 21 13:24:34 2018
@@ -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"
Index: pkgsrc/audio/alure/PLIST
diff -u /dev/null pkgsrc/audio/alure/PLIST:1.1
--- /dev/null   Fri Sep 21 13:24:34 2018
+++ pkgsrc/audio/alure/PLIST    Fri Sep 21 13:24:34 2018
@@ -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
Index: pkgsrc/audio/alure/buildlink3.mk
diff -u /dev/null pkgsrc/audio/alure/buildlink3.mk:1.1
--- /dev/null   Fri Sep 21 13:24:34 2018
+++ pkgsrc/audio/alure/buildlink3.mk    Fri Sep 21 13:24:34 2018
@@ -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
Index: pkgsrc/audio/alure/distinfo
diff -u /dev/null pkgsrc/audio/alure/distinfo:1.1
--- /dev/null   Fri Sep 21 13:24:34 2018
+++ pkgsrc/audio/alure/distinfo Fri Sep 21 13:24:34 2018
@@ -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
Index: pkgsrc/audio/alure/options.mk
diff -u /dev/null pkgsrc/audio/alure/options.mk:1.1
--- /dev/null   Fri Sep 21 13:24:34 2018
+++ pkgsrc/audio/alure/options.mk       Fri Sep 21 13:24:34 2018
@@ -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

Index: pkgsrc/audio/alure/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/audio/alure/patches/patch-CMakeLists.txt:1.1
--- /dev/null   Fri Sep 21 13:24:34 2018
+++ pkgsrc/audio/alure/patches/patch-CMakeLists.txt     Fri Sep 21 13:24:34 2018
@@ -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)
Index: pkgsrc/audio/alure/patches/patch-src_codec__fluidsynth.cpp
diff -u /dev/null pkgsrc/audio/alure/patches/patch-src_codec__fluidsynth.cpp:1.1
--- /dev/null   Fri Sep 21 13:24:34 2018
+++ pkgsrc/audio/alure/patches/patch-src_codec__fluidsynth.cpp  Fri Sep 21 13:24:34 2018
@@ -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