forked from Lainports/opnsense-ports
35 lines
775 B
Makefile
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>
|