forked from Lainports/freebsd-ports
Add USES=compiler:c++11-lang to fix build: /usr/include/tgmath.h:124:2: error: #error "<tgmath.h> not implemented for this compiler" Approved by: mentors (implicit approval)
39 lines
945 B
Makefile
39 lines
945 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= hashdb
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.1.0-8
|
|
DISTVERSIONSUFFIX= -g1da1b9f
|
|
CATEGORIES= misc
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Block hash database tool and API
|
|
|
|
LICENSE= PD
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= swig3.0:devel/swig30
|
|
LIB_DEPENDS= libewf.so:devel/libewf
|
|
|
|
USES= autoreconf compiler:c++11-lang gmake libtool localbase:ldflags \
|
|
python 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}
|
|
BINARY_ALIAS= swig=${LOCALBASE}/bin/swig3.0
|
|
|
|
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>
|