Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2004 22:17:41 -0400 (EDT)
From:      michael johnson <ahze@ahze.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        x11@freebsd.org
Subject:   [PATCH] devel/imake: [Respect CC & CXX (which will respect CC&CXX on almost  every port that uses imake]
Message-ID:  <200404070217.i372HfFw083872@gentoo.ahze.net>

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

>Submitter-Id:	current-users
>Originator:	michael johnson
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] devel/imake: [Respect CC & CXX (which will respect CC&CXX on almost  every port that uses imake]
>Severity:	non-critical
>Priority: 	medium	
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 5.2-CURRENT i386
>Environment:
System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #37: Sat Mar 27 18:30:44 EST 2004
>Description:
- Respect CC & CXX 
- Remove lib/X11/doc/html/manindex1.html from pkg-plist (does not install and is not in ${WRKSRC} anywhere.)
 
I bumped PORTREVISION because CC and CXX are held in lib/X11/config/FreeBSD.cf

right now almost every port that uses imake (unless there is a patch) does not respect CC & CXX becaues imake doesn't respect CC and CXX

Port maintainer (x11@FreeBSD.org) is cc'd.

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

--- imake-4.3.0_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/imake-4/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- Makefile	6 Feb 2004 17:34:48 -0000	1.29
+++ Makefile	7 Apr 2004 02:06:49 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	imake
 PORTVERSION=	4.3.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_XFREE}
 MASTER_SITE_SUBDIR=	${PORTVERSION}
@@ -69,7 +69,8 @@
 
 pre-configure:
 	@${REINPLACE_CMD} -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g ; \
-		s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
+		s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g; \
+		s|%%CC%%|${CC}|g; s|%%CXX%%|${CXX}|g' \
 		${WRKSRC}/cf/FreeBSD.cf
 
 post-install:
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/devel/imake-4/pkg-plist,v
retrieving revision 1.8
diff -u -r1.8 pkg-plist
--- pkg-plist	12 Dec 2003 22:49:05 -0000	1.8
+++ pkg-plist	7 Apr 2004 01:57:54 -0000
@@ -127,7 +127,6 @@
 lib/X11/doc/html/makedepend.1.html
 lib/X11/doc/html/makeg.1.html
 lib/X11/doc/html/makestrs.1.html
-lib/X11/doc/html/manindex1.html
 lib/X11/doc/html/mergelib.1.html
 lib/X11/doc/html/mkdirhier.1.html
 lib/X11/doc/html/mkhtmlindex.1.html
Index: files/patch-d
===================================================================
RCS file: /home/ncvs/ports/devel/imake-4/files/patch-d,v
retrieving revision 1.6
diff -u -r1.6 patch-d
--- files/patch-d	6 Feb 2004 17:34:48 -0000	1.6
+++ files/patch-d	7 Apr 2004 02:04:43 -0000
@@ -1,5 +1,5 @@
 --- cf/FreeBSD.cf.orig	Tue Jan 14 21:52:12 2003
-+++ cf/FreeBSD.cf	Fri Feb  6 12:27:55 2004
++++ cf/FreeBSD.cf	Tue Apr  6 22:04:40 2004
 @@ -89,14 +89,14 @@
  # endif
  # define HasPosixThreads	YES
@@ -29,6 +29,22 @@
  #  endif
  #  define SharedX11Reqs		$(LDPRELIB) $(XTHRSTUBLIB)
  #  define SharedXtReqs		$(LDPRELIB) $(XLIBONLY) $(SMLIB) $(ICELIB) $(XTHRSTUBLIB)
+@@ -162,11 +162,11 @@
+  *    ld: warning: libXThrStub.so.6, needed by libX11.so, not found
+  */
+ #if BuildThreadStubLibrary && (!defined(UseInstalledX11) || !UseInstalledX11)
+-# define CcCmd			$(CLIENTENVSETUP) cc
+-# define CplusplusCmd		$(CLIENTENVSETUP) c++
++# define CcCmd			$(CLIENTENVSETUP) %%CC%% 
++# define CplusplusCmd		$(CLIENTENVSETUP) %%CXX%% 
+ #else
+-# define CcCmd			cc
+-# define CplusplusCmd		c++
++# define CcCmd			%%CC%%
++# define CplusplusCmd		%%CXX%%	
+ #endif
+ 
+ #define CppCmd			/usr/bin/cpp
 @@ -485,14 +485,14 @@
  /* The GCC strength-reduce bug is fixed for FreeBSD 2.1.5 and later */
  #ifndef DefaultGcc2i386Opt
--- imake-4.3.0_3.patch ends here ---



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