blob: e695b4713cbcb6e4f4c45c89b577c329da299d40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.14 2001/07/19 00:06:52 wiz Exp $
#
DISTNAME= sketch-0.6.10
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sketch/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://sketch.sourceforge.net/
COMMENT= Interactive drawing program
DEPENDS+= py-imaging>=1.0:../../graphics/py-imaging
DEPENDS+= py-Tk>=1.5.2:../../x11/py-Tk
USE_X11= YES
SKETCHDIR= ${PREFIX}/share/sketch
SKETCHDOCDIR= ${PREFIX}/share/doc/sketch
SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO
SKETCHEXDIR= ${PREFIX}/share/examples/sketch
echo:
${ECHO} ${LIBS}
do-configure:
@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
python setup.py configure --imaging-include=${PREFIX}/include/PIL)
do-build:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} python setup.py build)
do-install:
${INSTALL_DATA_DIR} ${SKETCHDIR}
.for dir in Filter Pax Plugins Resources Script Sketch
(cd ${WRKSRC}; ${GTAR} -c -f - --exclude-from=${FILESDIR}/excludelist ${dir}) | \
(cd ${SKETCHDIR}/; ${GTAR} xf -)
.endfor
(cd ${WRKSRC}; ${INSTALL_SCRIPT} finishinst.py sk2ps.py sketch.py ${SKETCHDIR})
${INSTALL_DATA_DIR} ${SKETCHDOCDIR}
(cd ${WRKSRC}; ${GTAR} cf - ${SKETCHDOCS}) | (cd ${SKETCHDOCDIR}; ${GTAR} xf -)
${INSTALL_DATA_DIR} ${SKETCHEXDIR}
(cd ${WRKSRC}/Examples; ${GTAR} cf - .) | (cd ${SKETCHEXDIR}; ${GTAR} 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 "../../mk/bsd.pkg.mk"
|