Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  7 Jun 2004 21:10:12 -0400 (EDT)
From:      michael johnson <ahze@ahze.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67696: [PATCH] graphics/jhead: [honor CC & CFLAGS]
Message-ID:  <20040608011012.12A975FB3@ahze.ahze.net>
Resent-Message-ID: <200406080120.i581KDUs035412@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         67696
>Category:       ports
>Synopsis:       [PATCH] graphics/jhead: [honor CC & CFLAGS]
>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 Jun 08 01:20:13 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 #50: Thu Jun  3 21:24:59 EDT
>Description:
- honor CC & CFLAGS

I submited this patch a few hours ago and I never saw it come through? so I am submitting it again.

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

--- jhead-2.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/jhead/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile	6 Apr 2004 12:52:05 -0000	1.9
+++ Makefile	7 Jun 2004 18:47:35 -0000
@@ -15,10 +15,15 @@
 
 MAKEFILE=	${WRKSRC}/makefile
 USE_GMAKE=	yes
+MAKE_ENV=	CC="${CC}"
+USE_REINPLACE=	yes
 
 PORTDOCS=	usage.html
 PLIST_FILES=	bin/jhead
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${MAKEFILE}
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/jhead ${PREFIX}/bin
 .if !defined(NOPORTDOCS)
--- jhead-2.1.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?20040608011012.12A975FB3>