pkgsrc/multimedia/avidemux/Makefile
jlam e263f7e39e 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>.
2007-08-28 21:43:35 +00:00

86 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.43 2007/08/28 21:43:35 jlam Exp $
#
DISTNAME= avidemux_2.3.0
PKGNAME= ${DISTNAME:S/_/-/}
PKGREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://download.berlios.de/avidemux/
MAINTAINER= xtraeme@NetBSD.org
HOMEPAGE= http://fixounet.free.fr/avidemux/
COMMENT= Graphical video editing program
GCC_REQD+= 3.0
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake perl pkg-config msgfmt
CPPFLAGS+= -DDEVOSSAUDIO="\"${DEVOSSAUDIO}\""
LIBS+= ${LIBOSSAUDIO}
CONFIGURE_ENV+= X11_LDFLAGS=${X11_LDFLAGS:Q}
CONFIGURE_ENV+= ac_cv_path_ART_CONFIG=no
CONFIGURE_ARGS+= \
--with-jsapi-include=${BUILDLINK_PREFIX.spidermonkey}/include
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.avidemux
PKG_SUPPORTED_OPTIONS= faad
.if ${MACHINE_ARCH} == "i386"
PKG_SUPPORTED_OPTIONS+= mmx
.endif
.if ${OPSYS} == "Darwin"
CPPFLAGS+= -D__maxosx__
.if ${MACHINE_ARCH} == "powerpc"
CONFIGURE_ARGS+= --enable-altivec
CONFIGURE_ENV+= CCAS=${CC}
.endif
.endif
.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
post-configure:
${MV} ${WRKSRC}/avidemux/ADM_lavcodec/config.mak \
${WRKSRC}/avidemux/ADM_lavcodec/config.mak.in
${SED} -e 's/TARGET_MMX=yes/TARGET_MMX=no/g' \
< ${WRKSRC}/avidemux/ADM_lavcodec/config.mak.in \
> ${WRKSRC}/avidemux/ADM_lavcodec/config.mak
.endif
.include "../../audio/faac/buildlink3.mk"
.include "../../audio/lame/buildlink3.mk"
.include "../../audio/liba52/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../lang/spidermonkey/buildlink3.mk"
.include "../../multimedia/xvidcore/buildlink3.mk"
.include "../../multimedia/x264-devel/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"