1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/graphics/skencil/Makefile

51 lines
1.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: sketch
2000-02-11 13:39:53 +00:00
# Version required: 0.6.5
# Date created: 04 November 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
1999-08-25 06:16:32 +00:00
# $FreeBSD$
#
2000-02-11 13:39:53 +00:00
DISTNAME= sketch-0.6.5
CATEGORIES= graphics
MASTER_SITES= http://download.sourceforge.net/sketch/
MAINTAINER= ports@FreeBSD.org
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
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)
do-build:
1999-05-19 09:41:28 +00:00
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} python setup.py build)
do-install:
@${MKDIR} ${SKETCHDIR}
.for dir in Filter Pax Plugins Resources Script Sketch
2000-01-12 12:28:58 +00:00
(cd ${WRKSRC}; ${TAR} -cf - -X ${FILESDIR}/excludelist ${dir}) | \
(cd ${SKETCHDIR}; ${TAR} xf -)
.endfor
(cd ${WRKSRC}; ${INSTALL_SCRIPT} finishinst.py sk2ps.py sketch.py ${SKETCHDIR})
1999-05-19 09:41:28 +00:00
.if !defined(NOPORTDOCS)
@${MKDIR} ${SKETCHDOCDIR}
(cd ${WRKSRC}; ${TAR} cf - ${SKETCHDOCS}) | (cd ${SKETCHDOCDIR}; ${TAR} xf -)
1999-05-19 09:41:28 +00:00
.endif
@${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} ${BINMODE} ${PREFIX}/bin/sketch
${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sk2ps.in > ${PREFIX}/bin/sk2ps
${CHMOD} ${BINMODE} ${PREFIX}/bin/sk2ps
.include <bsd.port.mk>