diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-11-22 23:55:38 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-11-22 23:55:38 +0000 |
commit | b5b837e6361d3d4d43c99a68badbaed06d763537 (patch) | |
tree | 1f8f5c6681f7e60ccea94a4002539b2e7989a23f /audio/sox | |
parent | 272971d7890f2205fd087aa54817fd214e74b4f0 (diff) | |
download | ports-b5b837e6361d3d4d43c99a68badbaed06d763537.tar.gz ports-b5b837e6361d3d4d43c99a68badbaed06d763537.zip |
Notes
Diffstat (limited to 'audio/sox')
-rw-r--r-- | audio/sox/Makefile | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile index d19d3d2480f9..8c7487b93a4e 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> |