summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorgdt <gdt>2007-03-06 23:55:07 +0000
committergdt <gdt>2007-03-06 23:55:07 +0000
commit0bb95301d856296c8a2acf72dd6b7e28400d4732 (patch)
treefcd08119ddea12ac088c45ddd370e73d2ce20e75 /audio
parent0a652547ca0b5393e21cd22d2e37cf327d5a5f93 (diff)
downloadpkgsrc-0bb95301d856296c8a2acf72dd6b7e28400d4732.tar.gz
OPTIONize the use of lame, defaulting to off, due to LICENSE= problems.
concept reviewed by dillo@
Diffstat (limited to 'audio')
-rw-r--r--audio/sox/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile
index 572975ee20a..38309922656 100644
--- a/audio/sox/Makefile
+++ b/audio/sox/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.41 2007/02/23 09:05:41 wiz Exp $
+# $NetBSD: Makefile,v 1.42 2007/03/06 23:55:07 gdt Exp $
DISTNAME= sox-13.0.0
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sox/} \
http://www.cnpbagwell.com/
@@ -14,6 +15,12 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
+PKG_OPTIONS_VAR= PKG_OPTIONS.sox
+PKG_SUPPORTED_OPTIONS= lame
+# lame has LICENSE= issues and thus should not be SUGGESTED.
+PKG_SUGGESTED_OPTIONS=
+.include "../../mk/bsd.options.mk"
+
SUBST_CLASSES+= lrf
SUBST_FILES.lrf= src/libst-config.in
SUBST_SED.lrf= -e "s!@LRF@!"${LINKER_RPATH_FLAG}"!"
@@ -27,7 +34,10 @@ SUBST_STAGE.gsm= pre-configure
# needs obsolete FLAC API
#.include "../../audio/flac/buildlink3.mk"
.include "../../audio/gsm/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mlame)
+# This is an option due to LICENSE= issues.
.include "../../audio/lame/buildlink3.mk"
+.endif
.include "../../audio/libmad/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"