openbsd-ports/databases/tdb/Makefile
2020-03-14 15:35:29 +00:00

52 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.32 2020/03/14 15:35:29 kn Exp $
COMMENT= trivial database library
# Keep in sync with the version bundled in net/samba
DISTNAME= tdb-1.3.18
# 0750 on Makefile and other files breaks update-patches with PORTS_PRIVSEP=Yes
FIX_EXTRACT_PERMISSIONS= Yes
SHARED_LIBS+= tdb 4.4
CATEGORIES= databases
HOMEPAGE= https://tdb.samba.org/
MAINTAINER= Jeremie Courreges-Anglas <jca@wxcvbn.org>
# LGPLv3+
PERMIT_PACKAGE= Yes
WANTLIB += c intl m pthread util ${MODPY_WANTLIB}
MASTER_SITES= https://download.samba.org/pub/tdb/
DEBUG_PACKAGES= ${BUILD_PACKAGES}
MODULES= lang/python
MODPY_RUNDEP= No
MODPY_ADJ_FILES= buildtools/bin/waf
BUILD_DEPENDS= textproc/docbook-xsl \
textproc/libxslt
LIB_DEPENDS= ${MODPY_LIB_DEPENDS}
WAF_ARGS= -v -j ${MAKE_JOBS}
MAKE_FLAGS= WAF_ARGS="${WAF_ARGS}"
.for _l _v in ${SHARED_LIBS}
MAKE_ENV += LIB${_l:S/-/_/g}_VERSION=${_v}
.endfor
TEST_ENV= LD_LIBRARY_PATH="${WRKSRC}/bin/default"
CONFIGURE_STYLE= simple
CONFIGURE_ARGS= --mandir="${PREFIX}/man" \
--disable-rpath
post-install:
${MODPY_BIN} -m compileall ${WRKINST}/${MODPY_SITEPKG}
.include <bsd.port.mk>