# Created by: Michael Johnson # $FreeBSD: head/graphics/py-cairo/Makefile 507372 2019-07-26 20:46:53Z gerald $ PORTNAME= cairo PORTVERSION= 1.18.1 PORTREVISION= 1 CATEGORIES= graphics python MASTER_SITES= https://github.com/pygobject/pycairo/releases/download/v${PORTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= py${PORTNAME}-${PORTVERSION} MAINTAINER= gnome@FreeBSD.org COMMENT= Python 2 bindings for Cairo LICENSE= LGPL21 LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING-LGPL-2.1 PORTSCOUT= limitw:1,even USES= compiler:gcc-c++11-lib gnome pkgconfig python USE_PYTHON= distutils py3kplist USE_GNOME= cairo PLIST_SUB= PORTVER=${PORTVERSION} pre-package: @if [ -e ${STAGEDIR}/${PREFIX}/lib/pkgconfig/py*cairo.pc ] ; \ then \ ${MV} ${STAGEDIR}/${PREFIX}/lib/pkgconfig/*.pc ${STAGEDIR}/${PREFIX}/libdata/pkgconfig/ ; \ fi post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cairo/_cairo${PYTHON_EXT_SUFFIX}.so .include