summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-28 21:43:35 +0000
committerjlam <jlam@pkgsrc.org>2007-08-28 21:43:35 +0000
commite263f7e39e94212484a12b35056cd58b6d2d5a0c (patch)
tree2beae921ec7b18b51d499417a569ef2591691b89 /multimedia
parent859326d6c943bee8064ddc66527b466958905a8b (diff)
downloadpkgsrc-e263f7e39e94212484a12b35056cd58b6d2d5a0c.tar.gz
Add "faad" as a PKG_OPTION. Due to Dolby licensing restrictions, if
the "faad" option is selected, then the resulting avidemux binary package cannot be distributed. Ok'ed by <xtraeme>.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/avidemux/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/multimedia/avidemux/Makefile b/multimedia/avidemux/Makefile
index f197f4ed7e8..badcfac3b74 100644
--- a/multimedia/avidemux/Makefile
+++ b/multimedia/avidemux/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2007/06/07 21:20:08 rillig Exp $
+# $NetBSD: Makefile,v 1.43 2007/08/28 21:43:35 jlam Exp $
#
DISTNAME= avidemux_2.3.0
@@ -23,15 +23,13 @@ LIBS+= ${LIBOSSAUDIO}
CONFIGURE_ENV+= X11_LDFLAGS=${X11_LDFLAGS:Q}
CONFIGURE_ENV+= ac_cv_path_ART_CONFIG=no
-CONFIGURE_ARGS+= --without-newfaad
-CONFIGURE_ARGS+= --disable-faad # Dolby doesn't allow binary distribution
CONFIGURE_ARGS+= \
--with-jsapi-include=${BUILDLINK_PREFIX.spidermonkey}/include
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.avidemux
-PKG_SUPPORTED_OPTIONS= # generally, none
+PKG_SUPPORTED_OPTIONS= faad
.if ${MACHINE_ARCH} == "i386"
PKG_SUPPORTED_OPTIONS+= mmx
.endif
@@ -47,6 +45,18 @@ CONFIGURE_ENV+= CCAS=${CC}
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mfaad)
+. include "../../audio/faad2/buildlink3.mk"
+CPPFLAGS+= -I${BUILDLINK_PREFIX.faad2}/include/faad2
+CONFIGURE_ARGS+= --with-faad2
+RESTRICTED= Dolby doesn't allow binary distributions (FAAD)
+NO_BIN_ON_FTP= ${RESTRICTED}
+NO_BIN_ON_CDROM= ${RESTRICTED}
+.else
+CONFIGURE_ARGS+= --without-newfaad
+CONFIGURE_ARGS+= --disable-faad
+.endif
+
.if empty(PKG_OPTIONS:Mmmx)
CONFIGURE_ARGS+= --disable-mmx