1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/misc/hashdb/Makefile
Ruslan Makhmatkhanov dfcddca68e misc/hashdb: fix build
add setuptools dependency to fix build. the error was:

checking for python3.11... /usr/local/bin/python3.11
checking for a version of Python >= '2.1.0'... yes
checking for the distutils Python package... no
configure: error: cannot import Python module "distutils".
Please check your Python installation. The error was:
<string>:1: DeprecationWarning: The distutils package is deprecated and slated
for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

Reported by:	pkg fallout
Approved by:	portmgr (blanket approval)
2024-06-07 17:57:20 +03:00

41 lines
1.0 KiB
Makefile

PORTNAME= hashdb
DISTVERSIONPREFIX= v
DISTVERSION= 3.1.0-8
PORTREVISION= 2
DISTVERSIONSUFFIX= -g1da1b9f
CATEGORIES= misc
MAINTAINER= yuri@FreeBSD.org
COMMENT= Block hash database tool and API
WWW= https://github.com/NPS-DEEP/hashdb
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= swig:devel/swig \
${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
LIB_DEPENDS= libewf.so:devel/libewf
USES= autoreconf compiler:c++11-lang gmake libtool localbase:ldflags \
python ssl
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
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>