Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2013 22:03:05 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333938 - head/devel/cccc
Message-ID:  <201311152203.rAFM35Ba000605@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Nov 15 22:03:05 2013
New Revision: 333938
URL: http://svnweb.freebsd.org/changeset/ports/333938

Log:
  Support stage
  Properly respect CXX without the need of patching
  USE_GMAKE->USES=gmake

Modified:
  head/devel/cccc/Makefile

Modified: head/devel/cccc/Makefile
==============================================================================
--- head/devel/cccc/Makefile	Fri Nov 15 21:51:43 2013	(r333937)
+++ head/devel/cccc/Makefile	Fri Nov 15 22:03:05 2013	(r333938)
@@ -12,24 +12,19 @@ COMMENT=	C and C++ Code Counter
 BUILD_DEPENDS=	antlr:${PORTSDIR}/devel/pccts \
 		dlg:${PORTSDIR}/devel/pccts
 
-USE_GMAKE=	yes
+USES=		gmake
 MAKEFILE=	makefile
 MAKE_JOBS_UNSAFE=	yes
+MAKE_ARGS=	CCC="${CXX}"
 
 PORTDOCS=	readme.txt changes.txt
 PLIST_FILES=	bin/cccc
 
-NO_STAGE=	yes
-post-patch:
-	@${REINPLACE_CMD} -e 's|=g++|=${CXX}|' ${WRKSRC}/*/posix*.mak
-
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/cccc/cccc ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	@${INSTALL_PROGRAM} ${WRKSRC}/cccc/cccc ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${PORTDOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>



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