svn commit: r344971 - head/devel/astyle
Lars Engels
lme at FreeBSD.org
Tue Feb 18 21:57:56 UTC 2014
Author: lme
Date: Tue Feb 18 21:57:56 2014
New Revision: 344971
URL: http://svnweb.freebsd.org/changeset/ports/344971
QAT: https://qat.redports.org/buildarchive/r344971/
Log:
- Use USES for gmake, compiler and iconv
- Don't explicitly depend on GCC
- Strip binary
- Don't include bsd.port.options.mk
Modified:
head/devel/astyle/Makefile
Modified: head/devel/astyle/Makefile
==============================================================================
--- head/devel/astyle/Makefile Tue Feb 18 21:43:08 2014 (r344970)
+++ head/devel/astyle/Makefile Tue Feb 18 21:57:56 2014 (r344971)
@@ -16,17 +16,17 @@ ALL_TARGET= astyle
CFLAGS+= -W -Wall -fno-rtti -fno-exceptions
LDFLAGS+= -s
MAKE_ARGS+= CFLAGS="${CFLAGS}"
-USES= gmake
-USE_GCC= yes
+USES= compiler gmake iconv
WRKSRC= ${WRKDIR}/astyle/build/gcc
pre-patch:
- @${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},;' ${WRKSRC}/Makefile
-
-.include <bsd.port.options.mk>
+ @${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},; \
+ 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/*.html ${STAGEDIR}${DOCSDIR}
More information about the svn-ports-all
mailing list