Index: head/x11-fonts/py-opentype-sanitizer/Makefile =================================================================== --- head/x11-fonts/py-opentype-sanitizer/Makefile (revision 569585) +++ head/x11-fonts/py-opentype-sanitizer/Makefile (revision 569586) @@ -1,34 +1,40 @@ # Created by: Po-Chuan Hsieh # $FreeBSD$ PORTNAME= opentype-sanitizer PORTVERSION= 8.1.3 DISTVERSIONSUFFIX= .post1 CATEGORIES= x11-fonts python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Python wrapper for the OpenType Sanitizer LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} RUN_DEPENDS= ots-sanitize:x11-fonts/ots TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} USES= python:3.6+ USE_PYTHON= autoplist concurrent distutils +.include + +.if ${PYTHON_REL} >= 3800 +LDFLAGS+= -lpython${PYTHON_VER} +.endif + post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/python/ots/__init__.py @${RM} -r ${WRKSRC}/src/c/ post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ots/ots-sanitize*.so do-test: cd ${WRKSRC}/ && ${PYTHON_CMD} -m pytest -v -.include +.include