mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Support staging
This commit is contained in:
parent
abf44ae8bc
commit
d4b77c292f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346190
@ -11,22 +11,22 @@ MASTER_SITES= http://komquats.com/distfiles/ \
|
||||
MAINTAINER= cy@FreeBSD.org
|
||||
COMMENT= Print lines contans IP matching a pattern in CIDR format
|
||||
|
||||
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
|
||||
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
|
||||
|
||||
PLIST_FILES= bin/grepip
|
||||
PORTDOCS= README.txt
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC}; \
|
||||
${CC} ${CFLAGS} -c patricia.c; \
|
||||
${CC} ${CFLAGS} -I${LOCALBASE}/include -o grepip grepip.c patricia.o -L${LOCALBASE}/lib -lpcre
|
||||
${CC} ${CFLAGS} -I${LOCALBASE}/include -o grepip grepip.c patricia.o \
|
||||
-L${LOCALBASE}/lib -lpcre
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/grepip ${PREFIX}/bin
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/grepip ${STAGEDIR}${PREFIX}/bin
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user