summaryrefslogtreecommitdiff
path: root/graphics/py-imagingtk
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2002-01-22 18:12:12 +0000
committerdrochner <drochner@pkgsrc.org>2002-01-22 18:12:12 +0000
commitd558efba2f40abf81f6daf8de3395994bc0e4339 (patch)
tree5040a8a589ea7ea55baaa05341e858ed4dd8e797 /graphics/py-imagingtk
parent35446fee7ca813e6c3c8413531c677823119c628 (diff)
downloadpkgsrc-d558efba2f40abf81f6daf8de3395994bc0e4339.tar.gz
use buildlink files for Python and py-imaging, but keep it tied
to Python-2.0 for now because of the py-Tk mess
Diffstat (limited to 'graphics/py-imagingtk')
-rw-r--r--graphics/py-imagingtk/Makefile13
-rw-r--r--graphics/py-imagingtk/PLIST12
2 files changed, 15 insertions, 10 deletions
diff --git a/graphics/py-imagingtk/Makefile b/graphics/py-imagingtk/Makefile
index 85cb7454dac..2bec32e7b72 100644
--- a/graphics/py-imagingtk/Makefile
+++ b/graphics/py-imagingtk/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/03/20 16:47:09 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2002/01/22 18:12:12 drochner Exp $
#
DISTNAME= Imaging-1.1.1
-PKGNAME= py-imagingtk-1.1.1
+PKGNAME= py20-imagingtk-1.1.1
CATEGORIES= graphics
MASTER_SITES= http://www.pythonware.com/downloads/
@@ -10,9 +10,11 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.pythonware.com/products/pil/
COMMENT= Tk support for the Python Imaging Library (PIL)
-DEPENDS+= py-imaging>=1.1.1:../../graphics/py-imaging
DEPENDS+= py-Tk>=2.0:../../x11/py-Tk
+PYTHON_VERSIONS_ACCEPTED= 20 # XXX for now until some things are cleaned up
+BUILDLINK_DEPENDS.python20= python20>=2.0.1nb1
+
DIST_SUBDIR= python
ALL_TARGET= sharedmods
@@ -20,6 +22,7 @@ do-configure:
(cd ${WRKSRC}/libImaging; CC="cc -fPIC" LIBS="${LDFLAGS}" ./configure)
${SED} -e 's,@PREFIX@,${PREFIX},g' -e 's,@X11BASE@,${X11BASE},g' \
${FILESDIR}/Setup.in >${WRKSRC}/Setup.in
+ ${CP} ${LOCALBASE}/${PYLIB}/config/Makefile.pre.in ${WRKSRC}
(cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot)
do-install:
@@ -27,6 +30,8 @@ do-install:
${PREFIX}/lib/python2.0/site-packages/PIL
(cd ${WRKSRC}/Scripts; \
${INSTALL_DATA} enhancer.py painter.py player.py \
- thresholder.py viewer.py ${PREFIX}/share/examples/py-imaging )
+ thresholder.py viewer.py ${PREFIX}/share/examples/py20-imaging )
+.include "../../lang/python/extension.buildlink.mk"
+.include "../../graphics/py-imaging/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/py-imagingtk/PLIST b/graphics/py-imagingtk/PLIST
index d53e44297c7..1af54272706 100644
--- a/graphics/py-imagingtk/PLIST
+++ b/graphics/py-imagingtk/PLIST
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 23:53:40 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/01/22 18:12:12 drochner Exp $
lib/python2.0/site-packages/PIL/_imagingtk.so
-share/examples/py-imaging/enhancer.py
-share/examples/py-imaging/painter.py
-share/examples/py-imaging/player.py
-share/examples/py-imaging/thresholder.py
-share/examples/py-imaging/viewer.py
+share/examples/py20-imaging/enhancer.py
+share/examples/py20-imaging/painter.py
+share/examples/py20-imaging/player.py
+share/examples/py20-imaging/thresholder.py
+share/examples/py20-imaging/viewer.py
@comment share/examples/py-imaging and lib/python2.0/site-packages/PIL
@comment belong to py-imaging, do not remove them here.