espie 737fb8bb76 zap a few PKGNAME-sub which are now default
(and also duplicated EPOCH-sub which make little sense in db/{v3,v4}
2021-11-22 13:55:54 +00:00

63 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.40 2021/11/22 13:55:55 espie Exp $
COMMENT-main= trivial database library
COMMENT-python= Python ${MODPY_VERSION} bindings for tdb
# Keep in sync with the version bundled in net/samba
V= 1.4.5
DISTNAME= tdb-$V
PKGNAME-python= py3-${DISTNAME}
REVISION-python= 0
MULTI_PACKAGES= -main -python
# 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-main= c pthread
WANTLIB-python= intl m pthread tdb util
# Extra
WANTLIB-python+=${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-python= ${BUILD_PKGPATH},-main=${V} \
${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>