Date: Fri, 30 Jul 2004 21:21:27 -0400 (EDT) From: Michael Johnson <ahze@ahze.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/69836: [MAINTAINER] graphics/lphoto: [Add option to use jpeg-mmx] Message-ID: <200407310121.i6V1LRgo045451@gentoo.ahze.net> Resent-Message-ID: <200407310130.i6V1UPoB013680@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69836 >Category: ports >Synopsis: [MAINTAINER] graphics/lphoto: [Add option to use jpeg-mmx] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Jul 31 01:30:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Michael Johnson >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #58: Fri Jul 23 20:15:17 EDT 2004 >Description: - Add option to use jpeg-mmx pr-69829 needs to commited first Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: >Fix: --- lphoto-1.0.13.patch begins here --- Index: Makefile =================================================================== RCS file: /usr/opt/cvs/freebsd-src/ports/graphics/lphoto/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 28 Jun 2004 07:03:07 -0000 1.1 +++ Makefile 31 Jul 2004 01:17:38 -0000 @@ -19,12 +19,32 @@ RUN_DEPENDS= gphoto2:${PORTSDIR}/graphics/gphoto2 \ pyuic:${PORTSDIR}/x11-toolkits/py-qt +USE_REINPLACE= yes USE_KDELIBS_VER=3 USE_PYTHON= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +# Hack to use OPTIONS since OPTIONS is listed below bsd.port.pre.mk +OPTIONS= + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "i386" +OPTIONS+= JPEGMMX "Use JPEG with MMX optimization" off +.endif + +.if defined(WITH_JPEGMMX) +RUN_DEPENDS+= jpegtran-mmx:${PORTSDIR}/graphics/jpeg-mmx +.endif + +post-patch: +.if defined(WITH_JPEGMMX) + @${REINPLACE_CMD} -e 's|jpegtran|jpegtran-mmx|' \ + ${WRKSRC}/Lphoto/photolibrary.py +.endif + do-install: @cd ${WRKSRC} && ${PYTHON_CMD} install.py -d ${PREFIX}/${PYTHON_SITELIBDIR:S/${PYTHONBASE}//} -b ${PREFIX}/bin -.include <bsd.port.mk> +.include <bsd.port.post.mk> --- lphoto-1.0.13.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407310121.i6V1LRgo045451>