1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Stage support

This commit is contained in:
Antoine Brodin 2014-02-18 18:29:02 +00:00
parent 37d5271513
commit 95f9414be9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344936

View File

@ -11,25 +11,22 @@ COMMENT= Frugal, high performance file carver
LICENSE= GPLv2
LIB_DEPENDS= tre.5:${PORTSDIR}/textproc/libtre
LIB_DEPENDS= libtre.so:${PORTSDIR}/textproc/libtre
GNU_CONFIGURE= yes
SUB_FILES= pkg-message
MAN1= scalpel.1
PLIST_FILES+= etc/scalpel.conf.sample bin/scalpel
PLIST_FILES= etc/scalpel.conf.sample bin/scalpel man/man1/scalpel.1.gz
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e \
's/#ifdef __APPLE__/#if defined(__APPLE__) || defined(__FreeBSD__)/' \
${WRKSRC}/src/scalpel.h
post-install:
@${CP} -p ${WRKSRC}/scalpel.conf ${PREFIX}/etc/scalpel.conf.sample
@${CAT} ${PKGMESSAGE}
@${CP} -p ${WRKSRC}/scalpel.conf ${STAGEDIR}${PREFIX}/etc/scalpel.conf.sample
.include <bsd.port.mk>