bf17672f50
>>> import cairo Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.10/site-packages/cairo/__init__.py", line 1, in <module> from ._cairo import * # noqa: F401,F403 ImportError: /usr/local/lib/python3.10/site-packages/cairo/_cairo.cpython-310.so: Undefined symbol "PyObject_AsReadBuffer" ImportError: /usr/local/lib/python3.10/site-packages/cairo/_cairo.cpython-310.so: Undefined symbol "PyObject_AsWriteBuffer"
32 lines
774 B
Makefile
32 lines
774 B
Makefile
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
PORTNAME= cairo
|
|
PORTVERSION= 1.18.1
|
|
PORTREVISION= 2
|
|
PORTEPOCH= 1
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= https://github.com/pygobject/pycairo/releases/download/v${PORTVERSION}/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= desktop@FreeBSD.org
|
|
COMMENT= Python bindings for Cairo
|
|
|
|
LICENSE= LGPL21 MPL11
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING-LGPL-2.1
|
|
LICENSE_FILE_MPL11= ${WRKSRC}/COPYING-MPL-1.1
|
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
USES= compiler:c11 gnome pkgconfig python:3.6+
|
|
USE_PYTHON= distutils py3kplist
|
|
USE_GNOME= cairo
|
|
|
|
PLIST_SUB= PORTVER=${PORTVERSION}
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cairo/_cairo*.so
|
|
|
|
.include <bsd.port.mk>
|