opnsense-ports/graphics/py-gd/Makefile
Franco Fichtner 0d9b23e597 */*: sync with upstream
Taken from: HardenedBSD
2017-11-30 18:31:08 +01:00

35 lines
775 B
Makefile

# Created by: Hye-Shik Chang <perky@fallin.lv>
# $FreeBSD$
PORTNAME= gd
PORTVERSION= 0.59
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:graphics/gd
USES= python:2.7
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 <bsd.port.mk>