svn commit: r436983 - head/lang/gcc

Gerald Pfeifer gerald at FreeBSD.org
Sun Mar 26 20:01:08 UTC 2017


Author: gerald
Date: Sun Mar 26 20:01:07 2017
New Revision: 436983
URL: https://svnweb.freebsd.org/changeset/ports/436983

Log:
  Use relative links for the generic g++, gcc, and gfortran.
  
  Replace a shell for-loop with a bmake .for-loop on the way.
  
  Reported by:	danfe
  Reviewed by:	danfe

Modified:
  head/lang/gcc/Makefile

Modified: head/lang/gcc/Makefile
==============================================================================
--- head/lang/gcc/Makefile	Sun Mar 26 19:52:53 2017	(r436982)
+++ head/lang/gcc/Makefile	Sun Mar 26 20:01:07 2017	(r436983)
@@ -3,6 +3,7 @@
 
 PORTNAME=	gcc
 PORTVERSION=	4.9.4
+PORTREVISION=	1
 CATEGORIES=	lang java
 MASTER_SITES=	GCC/releases/gcc-${DISTVERSION}
 
@@ -163,8 +164,8 @@ post-stage:
 	cd ${WRKDIR} ; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST}
 	# This is the canonical GCC port, so add key commands without
 	# version numbers as part of their names.
-	for c in gfortran g++ gcc; do \
-	    ${LN} -s ${PREFIX}/bin/"$$c"${SUFFIX} ${STAGEDIR}${PREFIX}/bin/$$c ; \
-	done
+.for c in gfortran g++ gcc
+	    ${LN} -s ${c}${SUFFIX} ${STAGEDIR}${PREFIX}/bin/${c}
+.endfor
 
 .include <bsd.port.post.mk>


More information about the svn-ports-all mailing list