diff options
author | ahze <ahze@FreeBSD.org> | 2005-04-03 00:43:31 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-04-03 00:43:31 +0800 |
commit | fef16846a2dc0e6faa67e2cc3f241e96e53e38d0 (patch) | |
tree | 0d120e535e2df30f52ea367cea28eab2b2cb9840 /multimedia | |
parent | 2915050a0600279a16685c57c24a4a2d282943f7 (diff) | |
download | freebsd-ports-gnome-fef16846a2dc0e6faa67e2cc3f241e96e53e38d0.tar.gz freebsd-ports-gnome-fef16846a2dc0e6faa67e2cc3f241e96e53e38d0.tar.zst freebsd-ports-gnome-fef16846a2dc0e6faa67e2cc3f241e96e53e38d0.zip |
- Add a new knob, WITHOUT_AVIFILE, to disable multimedia/avifile support to
hopefully fix build on !i386 !amd64. Avifile support is only enabled
for i386 and amd64
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mjpegtools/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/multimedia/mjpegtools/Makefile b/multimedia/mjpegtools/Makefile index 8f87ecc35a24..9c957f44e423 100644 --- a/multimedia/mjpegtools/Makefile +++ b/multimedia/mjpegtools/Makefile @@ -15,7 +15,7 @@ MASTER_SITE_SUBDIR= mjpeg MAINTAINER= ahze@FreeBSD.org COMMENT= Set of tools to record/playback/edit videos in MPEG format -LIB_DEPENDS= aviplay.0:${PORTSDIR}/multimedia/avifile +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png RUN_DEPENDS= bash:${PORTSDIR}/shells/bash CONFLICTS= mplex-* @@ -57,6 +57,12 @@ post-install: .include <bsd.port.pre.mk> +.if ${ARCH} == "i386" || ${ARCH} == "amd64" +.if !defined(WITHOUT_AVIFILE) && !defined(PACKAGE_BUILDING) +LIB_DEPENDS+= aviplay.0:${PORTSDIR}/multimedia/avifile +.endif +.endif + .if ${ARCH} == "i386" BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm .endif @@ -157,6 +163,11 @@ pre-everything:: .ifndef(WITH_SDL) @${ECHO_MSG} "====> You can enable SDL support by defining WITH_SDL" .endif +.if ${ARCH} == "i386" || ${ARCH} == "amd64" +.ifndef(WITHOUT_AVIFILE) + @${ECHO_MSG} "====> You can disable AVIFILE support by defining WITHOUT_AVIFILE" +.endif +.endif post-patch: @${REINPLACE_CMD} -E -e 's|^(pkgconfigdir = )\$$\(libdir\)/(pkgconfig)|\1${PREFIX}/libdata/\2|' \ |