svn commit: r349860 - head/devel/fsmgenerator
Pawel Pekala
pawel at FreeBSD.org
Tue Apr 1 15:19:44 UTC 2014
Author: pawel
Date: Tue Apr 1 15:19:43 2014
New Revision: 349860
URL: http://svnweb.freebsd.org/changeset/ports/349860
QAT: https://qat.redports.org/buildarchive/r349860/
Log:
- Fix build with clang, respect CC and CFLAGS
- Add staging support
- Switch to USES=gmake
- Strip program
Modified:
head/devel/fsmgenerator/Makefile
Modified: head/devel/fsmgenerator/Makefile
==============================================================================
--- head/devel/fsmgenerator/Makefile Tue Apr 1 14:42:34 2014 (r349859)
+++ head/devel/fsmgenerator/Makefile Tue Apr 1 15:19:43 2014 (r349860)
@@ -11,14 +11,18 @@ DISTNAME= FSMGenerator${PORTVERSION:S/./
MAINTAINER= ports at FreeBSD.org
COMMENT= Finite State Machine generating software
+USES= gmake
+
PLIST_FILES= bin/fsmgenerator
-USE_GMAKE= yes
-NO_STAGE= yes
post-patch:
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} \
${REINPLACE_CMD} -e "s|make$$|${GMAKE}|" \
- -e "s|^CFLAGS[ ]+=|CFLAGS +=|" \
- -e "s|/usr/local|${PREFIX}|"
+ -e "/^RCFLAGS/ s|=|= ${CFLAGS}|" \
+ -e "s|/usr/local|${STAGEDIR}${PREFIX}|" \
+ -e "s|gcc|${CC}|g"
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list