freebsd-ports/graphics/skencil/Makefile

66 lines
2.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: sketch
# Date created: 04 November 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
1999-08-25 02:16:32 -04:00
# $FreeBSD$
#
PORTNAME= sketch
2001-05-18 06:58:10 -04:00
PORTVERSION= 0.6.10
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
2001-05-18 06:58:10 -04:00
BUILD_DEPENDS= ${LOCALBASE}/include/${PYTHON_VERSION}/Imaging.h:${PORTSDIR}/graphics/py-imaging \
${PYDISTUTILS}
2000-09-12 07:54:11 -04:00
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${PYTHON_SITELIBDIR}/_imaging.so:${PORTSDIR}/graphics/py-imaging \
${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab \
${PYXML}
USE_PYTHON= yes
2001-05-18 06:58:10 -04:00
CONFFLAGS= --tk-autoconf --tk-flags="-I${X11BASE}/include -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3 -L${LOCALBASE}/lib -ltk83 -ltcl83 -L${X11BASE}/lib -lX11"
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
do-configure:
2001-05-18 06:58:10 -04:00
@(cd ${WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} setup.py configure ${CONFFLAGS})
do-build:
2000-09-12 07:54:11 -04:00
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py build)
do-install:
@${MKDIR} ${SKETCHDIR}
.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}) | \
(cd ${SKETCHDIR}; ${TAR} xf -)
.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)
@${MKDIR} ${SKETCHDOCDIR}
(cd ${WRKSRC}; ${TAR} cf - ${SKETCHDOCS}) | (cd ${SKETCHDOCDIR}; ${TAR} xf -)
1999-05-19 05:41:28 -04:00
.endif
@${MKDIR} ${SKETCHEXDIR}
(cd ${WRKSRC}/Examples; ${TAR} cf - .) | (cd ${SKETCHEXDIR}; ${TAR} xf -)
2000-09-12 07:54:11 -04:00
(cd ${SKETCHDIR}; ${PYTHON_CMD} finishinst.py)
${SED} -e "s|@PREFIX@|${PREFIX}|g" -e "s|@PYTHON_CMD@|${PYTHON_CMD}|g" \
< ${FILESDIR}/sk2ps.in > ${PREFIX}/bin/sk2ps
${CHMOD} ${BINMODE} ${PREFIX}/bin/sk2ps
2000-09-12 07:54:11 -04:00
${SED} -e "s|@PREFIX@|${PREFIX}|g" -e "s|@PYTHON_CMD@|${PYTHON_CMD}|g" \
< ${FILESDIR}/sketch.in > ${PREFIX}/bin/sketch
2000-05-11 05:31:44 -04:00
${CHMOD} ${BINMODE} ${PREFIX}/bin/sketch
2000-09-12 07:54:11 -04:00
${SED} -e "s|@PREFIX@|${PREFIX}|g" -e "s|@PYTHON_CMD@|${PYTHON_CMD}|g" \
< ${FILESDIR}/skshow.in > ${PREFIX}/bin/skshow
2000-05-11 05:31:44 -04:00
${CHMOD} ${BINMODE} ${PREFIX}/bin/skshow
.include <bsd.port.mk>