diff options
author | mva <mva@FreeBSD.org> | 2010-09-20 21:36:29 +0000 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2010-09-20 21:36:29 +0000 |
commit | fb530fce32b3b0dc0e2820250eb0099c8e699974 (patch) | |
tree | e54b3abd9429e840be7636ee58ec1dc71cae57a8 /audio | |
parent | 39b12467165d86d34d399a1cfd68f5efe93eb6da (diff) | |
download | FreeBSD-ports-fb530fce32b3b0dc0e2820250eb0099c8e699974.zip FreeBSD-ports-fb530fce32b3b0dc0e2820250eb0099c8e699974.tar.gz |
- Install configuration file and make proper use of it
PR: ports/150744
Submitted by: <swell.k@gmail.com>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/openal-soft/Makefile | 10 | ||||
-rw-r--r-- | audio/openal-soft/pkg-plist | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/audio/openal-soft/Makefile b/audio/openal-soft/Makefile index bd72677..da6097b 100644 --- a/audio/openal-soft/Makefile +++ b/audio/openal-soft/Makefile @@ -7,6 +7,7 @@ PORTNAME= openal-soft PORTVERSION= 1.12.854 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://kcat.strangesoft.net/openal-releases/ @@ -20,7 +21,7 @@ USE_CMAKE= yes USE_LDCONFIG= yes CMAKE_USE_PTHREAD= yes CMAKE_ARGS+= -DALSA:BOOL=OFF -DPORTAUDIO:BOOL=OFF -DSOLARIS:BOOL=OFF \ - -DDSOUND:BOOL=OFF + -DDSOUND:BOOL=OFF -DALSOFT_CONFIG:BOOL=ON OPTIONS= PULSEAUDIO "Enable sound streaming using PulseAudio" off @@ -35,4 +36,11 @@ CMAKE_ARGS+= -DPULSEAUDIO:BOOL=ON CMAKE_ARGS+= -DPULSEAUDIO:BOOL=OFF .endif +.post-patch: + @${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \ + ${WRKSRC}/Alc/alcConfig.c \ + ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} 's|alsoft.conf|alsoft.conf.sample|' \ + ${WRKSRC}/CMakeLists.txt + .include <bsd.port.post.mk> diff --git a/audio/openal-soft/pkg-plist b/audio/openal-soft/pkg-plist index b47242e..8df6004 100644 --- a/audio/openal-soft/pkg-plist +++ b/audio/openal-soft/pkg-plist @@ -1,4 +1,5 @@ bin/openal-info +%%ETCDIR%%/alsoft.conf.sample include/AL/al.h include/AL/alc.h include/AL/alext.h @@ -8,3 +9,4 @@ lib/libopenal.so.1 lib/libopenal.so libdata/pkgconfig/openal.pc @dirrmtry include/AL +@dirrmtry %%ETCDIR%% |