freebsd-ports/graphics/py-gd/Makefile
Marcus von Appen 734b61f327 - Convert ports of graphics/ to new USES=python
Approved by:	portmgr (implicit)
2014-10-21 16:36:12 +00:00

32 lines
709 B
Makefile

# Created by: Hye-Shik Chang <perky@fallin.lv>
# $FreeBSD$
PORTNAME= gd
PORTVERSION= 0.58
PORTREVISION= 1
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:${PORTSDIR}/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}
.include <bsd.port.mk>