aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/sox/Makefile11
-rw-r--r--audio/sox/distinfo1
2 files changed, 10 insertions, 2 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile
index 43626d5982e..f8b3e2d90f1 100644
--- a/audio/sox/Makefile
+++ b/audio/sox/Makefile
@@ -32,7 +32,8 @@ _LAME= off
_LAME= on
.endif
-OPTIONS= AO "Enable libao output" on \
+OPTIONS= ALSA "ALSA output driver" off \
+ AO "Enable libao output" on \
AMRNB "AMR Speech Codec (Narrowband)" off \
AMRWB "AMR Speech Codec (Wideband)" off \
FFMPEG "Enable ffmpeg en/decoding" on \
@@ -55,6 +56,14 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig"
CONFIGURE_ARGS+= --with-distro="${CONFIGURE_TARGET} ${PKGNAME}"
+.if defined(WITH_ALSA)
+LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
+RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
+CONFIGURE_ARGS+= --with-alsa
+.else
+CONFIGURE_ARGS+= --without-alsa
+.endif
+
.if defined(WITH_AO)
CONFIGURE_ARGS+= --with-ao
LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
diff --git a/audio/sox/distinfo b/audio/sox/distinfo
index 934ccb6a10d..9cb30480c67 100644
--- a/audio/sox/distinfo
+++ b/audio/sox/distinfo
@@ -1,3 +1,2 @@
-MD5 (sox-14.3.0.tar.gz) = 8e3509804e6227273ef84092e1a2fea7
SHA256 (sox-14.3.0.tar.gz) = 9abf411c949366d75c884b368284690b6c8c7d5fb5df0deaf599539b704b2397
SIZE (sox-14.3.0.tar.gz) = 1007679