summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authordrochner <drochner>2002-01-22 18:16:17 +0000
committerdrochner <drochner>2002-01-22 18:16:17 +0000
commitb7b4478841ea0fe21246781f166e5f767a89145d (patch)
tree10569fc3b91224b460df1226cccb7bb114228af6 /graphics
parent2378de2dc21a6dd33fb88e29ebfdcc2da4eca6dd (diff)
downloadpkgsrc-b7b4478841ea0fe21246781f166e5f767a89145d.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')
-rw-r--r--graphics/sketch/Makefile14
-rw-r--r--graphics/sketch/files/sk2ps.in2
-rw-r--r--graphics/sketch/files/sketch.in2
3 files changed, 11 insertions, 7 deletions
diff --git a/graphics/sketch/Makefile b/graphics/sketch/Makefile
index 1542bdf4baf..13c877bb4e1 100644
--- a/graphics/sketch/Makefile
+++ b/graphics/sketch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2001/11/25 21:56:59 hubertf Exp $
+# $NetBSD: Makefile,v 1.19 2002/01/22 18:16:17 drochner Exp $
#
DISTNAME= sketch-0.6.12
@@ -9,11 +9,12 @@ MAINTAINER= uebayasi@soum.co.jp
HOMEPAGE= http://sketch.sourceforge.net/
COMMENT= Interactive drawing program
-DEPENDS+= py-imaging>=1.0:../../graphics/py-imaging
DEPENDS+= py-Tk>=1.5.2:../../x11/py-Tk
USE_X11= YES
+PYTHON_VERSIONS_ACCEPTED= 20 # XXX until some things are cleaned up
+
SKETCHDIR= ${PREFIX}/share/sketch
SKETCHDOCDIR= ${PREFIX}/share/doc/sketch
SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO
@@ -24,10 +25,11 @@ echo:
do-configure:
@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
- python setup.py configure --imaging-include=${PREFIX}/include/PIL)
+ ${PYTHONBIN} setup.py configure \
+ --imaging-include=${PREFIX}/include/python2.0/PIL)
do-build:
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} python setup.py build)
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} setup.py build)
do-install:
${INSTALL_DATA_DIR} ${SKETCHDIR}
@@ -40,10 +42,12 @@ do-install:
cd ${WRKSRC} && ${PAX} -rw -pe -v ${SKETCHDOCS} ${SKETCHDOCDIR}
${INSTALL_DATA_DIR} ${SKETCHEXDIR}
cd ${WRKSRC}/Examples && ${PAX} -rw -pe -v . ${SKETCHEXDIR}
- (cd ${SKETCHDIR}; python finishinst.py)
+ (cd ${SKETCHDIR}; ${PYTHONBIN} finishinst.py)
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sketch.in > ${PREFIX}/bin/sketch
${CHMOD} +x ${PREFIX}/bin/sketch
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sk2ps.in > ${PREFIX}/bin/sk2ps
${CHMOD} +x ${PREFIX}/bin/sk2ps
+.include "../../lang/python/application.buildlink.mk"
+.include "../../graphics/py-imaging/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/sketch/files/sk2ps.in b/graphics/sketch/files/sk2ps.in
index a2c4142c4a0..66bda41511f 100644
--- a/graphics/sketch/files/sk2ps.in
+++ b/graphics/sketch/files/sk2ps.in
@@ -1,4 +1,4 @@
#!/bin/sh
cd @PREFIX@/share/sketch
-exec @PREFIX@/bin/python sk2ps.py $@
+exec @PREFIX@/bin/python2.0 sk2ps.py $@
diff --git a/graphics/sketch/files/sketch.in b/graphics/sketch/files/sketch.in
index f0a9637d703..2011793ca43 100644
--- a/graphics/sketch/files/sketch.in
+++ b/graphics/sketch/files/sketch.in
@@ -1,4 +1,4 @@
#!/bin/sh
cd @PREFIX@/share/sketch
-exec @PREFIX@/bin/python sketch.py $@
+exec @PREFIX@/bin/python2.0 sketch.py $@