b4f1862849
pkglint -Wall -F --only aligned -r No manual corrections.
32 lines
948 B
Makefile
32 lines
948 B
Makefile
# $NetBSD: Makefile,v 1.35 2019/11/02 15:38:10 rillig Exp $
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-sqlite3-${PY_DISTVERSION}
|
|
PKGREVISION= 15
|
|
CATEGORIES= databases python
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.python.org/
|
|
COMMENT= Built-in sqlite support for Python 2.5 and up
|
|
|
|
USE_GCC_RUNTIME= yes
|
|
USE_TOOLS+= patch
|
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/_sqlite
|
|
|
|
# part of python itself; using distutils.mk will install a useless egg
|
|
PYDISTUTILSPKG= yes
|
|
PY_SETUP_SUBST+= SQLITE_PREFIX=${BUILDLINK_PREFIX.sqlite3}
|
|
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload
|
|
|
|
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
|
|
do-patch:
|
|
set -e; \
|
|
cd ${WRKSRC}; \
|
|
for f in ${PATCHDIR}/patch-*; do \
|
|
${PATCH} --batch < "$$f" || ${TRUE}; \
|
|
done
|
|
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../lang/python/srcdist.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|