pkgsrc/databases/py-sqlrelay/Makefile
2020-08-31 18:06:29 +00:00

33 lines
838 B
Makefile

# $NetBSD: Makefile,v 1.27 2020/08/31 18:07:14 wiz Exp $
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 15
COMMENT= Python extension for SQL Relay
.include "../../databases/sqlrelay/Makefile.common"
LICENSE= modified-bsd
# TODO: switch to PYTHON_VERSIONS_INCOMPATIBLE
PYTHON_VERSIONS_ACCEPTED= 36 27 # 37 fails as of 1.0.0
.include "../../lang/python/pyversion.mk"
CONFIGURE_ARGS+= --disable-perl
.if ${_PYTHON_VERSION} == 27
CONFIGURE_ARGS+= --disable-python3
CONFIGURE_ARGS+= --with-python-prefix=${PREFIX}
.else
CONFIGURE_ARGS+= --disable-python
CONFIGURE_ARGS+= --with-python3-prefix=${PREFIX}
.endif
CONFIGURE_ENV+= PYVERSSUFFIX=${PYVERSSUFFIX}
BUILD_DIRS= src/api/python
PY_PATCHPLIST= yes
.include "../../databases/sqlrelay/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"