svn commit: r423305 - head/devel/astyle

Lars Engels lme at FreeBSD.org
Tue Oct 4 21:51:17 UTC 2016


Author: lme
Date: Tue Oct  4 21:51:15 2016
New Revision: 423305
URL: https://svnweb.freebsd.org/changeset/ports/423305

Log:
  devel/astyle:
  
  - Remove doubled CLFAGS
  - Use astyle/build/${COMPILER_TYPE} as WRCSRC instead of hard-coding gcc
  - Remove blank MAGE_ARGS
  - Drop no longer needed pre-patch target
  - Stripping the binary is now done by the linker itself
  
  PR:		    213042
  Submitted by:	bsam

Modified:
  head/devel/astyle/Makefile

Modified: head/devel/astyle/Makefile
==============================================================================
--- head/devel/astyle/Makefile	Tue Oct  4 21:39:52 2016	(r423304)
+++ head/devel/astyle/Makefile	Tue Oct  4 21:51:15 2016	(r423305)
@@ -13,22 +13,18 @@ COMMENT=	Source code indenter and format
 LICENSE=	LGPL3
 
 ALL_TARGET=	astyle
-CFLAGS+=	-W -Wall -fno-rtti -fno-exceptions
 LDFLAGS+=	-s
-MAKE_ARGS+=	CFLAGS="${CFLAGS}"
 USES=		compiler gmake iconv
 
-WRKSRC=		${WRKDIR}/astyle/build/gcc
+WRKSRC=		${WRKDIR}/astyle/build/${COMPILER_TYPE}
 
 OPTIONS_DEFINE=	DOCS
 
 pre-patch:
-	@${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},; \
-		s,\(CFLAGSr.*=.*\),\1 -I${LOCALBASE}/include,' \
+	@${REINPLACE_CMD} -e 's,\(CFLAGSr.*=.*\),\1 -I${LOCALBASE}/include,' \
 		${WRKSRC}/Makefile
 
 do-install:
-	${STRIP_CMD} ${WRKSRC}/bin/astyle
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${STAGEDIR}${PREFIX}/bin
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKDIR}/astyle/doc/* ${STAGEDIR}${DOCSDIR}


More information about the svn-ports-head mailing list