ports/158546: [PATCH] fix audio/cdplay to build with clang
Niclas Zeising
niclas.zeising at gmail.com
Thu Jun 30 23:20:07 UTC 2011
>Number: 158546
>Category: ports
>Synopsis: [PATCH] fix audio/cdplay to build with 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: Thu Jun 30 23:20:06 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 at vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64
>Description:
>How-To-Repeat:
>Fix:
Attached patch makes audio/cdplay build with clang, instead of hardcoding gcc.
--- audio.cdplay.clangfix.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/cdplay/Makefile,v
retrieving revision 1.16
diff -u -d -r1.16 Makefile
--- Makefile 19 Nov 2009 22:07:31 -0000 1.16
+++ Makefile 30 Jun 2011 23:15:04 -0000
@@ -21,6 +21,9 @@
MAN1= cdplay.1
PLIST_FILES= bin/cdplay
+post-patch:
+ ${REINPLACE_CMD} -e 's/^\(CC[^g]*\)gcc$$/\1${CC}/' ${WRKSRC}/Makefile
+
pre-patch:
@${GUNZIP_CMD} ${WRKSRC}/cdplay.1.gz
--- audio.cdplay.clangfix.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list