diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2017-06-16 15:29:10 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2017-06-16 15:29:10 +0000 |
commit | 10ef26b585540021c3b3d2911c1a863cf96d8dc8 (patch) | |
tree | 83ca02eb4ec53a7e7bf781078765c7c511768ceb | |
parent | cec3e2fc2734064ae3dc05688681a0abb59d694e (diff) |
- Add SNDIO option and make enabling the sndio backend explicit. It's
currently automatically enabled when sndio is available in the build
environment.
- Add a OSS default option, so that the OSS backend can be turned off
if desired.
- Since there are a lot of audio backend options, group them to make
the config dialog more readable.
- USES=localbase:ldflags
PR: 219998
Approved by: mat (mentor), Dan Nelson <dnelson@allantgroup.com> (maintainer)
Differential Revision: https://reviews.freebsd.org/D11227
Notes
Notes:
svn path=/head/; revision=443710
-rw-r--r-- | audio/sox/Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile index 68d3e427c74d..22ce8c6fab45 100644 --- a/audio/sox/Makefile +++ b/audio/sox/Makefile @@ -3,7 +3,7 @@ PORTNAME= sox PORTVERSION= 14.4.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= SF @@ -21,12 +21,14 @@ LIB_DEPENDS= libltdl.so:devel/libltdl CONFLICTS= play-[0-9]* GNU_CONFIGURE= yes -USES= autoreconf pkgconfig libtool +USES= autoreconf libtool localbase:ldflags pkgconfig USE_LDCONFIG= yes -OPTIONS_DEFINE= ALSA AO AMRNB AMRWB FLAC GSM ID3TAG LADSPA LAME \ - MAD OPUS PNG PULSEAUDIO SNDFILE TWOLAME VORBIS WAVPACK -OPTIONS_DEFAULT= AO FLAC GSM ID3TAG MAD OPUS PNG SNDFILE VORBIS +OPTIONS_DEFINE= AMRNB AMRWB FLAC GSM ID3TAG LADSPA LAME MAD OPUS PNG \ + SNDFILE TWOLAME VORBIS WAVPACK +OPTIONS_DEFAULT= AO FLAC GSM ID3TAG MAD OPUS OSS PNG SNDFILE VORBIS +OPTIONS_GROUP= SOUND +OPTIONS_GROUP_SOUND= ALSA AO OSS PULSEAUDIO SNDIO # Default LAME to off for packages so we don't end up RESTRICTED .if !defined(PACKAGE_BUILDING) OPTIONS_DEFAULT+= LAME @@ -37,8 +39,7 @@ AMRWB_DESC= AMR Speech Codec (Wideband) GSM_DESC= Use libgsm from ports (else use bundled lib) PNG_DESC= PNG spectrogram creation -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -lpthread -L${LOCALBASE}/lib +LDFLAGS+= -lpthread CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig" CONFIGURE_ARGS+= --with-distro="${CONFIGURE_TARGET} ${PKGNAME}" CONFIGURE_ARGS+= --with-gsm @@ -76,12 +77,17 @@ FLAC_LIB_DEPENDS= libFLAC.so:audio/flac MAD_CONFIGURE_WITH= mad MAD_LIB_DEPENDS= libmad.so:audio/libmad +OSS_CONFIGURE_WITH= oss + PNG_CONFIGURE_WITH= png PNG_LIB_DEPENDS= libpng.so:graphics/png PULSEAUDIO_CONFIGURE_WITH= pulseaudio PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio +SNDIO_CONFIGURE_WITH= sndio +SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio + GSM_LIB_DEPENDS= libgsm.so:audio/gsm ID3TAG_CONFIGURE_WITH= id3tag |