1998-12-11 07:52:21 -05:00
|
|
|
# New ports collection makefile for: sketch
|
1999-12-02 04:20:28 -05:00
|
|
|
# Version required: 0.6.3
|
1998-12-11 07:52:21 -05:00
|
|
|
# Date created: 04 November 1998
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-12-11 07:52:21 -05:00
|
|
|
#
|
1999-08-25 02:16:32 -04:00
|
|
|
# $FreeBSD$
|
1998-12-11 07:52:21 -05:00
|
|
|
#
|
|
|
|
|
1999-12-02 04:20:28 -05:00
|
|
|
DISTNAME= sketch-0.6.3
|
1998-12-11 07:52:21 -05:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://www.online.de/home/sketch/
|
|
|
|
|
1999-08-31 02:53:31 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1998-12-11 07:52:21 -05:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PREFIX}/include/python1.5/Imaging.h:${PORTSDIR}/graphics/py-imaging
|
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python \
|
1999-10-20 07:31:42 -04:00
|
|
|
${PREFIX}/lib/python1.5/site-packages/_imaging.so:${PORTSDIR}/graphics/py-imaging \
|
|
|
|
${PREFIX}/lib/python1.5/site-packages/xml/__init__.py:${PORTSDIR}/textproc/py-xml
|
1998-12-11 07:52:21 -05:00
|
|
|
|
|
|
|
SKETCHDIR= ${PREFIX}/share/sketch
|
|
|
|
SKETCHDOCDIR= ${PREFIX}/share/doc/sketch
|
|
|
|
SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO
|
|
|
|
SKETCHEXDIR= ${PREFIX}/share/examples/sketch
|
|
|
|
|
|
|
|
do-configure:
|
1999-05-19 05:41:28 -04:00
|
|
|
@(cd ${WRKSRC} && python setup.py configure)
|
1998-12-11 07:52:21 -05:00
|
|
|
|
|
|
|
do-build:
|
1999-05-19 05:41:28 -04:00
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} python setup.py build)
|
1998-12-11 07:52:21 -05:00
|
|
|
|
|
|
|
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})
|
1999-05-19 05:41:28 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
1998-12-11 07:52:21 -05:00
|
|
|
${MKDIR} ${SKETCHDOCDIR}
|
|
|
|
(cd ${WRKSRC}; tar cf - ${SKETCHDOCS}) | (cd ${SKETCHDOCDIR}; tar xf -)
|
1999-05-19 05:41:28 -04:00
|
|
|
.endif
|
1998-12-11 07:52:21 -05:00
|
|
|
${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
|
1999-08-22 15:01:07 -04:00
|
|
|
${CHMOD} +x ${PREFIX}/bin/sketch
|
1998-12-11 07:52:21 -05:00
|
|
|
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sk2ps.in > ${PREFIX}/bin/sk2ps
|
1999-08-22 15:01:07 -04:00
|
|
|
${CHMOD} +x ${PREFIX}/bin/sk2ps
|
1998-12-11 07:52:21 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|