summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-11-22 23:55:38 +0000
committerjylefort <jylefort@FreeBSD.org>2005-11-22 23:55:38 +0000
commitcaab158a975aaad9f608e7553a9e4de45ff0ceee (patch)
tree99c972d99649d262872bbf6ac12fa169b58a2803 /audio
parent1326c2989a34768eb89083086acd5432388a69b8 (diff)
downloadFreeBSD-ports-caab158a975aaad9f608e7553a9e4de45ff0ceee.zip
FreeBSD-ports-caab158a975aaad9f608e7553a9e4de45ff0ceee.tar.gz
OPTIONSify.
PR: ports/89117 Submitted by: Pawel Wieleba <P.Wieleba@iem.pw.edu.pl> Approved by: maintainer
Diffstat (limited to 'audio')
-rw-r--r--audio/sox/Makefile27
1 files changed, 4 insertions, 23 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile
index d19d3d2..8c7487b 100644
--- a/audio/sox/Makefile
+++ b/audio/sox/Makefile
@@ -21,19 +21,11 @@ MLINKS= play.1 rec.1 sox.1 soxmix.1
GNU_CONFIGURE= yes
MAKE_ENV= PLAY_SUPPORT=1
-.include <bsd.port.pre.mk>
-
-.if exists(${LOCALBASE}/lib/libmp3lame.so.0)
-WITH_LAME= YES
-.endif
+OPTIONS= LAME "Enable mp3 encoding with LAME" off \
+ MAD "Enable mp3 decoding with MAD" off \
+ VORBIS "Enable Ogg Vorbis support" off
-.if exists(${LOCALBASE}/lib/libmad.so.2)
-WITH_MAD= YES
-.endif
-
-.if exists(${LOCALBASE}/lib/libvorbis.so.3)
-WITH_VORBIS= YES
-.endif
+.include <bsd.port.pre.mk>
.if defined(WITH_VORBIS) || defined(WITH_LAME) || defined(WITH_MAD)
CFLAGS+= -I${LOCALBASE}/include
@@ -62,15 +54,4 @@ LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
CONFIGURE_ARGS+= --disable-mad
.endif
-pre-fetch:
-.if !defined(WITH_LAME)
- @${ECHO_MSG} "You can enable mp3 encoding by defining WITH_LAME."
-.endif
-.if !defined(WITH_MAD)
- @${ECHO_MSG} "You can enable mp3 decoding by defining WITH_MAD."
-.endif
-.if !defined(WITH_VORBIS)
- @${ECHO_MSG} "You can enable Ogg Vorbis support by defining WITH_VORBIS."
-.endif
-
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud