1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Update to 0.30

This commit is contained in:
Hye-Shik Chang 2002-07-23 20:39:48 +00:00
parent a502dc120c
commit a13f10a605
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63448
3 changed files with 18 additions and 22 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= gd
PORTVERSION= 0.26
PORTVERSION= 0.30
CATEGORIES= graphics python
MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -15,26 +15,19 @@ MAINTAINER= perky@FreeBSD.org
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
USE_PYTHON= yes
USE_REINPLACE= yes
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
EXAMPLE_DIR=${EXAMPLE_DIR:S,^${PREFIX}/,,g}
EXAMPLE_DIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
.if !defined(WITHOUT_X11)
USE_XPM= yes
.endif
USE_REINPLACE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
PYSETUP= Setup.py
EXAMPLE_DIR= ${PREFIX}/share/examples/py-gd
post-patch:
${REINPLACE_CMD} -e 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd\
-L${LOCALBASE}/lib,g' -e 's,-lttf,,g' \
-e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/Setup
.if defined(WITHOUT_X11)
${REINPLACE_CMD} -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
.endif
pre-build:
cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot
${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}
post-install:
.if !defined(NOPORTDOCS)

View File

@ -1 +1 @@
MD5 (gdmodule-0.26.tar.gz) = fc171fa4cab20a73b8c4d073c2f753f4
MD5 (gdmodule-0.30.tar.gz) = f115abf398674725e21ccc61bc3702da

View File

@ -1,3 +1,6 @@
%%PYTHON_SITELIBDIR%%/gdmodule.so
%%PORTDOCS%%%%EXAMPLE_DIR%%/gddemo.py
%%PORTDOCS%%@dirrm %%EXAMPLE_DIR%%
%%PYTHON_SITELIBDIR%%/_gd.so
%%PYTHON_SITELIBDIR%%/gd.py
%%PYTHON_SITELIBDIR%%/gd.pyc
%%PYTHON_SITELIBDIR%%/gd.pyo
%%PORTDOCS%%share/examples/py-gd/gddemo.py
%%PORTDOCS%%@dirrm share/examples/py-gd