mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
audio/openal-soft: allow to build the port without the utilities
This helps to avoid dependency on `audio/libmysofa' and thus not to download its quite heavy ~190 MB distfile.
This commit is contained in:
parent
d2617f4542
commit
d754f15cf9
2 changed files with 10 additions and 7 deletions
|
@ -10,15 +10,13 @@ COMMENT= Software implementation of the OpenAL specification
|
||||||
LICENSE= LGPL20+
|
LICENSE= LGPL20+
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
LIB_DEPENDS= libmysofa.so:audio/libmysofa
|
|
||||||
|
|
||||||
USES= cmake compiler:c++14-lang tar:bzip2
|
USES= cmake compiler:c++14-lang tar:bzip2
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
CMAKE_ARGS= -DCMAKE_INSTALL_DATADIR:STRING="${PREFIX}/etc"
|
CMAKE_ARGS= -DCMAKE_INSTALL_DATADIR:STRING="${PREFIX}/etc"
|
||||||
CMAKE_OFF= ALSOFT_BACKEND_ALSA ALSOFT_DLOPEN ALSOFT_EXAMPLES \
|
CMAKE_OFF= ALSOFT_BACKEND_ALSA ALSOFT_DLOPEN ALSOFT_EXAMPLES \
|
||||||
ALSOFT_REQUIRE_QSA ALSOFT_REQUIRE_SOLARIS
|
ALSOFT_REQUIRE_QSA ALSOFT_REQUIRE_SOLARIS
|
||||||
CMAKE_ON= ALSOFT_BACKEND_WAVE ALSOFT_UTILS
|
CMAKE_ON= ALSOFT_BACKEND_WAVE
|
||||||
|
|
||||||
# do not link with librt and libdl.
|
# do not link with librt and libdl.
|
||||||
LDFLAGS+= -Wl,--as-needed
|
LDFLAGS+= -Wl,--as-needed
|
||||||
|
@ -26,11 +24,13 @@ LDFLAGS_i386= -Wl,-z,notext
|
||||||
|
|
||||||
PLIST_SUB= SOVERSION=${PORTVERSION}
|
PLIST_SUB= SOVERSION=${PORTVERSION}
|
||||||
|
|
||||||
OPTIONS_DEFINE= CONFIG EXAMPLES JACK OSS PORTAUDIO PULSEAUDIO SDL SNDIO
|
OPTIONS_DEFINE= CONFIG EXAMPLES JACK OSS PORTAUDIO PULSEAUDIO \
|
||||||
OPTIONS_DEFAULT= OSS
|
SDL SNDIO UTILS
|
||||||
|
OPTIONS_DEFAULT= OSS UTILS
|
||||||
OPTIONS_SUB= yes
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
CONFIG_DESC= Install configuration utility (needs Qt 5)
|
CONFIG_DESC= Install configuration utility (needs Qt 5)
|
||||||
|
UTILS_DESC= Build and install utility programs
|
||||||
|
|
||||||
CONFIG_USES= qt:5
|
CONFIG_USES= qt:5
|
||||||
CONFIG_USE= QT=core,gui,widgets,buildtools_build,qmake_build
|
CONFIG_USE= QT=core,gui,widgets,buildtools_build,qmake_build
|
||||||
|
@ -55,6 +55,9 @@ SDL_CMAKE_BOOL= ALSOFT_BACKEND_SDL2 ALSOFT_REQUIRE_SDL2
|
||||||
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
|
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
|
||||||
SNDIO_CMAKE_BOOL= ALSOFT_BACKEND_SNDIO ALSOFT_REQUIRE_SNDIO
|
SNDIO_CMAKE_BOOL= ALSOFT_BACKEND_SNDIO ALSOFT_REQUIRE_SNDIO
|
||||||
|
|
||||||
|
UTILS_LIB_DEPENDS= libmysofa.so:audio/libmysofa
|
||||||
|
UTILS_CMAKE_BOOL= ALSOFT_UTILS
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \
|
@${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \
|
||||||
${WRKSRC}/alc/alconfig.cpp
|
${WRKSRC}/alc/alconfig.cpp
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
%%CONFIG%%bin/alsoft-config
|
%%CONFIG%%bin/alsoft-config
|
||||||
bin/makemhr
|
%%UTILS%%bin/makemhr
|
||||||
bin/openal-info
|
%%UTILS%%bin/openal-info
|
||||||
%%ETCDIR%%/alsoftrc.sample
|
%%ETCDIR%%/alsoftrc.sample
|
||||||
%%ETCDIR%%/hrtf/Default HRTF.mhr
|
%%ETCDIR%%/hrtf/Default HRTF.mhr
|
||||||
%%ETCDIR%%/presets/3D7.1.ambdec
|
%%ETCDIR%%/presets/3D7.1.ambdec
|
||||||
|
|
Loading…
Add table
Reference in a new issue