1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00
Files
ports/audio/py-samplerate/Makefile
T
Charlie Li d04d23ae37 python.mk: retire ${PYNUMPY}
With both math/py-numpy (2) and math/py-numpy1, the variable stopped
making sense. Also remove the upper version bound.
2026-04-03 16:52:43 -04:00

35 lines
1.0 KiB
Makefile

PORTNAME= samplerate
DISTVERSION= 0.2.1
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python wrapper for libsamplerate based on pybind11 and NumPy
WWW= https://github.com/tuxu/python-samplerate
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \
pybind11>0:devel/pybind11 \
cmake:devel/cmake-core
LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy1>=1.16:math/py-numpy1@${PY_FLAVOR}
USES= cmake compiler:c++14-lang pkgconfig python
USE_PYTHON= flavors pytest
TEST_WRKSRC= ${WRKSRC}/tests
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
PLIST_FILES= ${PYTHON_SITELIBDIR}/samplerate${PYTHON_TAG}.so
do-install:
${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
${INSTALL_LIB} ${BUILD_WRKSRC}/samplerate${PYTHON_TAG}.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
.include <bsd.port.mk>