diff options
author | jlam <jlam> | 2007-08-28 21:43:35 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-08-28 21:43:35 +0000 |
commit | b7d9b5b027d37111879c457152915103d89a65bf (patch) | |
tree | 2beae921ec7b18b51d499417a569ef2591691b89 /multimedia | |
parent | e2342404f3ea38320d58d53f84c70f902f2bcb56 (diff) | |
download | pkgsrc-b7d9b5b027d37111879c457152915103d89a65bf.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/Makefile | 18 |
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 |