summaryrefslogtreecommitdiff
path: root/misc/hashdb/Makefile
blob: d6628fab5b3631990c366e5ce9d0139853fa3138 (plain)
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
33
34
35
36
37
38

PORTNAME=	hashdb
DISTVERSIONPREFIX=	v
DISTVERSION=	3.1.0-8
PORTREVISION=	1
DISTVERSIONSUFFIX=	-g1da1b9f
CATEGORIES=	misc

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Block hash database tool and API

LICENSE=	PD
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	swig:devel/swig
LIB_DEPENDS=	libewf.so:devel/libewf

USES=		autoreconf compiler:c++11-lang gmake libtool localbase:ldflags \
		python:3.5+ ssl
GNU_CONFIGURE=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	NPS-DEEP
CONFIGURE_ARGS=	ac_cv_lib_ssl_SSL_library_init=yes \
		--disable-static --enable-shared # enable-shared fails: https://github.com/NPS-DEEP/hashdb/issues/9

INSTALL_TARGET=	install-strip

CONFIGURE_ENV=	PYTHON=${PYTHON_CMD}

CFLAGS+=	-fPIC
CXXFLAGS+=	-fPIC

PLIST_SUB+=	PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}

post-configure:
	@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} 's| -lstdc++ | |'

.include <bsd.port.mk>