# Created by: Hye-Shik Chang # $FreeBSD: head/graphics/py-gd/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= gd PORTVERSION= 0.59 CATEGORIES= graphics python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= gdmodule-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Python interface to the GD library LIB_DEPENDS= libgd.so:graphics/gd USES= python USE_PYTHON= distutils autoplist pythonprefix PYSETUP= setup.py post-patch: @${REINPLACE_CMD} -e \ '/\/usr\/lib/d ; \ /\/usr\/include/d ; \ /\/usr\/X11R6/d ; \ s|/opt/gnome|${LOCALBASE}| ; \ /"jpeg", "png", "gif", "z",/d ; \ /"X11", "Xpm",/d ; \ /"ttf", "freetype",/d' \ ${WRKSRC}/${PYSETUP} post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_gd.so .include