blob: 775230070fb1e5b82263018b66e7cb4c2cb2930f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# $NetBSD: Makefile,v 1.12 2017/08/24 20:03:08 adam Exp $
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
COMMENT= Python extension for SQL Relay
.include "../../databases/sqlrelay/Makefile.common"
LICENSE= modified-bsd
.include "../../lang/python/pyversion.mk"
.if ${PYPKGPREFIX} == "py27"
CONFIGURE_ARGS+= --disable-python3
CONFIGURE_ARGS+= --with-python-prefix=${PREFIX}
.else
CONFIGURE_ARGS+= --disable-python2
CONFIGURE_ARGS+= --with-python3-prefix=${PREFIX}
.endif
BUILD_DIRS= src/api/python
PY_PATCHPLIST= yes
.include "../../databases/sqlrelay/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
|