Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 01:10:18 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jgh@FreeBSD.org
Subject:   ports/171674: [NEW PORT] audio/alure: Utility library to help manage common tasks with OpenAL
Message-ID:  <20120915231027.B6ED2106566C@hub.freebsd.org>
Resent-Message-ID: <201209152320.q8FNK907071943@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171674
>Category:       ports
>Synopsis:       [NEW PORT] audio/alure: Utility library to help manage common tasks with OpenAL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 15 23:20:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:
ALURE is a utility library to help manage common tasks with OpenAL applications.
This includes device enumeration and initialization, file loading,
and streaming. As of version 1.1, it is X11/MIT licensed, allowing it to be used
in open- and closed-source programs, freeware or commercial.

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.

Currently ALURE includes a basic .wav and .aif file reader,
and can leverage external libraries such as libSndFile
(for extended wave formats and several others), VorbisFile (for Ogg Vorbis),
FLAC (for FLAC and Ogg FLAC), and others. External libraries can also be
dynamically loaded at run-time, or individually disabled outright at compile
time.

WWW: http://kcat.strangesoft.net/alure.html

Generated and tested manually, tested with port test and with RedPorts (all RELEASES, CLANG), sent with FreeBSD Port Tools 0.99_6 (mode: new)
>How-To-Repeat:

portlint -A
WARN: Makefile: only one MASTER_SITE configured.  Consider adding additional mirrors.


Build log RedPorts

https://redports.org/buildarchive/20120915160741-27406/

>Fix:

