aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/skencil/Makefile
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1998-12-11 20:52:21 +0800
committertg <tg@FreeBSD.org>1998-12-11 20:52:21 +0800
commit0b3b71cbc8735a34a58ae10bbc38301774c63839 (patch)
tree10b6d0be60ece4d47fafd90418f3b78f1730c692 /graphics/skencil/Makefile
parente580723066fb56c6f1e995f13f2e991ec2bd4728 (diff)
downloadfreebsd-ports-gnome-0b3b71cbc8735a34a58ae10bbc38301774c63839.tar.gz
freebsd-ports-gnome-0b3b71cbc8735a34a58ae10bbc38301774c63839.tar.zst
freebsd-ports-gnome-0b3b71cbc8735a34a58ae10bbc38301774c63839.zip
New port sketch, an interactive drawing program, written in
Python with a few C modules. This is still experimental code.
Diffstat (limited to 'graphics/skencil/Makefile')
-rw-r--r--graphics/skencil/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/graphics/skencil/Makefile b/graphics/skencil/Makefile
new file mode 100644
index 000000000000..81b6a90682e6
--- /dev/null
+++ b/graphics/skencil/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: sketch
+# Version required: 0.5.2
+# Date created: 04 November 1998
+# Whom: Thomas Gellekum <tg@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= sketch-0.5.2
+CATEGORIES= graphics
+MASTER_SITES= http://www.online.de/home/sketch/
+
+MAINTAINER= ports@FreeBSD.ORG
+
+BUILD_DEPENDS= ${PREFIX}/include/python1.5/Imaging.h:${PORTSDIR}/graphics/py-imaging
+RUN_DEPENDS= python:${PORTSDIR}/lang/python \
+ ${PREFIX}/lib/python1.5/site-packages/_imaging.so:${PORTSDIR}/graphics/py-imaging
+
+MAKE_FLAGS= OPT="${CFLAGS}" -f
+ALL_TARGET=
+
+SKETCHDIR= ${PREFIX}/share/sketch
+SKETCHDOCDIR= ${PREFIX}/share/doc/sketch
+SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO
+SKETCHEXDIR= ${PREFIX}/share/examples/sketch
+
+post-extract:
+ ${CP} ${FILESDIR}/Setup.Pax ${WRKSRC}/Pax/Setup
+ ${CP} ${FILESDIR}/Setup.Modules ${WRKSRC}/Sketch/Modules/Setup
+
+do-configure:
+ (cd ${WRKSRC}/Pax; ${MAKE} -f Makefile.pre.in boot)
+ (cd ${WRKSRC}/Filter; ${MAKE} -f Makefile.pre.in boot)
+ (cd ${WRKSRC}/Sketch/Modules; ${MAKE} -f Makefile.pre.in boot)
+
+do-build:
+ @(cd ${WRKSRC}/Pax; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+ @(cd ${WRKSRC}/Filter; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+ @(cd ${WRKSRC}/Sketch/Modules; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+
+do-install:
+ ${MKDIR} ${SKETCHDIR}
+.for dir in Filter Pax Plugins Resources Script Sketch
+ (cd ${WRKSRC}; tar -c -f - --exclude-from=${FILESDIR}/excludelist ${dir}) | \
+ (cd ${SKETCHDIR}/; tar xf -)
+.endfor
+ (cd ${WRKSRC}; ${INSTALL_SCRIPT} finishinst.py sk2ps.py sketch.py ${SKETCHDIR})
+ ${MKDIR} ${SKETCHDOCDIR}
+ (cd ${WRKSRC}; tar cf - ${SKETCHDOCS}) | (cd ${SKETCHDOCDIR}; tar xf -)
+ ${MKDIR} ${SKETCHEXDIR}
+ (cd ${WRKSRC}/Examples; tar cf - .) | (cd ${SKETCHEXDIR}; tar xf -)
+ (cd ${SKETCHDIR}; python 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 <bsd.port.mk>