1998-12-11 12:52:21 +00:00
|
|
|
# New ports collection makefile for: sketch
|
1999-12-02 09:20:28 +00:00
|
|
|
# Version required: 0.6.3
|
1998-12-11 12:52:21 +00:00
|
|
|
# Date created: 04 November 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-12-11 12:52:21 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1998-12-11 12:52:21 +00:00
|
|
|
#
|
|
|
|
|
1999-12-02 09:20:28 +00:00
|
|
|
DISTNAME= sketch-0.6.3
|
1998-12-11 12:52:21 +00:00
|
|
|
CATEGORIES= graphics
|
2000-01-03 23:05:42 +00:00
|
|
|
MASTER_SITES= http://download.sourceforge.net/sketch/
|
1998-12-11 12:52:21 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1998-12-11 12:52:21 +00:00
|
|
|
|
2000-01-06 02:59:13 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/python1.5/Imaging.h:${PORTSDIR}/graphics/py-imaging
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python \
|
|
|
|
${LOCALBASE}/lib/python1.5/site-packages/_imaging.so:${PORTSDIR}/graphics/py-imaging \
|
|
|
|
${LOCALBASE}/lib/python1.5/site-packages/xml/__init__.py:${PORTSDIR}/textproc/py-xml
|
1998-12-11 12:52:21 +00: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 09:41:28 +00:00
|
|
|
@(cd ${WRKSRC} && python setup.py configure)
|
1998-12-11 12:52:21 +00:00
|
|
|
|
|
|
|
do-build:
|
1999-05-19 09:41:28 +00:00
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} python setup.py build)
|
1998-12-11 12:52:21 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-01-06 02:59:13 +00:00
|
|
|
@${MKDIR} ${SKETCHDIR}
|
1998-12-11 12:52:21 +00:00
|
|
|
.for dir in Filter Pax Plugins Resources Script Sketch
|
2000-01-06 02:59:13 +00:00
|
|
|
(cd ${WRKSRC}; ${TAR} cf - --exclude-from=${FILESDIR}/excludelist ${dir}) | \
|
|
|
|
(cd ${SKETCHDIR}; ${TAR} xf -)
|
1998-12-11 12:52:21 +00:00
|
|
|
.endfor
|
|
|
|
(cd ${WRKSRC}; ${INSTALL_SCRIPT} finishinst.py sk2ps.py sketch.py ${SKETCHDIR})
|
1999-05-19 09:41:28 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-01-06 02:59:13 +00:00
|
|
|
@${MKDIR} ${SKETCHDOCDIR}
|
|
|
|
(cd ${WRKSRC}; ${TAR} cf - ${SKETCHDOCS}) | (cd ${SKETCHDOCDIR}; ${TAR} xf -)
|
1999-05-19 09:41:28 +00:00
|
|
|
.endif
|
2000-01-06 02:59:13 +00:00
|
|
|
@${MKDIR} ${SKETCHEXDIR}
|
|
|
|
(cd ${WRKSRC}/Examples; ${TAR} cf - .) | (cd ${SKETCHEXDIR}; ${TAR} xf -)
|
1998-12-11 12:52:21 +00:00
|
|
|
(cd ${SKETCHDIR}; python finishinst.py)
|
|
|
|
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sketch.in > ${PREFIX}/bin/sketch
|
2000-01-06 02:59:13 +00:00
|
|
|
${CHMOD} ${BINMODE} ${PREFIX}/bin/sketch
|
1998-12-11 12:52:21 +00:00
|
|
|
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sk2ps.in > ${PREFIX}/bin/sk2ps
|
2000-01-06 02:59:13 +00:00
|
|
|
${CHMOD} ${BINMODE} ${PREFIX}/bin/sk2ps
|
1998-12-11 12:52:21 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|