- Fix build with clang, respect CC and CFLAGS

- Add staging support
- Switch to USES=gmake
- Strip program
This commit is contained in:
Pawel Pekala 2014-04-01 15:19:43 +00:00
parent a1a5ce5985
commit 32e97360b3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349860

View file

@ -11,14 +11,18 @@ DISTNAME= FSMGenerator${PORTVERSION:S/.//g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Finite State Machine generating software
PLIST_FILES= bin/fsmgenerator
USE_GMAKE= yes
USES= gmake
PLIST_FILES= bin/fsmgenerator
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>