summaryrefslogtreecommitdiff
path: root/graphics/py-gd
diff options
context:
space:
mode:
authordrochner <drochner>2002-01-19 17:49:14 +0000
committerdrochner <drochner>2002-01-19 17:49:14 +0000
commit40edc79d06eccd15a44d44e6cb0f5e8d0fcd9c51 (patch)
tree4604d9726d100fbd1641913d97792567c3e800b8 /graphics/py-gd
parent1e1868d2de2e03af6978da7480642e702b0e4b18 (diff)
downloadpkgsrc-40edc79d06eccd15a44d44e6cb0f5e8d0fcd9c51.tar.gz
use python buildlink file
Diffstat (limited to 'graphics/py-gd')
-rw-r--r--graphics/py-gd/Makefile15
-rw-r--r--graphics/py-gd/PLIST4
2 files changed, 13 insertions, 6 deletions
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile
index b2c2b4e06d3..d2c8396d004 100644
--- a/graphics/py-gd/Makefile
+++ b/graphics/py-gd/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2001/09/09 20:36:30 agc Exp $
+# $NetBSD: Makefile,v 1.8 2002/01/19 17:49:14 drochner Exp $
DISTNAME= gdmodule.c
-PKGNAME= py-gd-1.3
+PKGNAME= ${PYPKGPREFIX}-gd-1.3
CATEGORIES= graphics
MASTER_SITES= http://starship.python.net/~richard/gdmodule/
DISTFILES= gdmodule.c
@@ -10,7 +10,6 @@ MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://starship.python.net/~richard/gdmodule/
COMMENT= Python interface to gd graphics library
-DEPENDS+= python>=2.0:../../lang/python
DEPENDS+= gd>=1.8.3:../../graphics/gd
WRKSRC= ${WRKDIR}
@@ -18,13 +17,21 @@ EXTRACT_CMD= ${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}
ALL_TARGET= default
+# this pkg uses Makefile.pre.in
+PYTHON_VERSIONS_ACCEPTED= 20 21
+BUILDLINK_DEPENDS.python20= python20>=2.0.1nb1
+BUILDLINK_DEPENDS.python21= python21>=2.1.1nb1
+
+PY_PATCHPLIST= yes
+
post-extract:
${SED} -e 's,@LOCALBASE@,${LOCALBASE},g' \
-e 's,@X11BASE@,${X11BASE},g' \
${FILESDIR}/Setup.in > ${WRKSRC}/Setup.in
do-configure:
- ${CP} ${PREFIX}/lib/python2.0/config/Makefile.pre.in ${WRKSRC}
+ ${CP} ${PREFIX}/${PYLIB}/config/Makefile.pre.in ${WRKSRC}
cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot
+.include "../../lang/python/extension.buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/py-gd/PLIST b/graphics/py-gd/PLIST
index c7cb867f8aa..276eed6a100 100644
--- a/graphics/py-gd/PLIST
+++ b/graphics/py-gd/PLIST
@@ -1,2 +1,2 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 23:53:33 zuntum Exp $
-lib/python2.0/site-packages/gdmodule.so
+@comment $NetBSD: PLIST,v 1.2 2002/01/19 17:49:14 drochner Exp $
+${PYSITELIB}/gdmodule.so