- Add staging support

- Convert to new LIB_DEPENDS format, options framework
This commit is contained in:
Pawel Pekala 2014-07-11 15:13:05 +00:00
parent 6aaa6f4830
commit 1c04e7d73e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361546
2 changed files with 12 additions and 9 deletions

View File

@ -5,12 +5,12 @@ PORTNAME= rats
PORTVERSION= 2.3
CATEGORIES= security devel
MASTER_SITES= https://www.fortify.com/downloads2/public/ \
http://redundancy.redundancy.org/mirror/
http://redundancy.redundancy.org/mirror/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Source code auditing tool
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
GNU_CONFIGURE= yes
USES= gmake
@ -20,12 +20,14 @@ CONFIGURE_ARGS+=--with-expat-lib=${LOCALBASE}/lib \
ALL_TARGET= ${PORTNAME}
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -E '/^CFLAGS/! s,(BIN|LIB|MAN|SHARE)DIR),DESTDIR)$$(&,g' \
${WRKSRC}/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
MAN1= rats.1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,4 +1,5 @@
bin/rats
man/man1/rats.1.gz
%%DATADIR%%/rats-c.xml
%%DATADIR%%/rats-openssl.xml
%%DATADIR%%/rats-perl.xml