svn commit: r569586 - head/x11-fonts/py-opentype-sanitizer
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Tue Mar 30 19:16:55 UTC 2021
Author: sunpoet
Date: Tue Mar 30 19:16:51 2021
New Revision: 569586
URL: https://svnweb.freebsd.org/changeset/ports/569586
Log:
Fix build with Python 3.8+
PR: 254503
Submitted by: kai
Modified:
head/x11-fonts/py-opentype-sanitizer/Makefile
Modified: head/x11-fonts/py-opentype-sanitizer/Makefile
==============================================================================
--- head/x11-fonts/py-opentype-sanitizer/Makefile Tue Mar 30 19:16:46 2021 (r569585)
+++ head/x11-fonts/py-opentype-sanitizer/Makefile Tue Mar 30 19:16:51 2021 (r569586)
@@ -21,6 +21,12 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/p
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
+.include <bsd.port.pre.mk>
+
+.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/
@@ -31,4 +37,4 @@ post-install:
do-test:
cd ${WRKSRC}/ && ${PYTHON_CMD} -m pytest -v
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list