33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
PORTNAME= zxing-cpp
|
|
DISTVERSION= 3.1.1
|
|
PORTREVISON= 1
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSION}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Python bindings for the zxing-cpp barcode library
|
|
WWW= https://github.com/zxing-cpp/zxing-cpp
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nanobind>=2.11.0:devel/py-nanobind@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}scikit-build-core>=0.12:devel/py-scikit-build-core@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.12:devel/py-typing-extensions@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
|
|
USES= compiler:c++20-lang cmake:indirect python # adding ninja:build here makes build parallelized, need to investigate why it isn't parallelized with BSD make
|
|
USE_PYTHON= autoplist concurrent pep517 pytest
|
|
|
|
TEST_ARGS= test.py
|
|
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
post-install:
|
|
@${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
|
|
|
|
# tests as of 3.1.1: 18 passed, 5 warnings in 1.16s
|
|
|
|
.include <bsd.port.mk>
|