ports/72742: [PATCH] multimedia/libmovtar: add jpeg-mmx support
Michael Johnson
ahze at ahze.net
Fri Oct 15 19:20:28 UTC 2004
>Number: 72742
>Category: ports
>Synopsis: [PATCH] multimedia/libmovtar: 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: Fri Oct 15 19:20:28 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:
--- libmovtar-0.1.3_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/libmovtar/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile 16 Mar 2004 04:23:52 -0000 1.14
+++ Makefile 15 Oct 2004 19:14:37 -0000
@@ -15,21 +15,34 @@
MAINTAINER= lioux at FreeBSD.org
COMMENT= Supports reading/writing of MJPEG video in YUV 4:2:2 JPEG
-LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
-
USE_SDL= sdl
USE_GNOME= gtk12
USE_GMAKE= yes
USE_REINPLACE= yes
-USE_SIZE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-m4data-prefix=${PREFIX}/share
-CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
+CONFIGURE_ARGS= --with-m4data-prefix=${PREFIX}/share
+CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS=${PTHREAD_LIBS}
.include <bsd.port.pre.mk>
+.if exists(${LOCALBASE}/lib/libjpeg-mmx.a)
+WITH_JPEGMMX= yes
+.endif
+
+.if defined(WITH_JPEGMMX) && (${ARCH} == "i386")
+LIB_DEPENDS+= jpeg-mmx.62:${PORTSDIR}/graphics/jpeg-mmx
+.else
+LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
+.endif
+
+pre-everything::
+.if !defined(WITH_JPEGMMX)
+ @${ECHO_MSG} "===> Enable Jpeg-mmx support by defining WITH_JPEGMMX"
+ @${ECHO_MSG} "===>"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' \
${WRKSRC}/rtjpeg/rtjshow.c \
--- libmovtar-0.1.3_2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list