aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/scalpel/Makefile
blob: d60a11f2532abc60a8d57173ebf1af1499e7bd3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Created by: Hakisho Nukama <nukama@gmail.com>
# $FreeBSD$

PORTNAME=   scalpel
PORTVERSION=    2.0
CATEGORIES= sysutils
MASTER_SITES=   http://www.digitalforensicssolutions.com/Scalpel/

MAINTAINER= nukama+maintainer@gmail.com
COMMENT=    Frugal, high performance file carver

LICENSE=    GPLv2

LIB_DEPENDS=    libtre.so:${PORTSDIR}/textproc/libtre

GNU_CONFIGURE=  yes
SUB_FILES=  pkg-message

PLIST_FILES=    etc/scalpel.conf.sample bin/scalpel man/man1/scalpel.1.gz

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e \
        's/#ifdef __APPLE__/#if defined(__APPLE__) || defined(__FreeBSD__)/' \
        ${WRKSRC}/src/scalpel.h

post-install:
    @${CP} -p ${WRKSRC}/scalpel.conf ${STAGEDIR}${PREFIX}/etc/scalpel.conf.sample

.include <bsd.port.mk>