Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jun 2011 19:26:11 +0200 (CEST)
From:      Niclas Zeising <niclas.zeising@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158131: [PATCH] fix graphics/fujiplay to build using clang
Message-ID:  <201106211726.p5LHQBTq001644@vincent.daemonic.se>
Resent-Message-ID: <201106211730.p5LHUBW2026926@freefall.freebsd.org>

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

>Number:         158131
>Category:       ports
>Synopsis:       [PATCH] fix graphics/fujiplay to build using clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 21 17:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Niclas Zeising
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root@vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64


	
>Description:
	grahics/fujiplay hardcodes CC = gcc in vendor makefile.
>How-To-Repeat:
	
>Fix:

	Attached patch fixes grahics/fujiplay to build using default system compiler.

--- graphics.fujiplay.clangfix.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/fujiplay/Makefile,v
retrieving revision 1.9
diff -u -d -r1.9 Makefile
--- Makefile	24 Aug 2008 19:46:21 -0000	1.9
+++ Makefile	21 Jun 2011 17:23:49 -0000
@@ -21,6 +21,9 @@
 PLIST_FILES=	bin/fujiplay bin/yycc2ppm
 PORTDOCS=	README fujiplay.lsm mx700-commands.html
 
+post-patch:
+	${REINPLACE_CMD} -e 's/^\(CC[^g]*\)gcc$$/\1${CC}/' ${WRKSRC}/Makefile
+
 do-install:
 	(cd ${WRKDIR}; ${INSTALL_PROGRAM} fujiplay yycc2ppm ${PREFIX}/bin)
 .if !defined(NOPORTDOCS)
--- graphics.fujiplay.clangfix.diff ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106211726.p5LHQBTq001644>