1998-12-11 07:52:21 -05:00
|
|
|
# New ports collection makefile for: sketch
|
|
|
|
# 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
|
|
|
#
|
|
|
|
|
2000-04-14 06:48:02 -04:00
|
|
|
PORTNAME= sketch
|
2000-08-18 07:55:51 -04:00
|
|
|
PORTVERSION= 0.6.8
|
1998-12-11 07:52:21 -05:00
|
|
|
CATEGORIES= graphics
|
2000-06-14 09:21:38 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1998-12-11 07:52:21 -05:00
|
|
|
|
1999-08-31 02:53:31 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1998-12-11 07:52:21 -05:00
|
|
|
|
2000-04-28 05:36:01 -04:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/python1.5/Imaging.h:${PORTSDIR}/graphics/py-imaging
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
|
|
${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 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
|
2000-05-11 05:31:44 -04:00
|
|
|
SKETCHSCRIPTS= finishinst.py sk2ps.py sketch.py skshow.py
|
1998-12-11 07:52:21 -05:00
|
|
|
|
2000-04-28 05:36:01 -04:00
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e "s;%%PORTSDIR%%;${PORTSDIR};" ${WRKSRC}/setup.py
|
|
|
|
|
1998-12-11 07:52:21 -05:00
|
|
|
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:
|
2000-01-05 21:59:13 -05:00
|
|
|
@${MKDIR} ${SKETCHDIR}
|
1998-12-11 07:52:21 -05:00
|
|
|
.for dir in Filter Pax Plugins Resources Script Sketch
|
2000-01-12 07:28:58 -05:00
|
|
|
(cd ${WRKSRC}; ${TAR} -cf - -X ${FILESDIR}/excludelist ${dir}) | \
|
2000-01-05 21:59:13 -05:00
|
|
|
(cd ${SKETCHDIR}; ${TAR} xf -)
|
1998-12-11 07:52:21 -05:00
|
|
|
.endfor
|
2000-05-11 05:31:44 -04:00
|
|
|
(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SKETCHSCRIPTS} ${SKETCHDIR})
|
1999-05-19 05:41:28 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-01-05 21:59:13 -05:00
|
|
|
@${MKDIR} ${SKETCHDOCDIR}
|
|
|
|
(cd ${WRKSRC}; ${TAR} cf - ${SKETCHDOCS}) | (cd ${SKETCHDOCDIR}; ${TAR} xf -)
|
1999-05-19 05:41:28 -04:00
|
|
|
.endif
|
2000-01-05 21:59:13 -05:00
|
|
|
@${MKDIR} ${SKETCHEXDIR}
|
|
|
|
(cd ${WRKSRC}/Examples; ${TAR} cf - .) | (cd ${SKETCHEXDIR}; ${TAR} xf -)
|
1998-12-11 07:52:21 -05:00
|
|
|
(cd ${SKETCHDIR}; python finishinst.py)
|
|
|
|
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sk2ps.in > ${PREFIX}/bin/sk2ps
|
2000-01-05 21:59:13 -05:00
|
|
|
${CHMOD} ${BINMODE} ${PREFIX}/bin/sk2ps
|
2000-05-11 05:31:44 -04:00
|
|
|
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sketch.in > ${PREFIX}/bin/sketch
|
|
|
|
${CHMOD} ${BINMODE} ${PREFIX}/bin/sketch
|
|
|
|
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/skshow.in > ${PREFIX}/bin/skshow
|
|
|
|
${CHMOD} ${BINMODE} ${PREFIX}/bin/skshow
|
1998-12-11 07:52:21 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|