ports/182230: [maintainer update] [net/gateway6] fix build without gcc/g++

Michael Scholz mike at fth-devel.net
Thu Sep 19 16:20:01 UTC 2013


>Number:         182230
>Category:       ports
>Synopsis:       [maintainer update] [net/gateway6] fix build without gcc/g++
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 19 16:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Michael Scholz
>Release:        FreeBSD 9.2-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD pumpkin.fth-devel.net 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r255514: Fri Sep 13 15:57:58 CEST 2013 root at pumpkin.fth-devel.net:/usr/obj/usr/src/sys/PUMPKIN amd64

>Description:
$CC and $CXX are hardcoded to gcc and g++.

>How-To-Repeat:
In src.conf set WITHOUT_GCC= and try to build the port.

>Fix:

--- gateway6.diff begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 327610)
+++ Makefile	(working copy)
@@ -1,13 +1,9 @@
-# New ports collection makefile for:   gateway6
-# Date created:        11 Jul 2007
-# Whom:                Michael Scholz (mike at fth-devel.net)
-#
+# Created by: Michael Scholz <mike at fth-devel.net>
 # $FreeBSD$
-#
 
 PORTNAME=	gateway6
 PORTVERSION=	6.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net ipv6
 MASTER_SITES=	http://go6.net/4105/file.asp?file_id=166&foo=/
 MASTER_SITES+=	http://go6.net/4105/file.asp?file_id=166&
@@ -19,25 +15,24 @@
 CONFLICTS=	freenet6-[0-9]*
 
 USE_RC_SUBR=	gateway6
+SUB_FILES=	pkg-message
+
 WRKSRC=		${WRKDIR}/gw6c-6_0_1
 ETCDIR=		${PREFIX}/etc
 
+MAN5=		gw6c.conf.5
 MAN8=		gw6c.8
-MAN5=		gw6c.conf.5
-GW6C_DATA=	\
-		CLIENT-LICENSE.TXT \
+GW6C_DATA=	CLIENT-LICENSE.TXT \
 		INSTALL \
 		README \
 		HEX_DC_0005_Gateway6_Client_Guide.pdf \
 		HEX_DC_0007_Gateway6_Client_Release_Notes.pdf
 
-PKGMESSAGE=	${WRKDIR}/pkg-message
-SUB_FILES=	pkg-message
-
 USES=		gmake perl5
 USE_PERL5=	build
 MAKE_JOBS_UNSAFE=yes
-MAKE_ARGS=	target=freebsd installdir=${PREFIX}
+MAKE_ARGS=	target=freebsd CC="${CC}" CXX="${CXX}" \
+		installdir="${PREFIX}" ETCDIR="${ETCDIR}"
 
 .include <bsd.port.pre.mk>
 
@@ -45,7 +40,9 @@
 .for f in ${GW6C_DATA}
 	@${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
 .endfor
+	@${ECHO_MSG}
 	@${CAT} ${PKGMESSAGE}
+	@${ECHO_MSG}
 
 post-patch:
 	@${REINPLACE_CMD} \
--- gateway6.diff ends here ---


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


More information about the freebsd-ports-bugs mailing list