diff options
author | lioux <lioux@FreeBSD.org> | 2004-12-15 09:42:49 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2004-12-15 09:42:49 +0800 |
commit | 9ac084aabd1bdc51f96a88adf6b818a8a4236cf2 (patch) | |
tree | 42c278b751eec9807eb8fbdadc37dd6638000417 /multimedia | |
parent | 6a1c2312a30dddfb31aa1d8351e35f906c543d91 (diff) | |
download | freebsd-ports-gnome-9ac084aabd1bdc51f96a88adf6b818a8a4236cf2.tar.gz freebsd-ports-gnome-9ac084aabd1bdc51f96a88adf6b818a8a4236cf2.tar.zst freebsd-ports-gnome-9ac084aabd1bdc51f96a88adf6b818a8a4236cf2.zip |
Add WITH_JPEGMMX knob for multimedia/jpeg-mmx support
PR: 72559
Submitted by: ahze
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mjpegtools/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/multimedia/mjpegtools/Makefile b/multimedia/mjpegtools/Makefile index e4b14369a9ac..40bde86e8ee1 100644 --- a/multimedia/mjpegtools/Makefile +++ b/multimedia/mjpegtools/Makefile @@ -15,8 +15,7 @@ MASTER_SITE_SUBDIR= mjpeg MAINTAINER= lioux@FreeBSD.org COMMENT= Set of tools to record/playback/edit videos in MPEG format -LIB_DEPENDS= aviplay.0:${PORTSDIR}/multimedia/avifile \ - jpeg.9:${PORTSDIR}/graphics/jpeg +LIB_DEPENDS= aviplay.0:${PORTSDIR}/multimedia/avifile RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 USE_GNOME= glib12 @@ -62,6 +61,10 @@ BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm .endif # pre-detection +# JPEGMMX +.if exists(${LOCALBASE}/lib/libjpeg-mmx.a) +WITH_JPEGMMX= yes +.endif # LIBDV .if exists(${LOCALBASE}/lib/libdv.a) WITH_LIBDV= yes @@ -92,6 +95,12 @@ PLIST_SUB+= GTK="" PLIST_SUB+= GTK="@comment " .endif # +.ifdef(WITH_JPEGMMX) +LIB_DEPENDS+= jpeg-mmx.62:${PORTSDIR}/graphics/jpeg-mmx +.else +LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg +.endif +# .ifdef(WITH_LIBDV) LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv @@ -129,6 +138,9 @@ pre-everything:: .if ${HAVE_GNOME:Mgtk12}=="" @${ECHO_MSG} "====> You can enable GTK support by defining WITH_GNOME" .endif +.ifndef(WITH_JPEGMMX) + @${ECHO_MSG} "====> You can enable Jpeg-MMX support by defining WITH_JPEGMMX" +.endif .ifndef(WITH_LIBDV) @${ECHO_MSG} "====> You can enable DV support by defining WITH_LIBDV" .endif |