1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/graphics/skencil/Makefile

77 lines
2.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: skencil
# Date created: 04 November 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
1999-08-25 06:16:32 +00:00
# $FreeBSD$
#
PORTNAME= skencil
PORTVERSION= 0.6.17
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sketch
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:08:19 +00:00
COMMENT= An interactive drawing program
2002-04-29 17:40:01 +00:00
BUILD_DEPENDS= ${LOCALBASE}/include/${PYTHON_VERSION}/Imaging.h:${PORTSDIR}/graphics/py-imaging
2000-09-12 11:54:11 +00:00
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${PYTHON_SITELIBDIR}/PIL/_imaging.so:${PORTSDIR}/graphics/py-imaging \
2000-09-12 11:54:11 +00:00
${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab \
${PYXML}
# Core dump with Python 2.5, see ports/115926.
USE_PYTHON= -2.4
2002-04-29 17:40:01 +00:00
USE_PYDISTUTILS= yes
PYDISTUTILS_NOEGGINFO= yes
USE_XORG= x11 xext
CONFFLAGS= --tk-autoconf --tk-flags="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 -L${LOCALBASE}/lib -ltk84 -ltcl84 -L${LOCALBASE}/lib -lX11"
2001-05-18 10:58:10 +00:00
SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO
SKETCHSCRIPTS= finishinst.py sk2ppm.py sk2ps.py skconvert.py skencil.py \
2002-03-05 12:13:03 +00:00
skshow.py
.include <bsd.port.pre.mk>
.if defined(PACKAGE_BUILDING) && ${PYTHON_VERSION} != ${PYTHON_DEFAULT_VERSION}
IGNORE= needs Python ${PYTHON_VER} as default on pointyhat/TB
.endif
do-configure:
2001-05-18 10:58:10 +00:00
@(cd ${WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} setup.py configure ${CONFFLAGS})
post-build:
.for exec in sk2ppm sk2ps skconvert skencil skshow
@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${exec}.in
@${ECHO_CMD} '' >> ${WRKDIR}/${exec}.in
@${ECHO_CMD} 'exec ${PYTHON_CMD} ${DATADIR}/${exec}.py $$@' >> ${WRKDIR}/${exec}.in
.endfor
do-install:
.for exec in sk2ppm sk2ps skconvert skencil skshow
${INSTALL_SCRIPT} ${WRKDIR}/${exec}.in ${PREFIX}/bin/${exec}
.endfor
@${MKDIR} ${DATADIR}
.for dir in Filter Pax Plugins Resources Script Sketch
${TAR} -C ${WRKSRC} -cf - -X ${FILESDIR}/excludelist ${dir} | \
${TAR} -C ${DATADIR} -xf -
.endfor
(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SKETCHSCRIPTS} ${DATADIR})
(cd ${DATADIR}; ${PYTHON_CMD} finishinst.py)
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
1999-05-19 09:41:28 +00:00
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${TAR} -C ${WRKSRC} -cf - ${SKETCHDOCS} | ${TAR} -C ${DOCSDIR} -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
${TAR} -C ${WRKSRC}/Examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
1999-05-19 09:41:28 +00:00
.endif
.include <bsd.port.post.mk>