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