ports/72559: [PATCH] multimedia/mjpegtools: [add jpeg-mmx support]

Michael Johnson ahze at ahze.net
Tue Oct 12 07:10:22 UTC 2004


>Number:         72559
>Category:       ports
>Synopsis:       [PATCH] multimedia/mjpegtools: [add jpeg-mmx support]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 12 07:10:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael Johnson
>Release:        FreeBSD 5.3-BETA6 i386
>Organization:
>Environment:
System: FreeBSD blueheron.ahze.net 5.3-BETA6 FreeBSD 5.3-BETA6 #67: Fri Oct  1 15:03:41 EDT
>Description:
- add jpeg-mmx support


Port maintainer (lioux at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- mjpegtools-1.6.2_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/mjpegtools/Makefile,v
retrieving revision 1.36
diff -u -r1.36 Makefile
--- Makefile	20 Aug 2004 15:57:33 -0000	1.36
+++ Makefile	12 Oct 2004 06:55:29 -0000
@@ -15,8 +15,7 @@
 MAINTAINER=	lioux at 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 @@
 .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="@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 @@
 .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
--- mjpegtools-1.6.2_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list