ports/85735: Force imake respect CC/CXX

skv at FreeBSD.org skv at FreeBSD.org
Mon Sep 5 09:10:13 UTC 2005


>Number:         85735
>Category:       ports
>Synopsis:       Force imake respect CC/CXX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 05 09:10:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Skvortsov
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
<Organization of PR author (multiple lines)>
>Environment:

	<Relevant environment information (multiple lines)>

>Description:

Force imake respect CC/CXX (accordingly to section 17.14 from "FreeBSD Porter's Handbook").

>How-To-Repeat:

	<Code/input/activities to reproduce the problem (multiple lines)>

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/imake-6/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	17 Mar 2005 23:22:07 -0000	1.7
+++ Makefile	5 Sep 2005 09:02:40 -0000
@@ -50,7 +50,9 @@
 INSTALL_TARGET=	install install.man
 
 pre-configure:
-	@${REINPLACE_CMD} -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g ; \
+	${REINPLACE_CMD} -E 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g ; \
+		s|^(#define CcCmd).*|\1	${CC}|; \
+		s|^(#define CplusplusCmd).*|\1	${CXX}|; \
 		s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
 		${WRKSRC}/cf/FreeBSD.cf
 
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list