2001-12-22 13:11:19 +00:00
|
|
|
# New ports collection makefile for: py-gd
|
|
|
|
# Date created: 23 December 2001
|
|
|
|
# Whom: Hye-Shik Chang <perky@fallin.lv>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gd
|
2002-10-12 09:57:34 +00:00
|
|
|
PORTVERSION= 0.40
|
2001-12-22 13:11:19 +00:00
|
|
|
CATEGORIES= graphics python
|
|
|
|
MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= gdmodule-${PORTVERSION}
|
|
|
|
|
2002-06-25 07:50:58 +00:00
|
|
|
MAINTAINER= perky@FreeBSD.org
|
2003-02-25 06:25:35 +00:00
|
|
|
COMMENT= Python interface to the GD library
|
2001-12-22 13:11:19 +00:00
|
|
|
|
2002-03-14 07:30:37 +00:00
|
|
|
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
|
2001-12-22 13:11:19 +00:00
|
|
|
|
|
|
|
USE_XPM= yes
|
2002-07-23 20:39:48 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
USE_PYTHON_PREFIX= yes
|
|
|
|
PYSETUP= Setup.py
|
|
|
|
EXAMPLE_DIR= ${PREFIX}/share/examples/py-gd
|
2001-12-22 13:11:19 +00:00
|
|
|
|
|
|
|
post-patch:
|
2002-07-23 20:39:48 +00:00
|
|
|
${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
|
|
|
|
-e 's,/usr/X11R6,${X11BASE},g' \
|
|
|
|
-e 's,/usr/include/X11,${LOCALBASE}/include/gd,g' \
|
|
|
|
${WRKSRC}/${PYSETUP}
|
2001-12-22 13:11:19 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLE_DIR}
|
|
|
|
.endif
|
|
|
|
|
2002-05-23 22:22:19 +00:00
|
|
|
.include <bsd.port.mk>
|