should fix another build failure reported by naddy@, without it setup.py tries to install it via pip and fails horribly
41 lines
939 B
Makefile
41 lines
939 B
Makefile
# $OpenBSD: Makefile,v 1.3 2020/11/04 12:57:07 landry Exp $
|
|
|
|
COMMENT = Python library for reading and writing PDF files
|
|
|
|
MODPY_EGG_VERSION = 1.19.3
|
|
DISTNAME = pikepdf-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
|
|
CATEGORIES = print
|
|
|
|
HOMEPAGE = https://pikepdf.readthedocs.io/
|
|
|
|
# MPL-2.0
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} m qpdf
|
|
|
|
# C++14
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
MODULES = lang/python
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
MODPY_PYTEST = Yes
|
|
|
|
FLAVORS = python3
|
|
FLAVOR = python3
|
|
|
|
BUILD_DEPENDS = devel/py-pybind11${MODPY_FLAVOR} \
|
|
devel/py-setuptools_scm_git_archive${MODPY_FLAVOR} \
|
|
devel/py-setuptools_scm${MODPY_FLAVOR}
|
|
RUN_DEPENDS = graphics/py-Pillow${MODPY_FLAVOR} \
|
|
textproc/py-lxml${MODPY_FLAVOR}
|
|
LIB_DEPENDS = print/qpdf
|
|
TEST_DEPENDS = devel/py-hypothesis${MODPY_FLAVOR} \
|
|
sysutils/py-psutil${MODPY_FLAVOR}
|
|
|
|
TEST_ENV = PYTHONPATH=${WRKSRC}/src/pikepdf:
|
|
|
|
.include <bsd.port.mk>
|