freebsd-ports/graphics/py-gd/Makefile
Dirk Meyer 3561a46f28 - update libgd to 2.2.2
- new MASTER_SITES
- add security patch
PR:		210913
Submitted by:	Piotr Kubaj
MFH:		2016Q3
Security: CVE-2015-8874
Security: CVE-2016-3074
Security: http://www.openwall.com/lists/oss-security/2016/07/12/4
2016-07-20 09:33:31 +00:00

36 lines
771 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
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>