From ahze@gentoo.ahze.net  Sat Jul 31 01:21:48 2004
Return-Path: <ahze@gentoo.ahze.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EF9C216A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 31 Jul 2004 01:21:48 +0000 (GMT)
Received: from imf20aec.mail.bellsouth.net (imf20aec.mail.bellsouth.net [205.152.59.68])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 58B5C43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 31 Jul 2004 01:21:48 +0000 (GMT)
	(envelope-from ahze@gentoo.ahze.net)
Received: from gentoo.ahze.net ([68.209.163.3])
          by imf20aec.mail.bellsouth.net
          (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with ESMTP
          id <20040731012127.UGXA1721.imf20aec.mail.bellsouth.net@gentoo.ahze.net>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Fri, 30 Jul 2004 21:21:27 -0400
Received: (from root@localhost)
	by gentoo.ahze.net (8.12.11/8.12.11/Submit) id i6V1LRgo045451;
	Fri, 30 Jul 2004 21:21:27 -0400 (EDT)
	(envelope-from ahze)
Message-Id: <200407310121.i6V1LRgo045451@gentoo.ahze.net>
Date: Fri, 30 Jul 2004 21:21:27 -0400 (EDT)
From: Michael Johnson <ahze@ahze.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] graphics/lphoto: [Add option to use jpeg-mmx]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 31 01:30:25 GMT 2004
>Closed-Date:    Wed Oct 13 01:51:45 GMT 2004
>Last-Modified:  Wed Oct 13 01:51:45 GMT 2004
>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:
State-Changed-From-To: open->suspended 
State-Changed-By: vs 
State-Changed-When: Fri Aug 13 14:18:22 GMT 2004 
State-Changed-Why:  
Waiting for ports/69829 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69836 
State-Changed-From-To: suspended->open 
State-Changed-By: edwin 
State-Changed-When: Wed Oct 13 01:49:48 GMT 2004 
State-Changed-Why:  
depend port is updated 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69836 
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Wed Oct 13 01:51:44 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69836 
>Unformatted:
