diff options
Diffstat (limited to 'multimedia/mjpegtools')
-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|' \ |