--- .shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	alure
#	alure/files
#	alure/files/patch-XCompile.txt
#	alure/files/patch-CMakeLists.txt
#	alure/Makefile
#	alure/pkg-descr
#	alure/distinfo
#	alure/pkg-plist
#
echo c - alure
mkdir -p alure > /dev/null 2>&1
echo c - alure/files
mkdir -p alure/files > /dev/null 2>&1
echo x - alure/files/patch-XCompile.txt
sed 's/^X//' >alure/files/patch-XCompile.txt << '95171e0a460b5e3cb5294d5d0d0fc90b'
X--- XCompile.txt.orig	2012-09-06 16:05:41.000000000 +0200
X+++ XCompile.txt	2012-09-06 16:06:18.000000000 +0200
X@@ -26,5 +26,5 @@
X 
X # set env vars so that pkg-config will look in the appropriate directory for
X # .pc files (as there seems to be no way to force using ${HOST}-pkg-config)
X-set(ENV{PKG_CONFIG_LIBDIR} "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
X+set(ENV{PKG_CONFIG_LIBDIR} "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig")
X set(ENV{PKG_CONFIG_PATH} "")
95171e0a460b5e3cb5294d5d0d0fc90b
echo x - alure/files/patch-CMakeLists.txt
sed 's/^X//' >alure/files/patch-CMakeLists.txt << '3ba5f52f274b9109d8220f56be1ea867'
X--- CMakeLists.txt.orig	2011-07-29 10:37:48.000000000 +0200
X+++ CMakeLists.txt	2012-09-15 17:46:29.000000000 +0200
X@@ -169,7 +169,7 @@
X OPTION(FLAC       "FLAC support (for FLAC and Ogg FLAC)" ON)
X OPTION(MPG123     "MPG123 support (for MP1/MP2/MP3)" ON)
X OPTION(DUMB       "DUMB support (for IT/XM/S3M/MOD)" ON)
X-OPTION(MODPLUG    "ModPlug support (for IT/XM/S3M/MOD)" OFF)
X+OPTION(MODPLUG    "ModPlug support (for IT/XM/S3M/MOD)" ON)
X OPTION(FLUIDSYNTH "FluidSynth support (for MID)" ON)
X 
X IF(WIN32)
3ba5f52f274b9109d8220f56be1ea867
echo x - alure/Makefile
sed 's/^X//' >alure/Makefile << 'f059a7db88ff518f6be9b28865c19e2a'
X# $FreeBSD$
X
XPORTNAME=	alure
XPORTVERSION=	1.2
XCATEGORIES=	audio
XMASTER_SITES=	http://kcat.strangesoft.net/alure-releases/
X
XMAINTAINER=	nemysis@gmx.ch
XCOMMENT=	Utility library to help manage common tasks with OpenAL
X
XLICENSE=	MIT
X
XLIB_DEPENDS+=	openal:${PORTSDIR}/audio/openal-soft \
X		sndfile:${PORTSDIR}/audio/libsndfile
X
XUSE_OPENAL=	al alut
XUSE_LDCONFIG=	yes
XUSE_CMAKE=	yes
XCMAKE_VERBOSE=	yes
X
XCFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
X
XOPTIONS_DEFINE=	VORBIS \
X		FLAC \
X		MPG123 \
X		DUMB \
X		MODPLUG \
X		FLUIDSYNTH
X
XOPTIONS_DEFAULT=	VORBIS FLAC DUMB
X
XVORBIS_DESC=	Enable OggVorbis support
XFLAC_DESC=	Enable Flac support
XMPG123_DESC=	Enable MPG123 support
XDUMB_DESC=	Enable DUMB support
XMODPLUG_DESC=	Enable ModPlug support
XFLUIDSYNTH_DESC=	Enable FluidSynth support
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MVORBIS}
XPLIST_SUB+=	VORBIS=""
XLIB_DEPENDS+=	vorbis:${PORTSDIR}/audio/libvorbis
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_VORBIS:BOOL=TRUE
X.else
XPLIST_SUB+=	VORBIS="@comment "
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_VORBIS:BOOL=FALSE
X.endif
X
X.if ${PORT_OPTIONS:MFLAC}
XPLIST_SUB+=	FLAC=""
XLIB_DEPENDS+=	FLAC:${PORTSDIR}/audio/flac
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_FLAC:BOOL=TRUE
X.else
XPLIST_SUB+=	FLAC="@comment "
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_FLAC:BOOL=FALSE
X.endif
X
X.if ${PORT_OPTIONS:MMPG123}
XPLIST_SUB+=	MPG123=""
XLIB_DEPENDS+=	mpg123:${PORTSDIR}/audio/mpg123
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_MPG123:BOOL=TRUE
X.else
XPLIST_SUB+=	mpg123="@comment "
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_MPG123:BOOL=FALSE
X.endif
X
X.if ${PORT_OPTIONS:MDUMB}
XPLIST_SUB+=	DUMB=""
XBUILD_DEPENDS+=	${LOCALBASE}/include/dumb.h:${PORTSDIR}/audio/dumb-allegro
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_DUMB:BOOL=TRUE
X.else
XPLIST_SUB+=	DUMB="@comment "
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_DUMB:BOOL=FALSE
X.endif
X
X.if ${PORT_OPTIONS:MMODPLUG}
XPLIST_SUB+=	MODPLUG=""
XBUILD_DEPENDS+=	${LOCALBASE}/include/libmodplug/modplug.h:${PORTSDIR}/audio/libmodplug
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_MODPLUG:BOOL=TRUE
X.else
XPLIST_SUB+=	MODPLUG="@comment "
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_MODPLUG:BOOL=FALSE
X.endif
X
X.if ${PORT_OPTIONS:MFLUIDSYNTH}
XPLIST_SUB+=	FLUIDSYNTH=""
XLIB_DEPENDS+=	fluidsynth:${PORTSDIR}/audio/fluidsynth
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_FLUIDSYNTH:BOOL=TRUE
X.else
XPLIST_SUB+=	FLUIDSYNTH="@comment "
XPLUGIN_OPTIONS_CMAKE+=	-DUSE_FLUIDSYNTH:BOOL=FALSE
X.endif
X
Xpost-install:
X# Fix lib/pkgconfig to libdata/pkgconfig
X	@(cd ${PREFIX}/lib/pkgconfig ; ${MV} * ${PREFIX}/libdata/pkgconfig)
X	@${RM} -fr ${PREFIX}/lib/pkgconfig
X
X# Examples
X	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
X
X# Documentation
X.if ${PORT_OPTIONS:MDOCS}
X	${MKDIR} ${DOCSDIR}/naturaldocs
X	${CP} -rp ${WRKSRC}/docs/naturaldocs/* ${DOCSDIR}/naturaldocs
X.endif
X
X.include <bsd.port.mk>
f059a7db88ff518f6be9b28865c19e2a
echo x - alure/pkg-descr
sed 's/^X//' >alure/pkg-descr << '7280d22369b85eb3fd3d027eebee0a74'
XALURE is a utility library to help manage common tasks with OpenAL applications.
XThis includes device enumeration and initialization, file loading,
Xand streaming. As of version 1.1, it is X11/MIT licensed, allowing it to be used
Xin open- and closed-source programs, freeware or commercial.
X
XThe purpose of this library is to provide pre-made functionality that would
Xotherwise be repetitive or difficult to (re)code for various projects
Xand platforms, such as loading a sound file into an OpenAL buffer and streaming
Xan audio file through a buffer queue. Support for different formats is
Xconsistant across platforms, so no special checks are needed when loading files,
Xand all formats are handled through the same API.
X
XCurrently ALURE includes a basic .wav and .aif file reader,
Xand can leverage external libraries such as libSndFile
X(for extended wave formats and several others), VorbisFile (for Ogg Vorbis),
XFLAC (for FLAC and Ogg FLAC), and others. External libraries can also be
Xdynamically loaded at run-time, or individually disabled outright at compile
Xtime.
X
XWWW: http://kcat.strangesoft.net/alure.html
7280d22369b85eb3fd3d027eebee0a74
echo x - alure/distinfo
sed 's/^X//' >alure/distinfo << 'b9a3a89a7a14de76bcedf2b1e142f5a8'
XSHA256 (alure-1.2.tar.gz) = 66f1cb6f1feba0c3e6e8118756d236f664b7a585cbb5551ee84b5669459f5b62
XSIZE (alure-1.2.tar.gz) = 85331
b9a3a89a7a14de76bcedf2b1e142f5a8
echo x - alure/pkg-plist
sed 's/^X//' >alure/pkg-plist << 'fcf1679134bb51d58398394d465f6208'
Xbin/alurecdplay
Xbin/alureplay
Xbin/alurestream
Xinclude/AL/alure.h
Xlib/libalure-static.a
Xlib/libalure.so
Xlib/libalure.so.1
Xlib/libalure.so.1.2.0
Xlibdata/pkgconfig/alure-static.pc
Xlibdata/pkgconfig/alure.pc
X%%PORTDOCS%%%%DOCSDIR%%/html/files/alure-cpp.html
X%%PORTDOCS%%%%DOCSDIR%%/html/files/buffer-cpp.html
X%%PORTDOCS%%%%DOCSDIR%%/html/files/istream-cpp.html
X%%PORTDOCS%%%%DOCSDIR%%/html/files/stream-cpp.html
X%%PORTDOCS%%%%DOCSDIR%%/html/files/streamplay-cpp.html
X%%PORTDOCS%%%%DOCSDIR%%/html/index.html
X%%PORTDOCS%%%%DOCSDIR%%/html/index/Functions.html
X%%PORTDOCS%%%%DOCSDIR%%/html/index/General.html
X%%PORTDOCS%%%%DOCSDIR%%/html/javascript/main.js
X%%PORTDOCS%%%%DOCSDIR%%/html/javascript/searchdata.js
X%%PORTDOCS%%%%DOCSDIR%%/html/search/FunctionsA.html
X%%PORTDOCS%%%%DOCSDIR%%/html/search/GeneralA.html
X%%PORTDOCS%%%%DOCSDIR%%/html/search/GeneralF.html
X%%PORTDOCS%%%%DOCSDIR%%/html/search/GeneralM.html
X%%PORTDOCS%%%%DOCSDIR%%/html/search/GeneralS.html
X%%PORTDOCS%%%%DOCSDIR%%/html/search/NoResults.html
X%%PORTDOCS%%%%DOCSDIR%%/html/styles/1.css
X%%PORTDOCS%%%%DOCSDIR%%/html/styles/2.css
X%%PORTDOCS%%%%DOCSDIR%%/html/styles/main.css
X%%PORTDOCS%%%%DOCSDIR%%/naturaldocs/CustomStyle.css
X%%PORTDOCS%%%%DOCSDIR%%/naturaldocs/Languages.txt
X%%PORTDOCS%%%%DOCSDIR%%/naturaldocs/Menu.txt
X%%PORTDOCS%%%%DOCSDIR%%/naturaldocs/Topics.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alurecdplay.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alureplay.c
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alurestream.c
X@dirrm %%PORTEXAMPLES%%%%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/naturaldocs
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/styles
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/search
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/javascript
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/index
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/files
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrmtry include/AL
fcf1679134bb51d58398394d465f6208
exit
--- .shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120915231027.B6ED2106566C>