diff options
author | drochner <drochner@pkgsrc.org> | 2002-01-19 17:49:14 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-01-19 17:49:14 +0000 |
commit | 36b6349ad8ad8b83193bc2de88077d8247161cec (patch) | |
tree | 4604d9726d100fbd1641913d97792567c3e800b8 /graphics/py-gd/Makefile | |
parent | 364ffbfd68c4c4f754046765ad2df372c7f9fa19 (diff) | |
download | pkgsrc-36b6349ad8ad8b83193bc2de88077d8247161cec.tar.gz |
use python buildlink file
Diffstat (limited to 'graphics/py-gd/Makefile')
-rw-r--r-- | graphics/py-gd/Makefile | 15 |
1 files changed, 11 insertions, 4 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" |