Support staging

Don't force running the optional regression tests
This commit is contained in:
Adam Weinberger 2013-12-07 17:40:05 +00:00
parent 5512668c30
commit 47f17df7e4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335836

View File

@ -11,15 +11,12 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Peter Graf's Program Base Library
MAKEFILE= makefile
PLIST_FILES= lib/libpbl.a include/pbl.h
WRKSRC= ${WRKDIR}/${DISTNAME}/src
.ifndef(NOPORTDOCS)
PLIST_FILES=lib/libpbl.a include/pbl.h
PORTDOCS= *
.endif
NO_STAGE= yes
post-extract:
@${REINPLACE_CMD} -e 's/= -Wall -O3/+= -Wall -Werror/' \
-e 's/^CC=/CC?=/' -e '/^.rm -f/d' ${WRKSRC}/makefile
@ -29,15 +26,12 @@ post-extract:
${WRKSRC}/*.c
do-install:
${MKDIR} ${PREFIX}/lib ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libpbl.a ${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/pbl.h ${PREFIX}/include/
.ifndef(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/
.endif
${INSTALL_DATA} ${WRKSRC}/libpbl.a ${STAGEDIR}${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/pbl.h ${STAGEDIR}${PREFIX}/include/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}/
post-build test regression-test check:
test regression-test check:
${MAKE} -C ${WRKSRC} test
.include <bsd.port.mk>