2004-01-28 19:45:14 +00:00
|
|
|
# New ports collection makefile for: skencil
|
1998-12-11 12:52:21 +00:00
|
|
|
# Date created: 04 November 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-12-11 12:52:21 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1998-12-11 12:52:21 +00:00
|
|
|
#
|
|
|
|
|
2004-01-28 19:45:14 +00:00
|
|
|
PORTNAME= skencil
|
2005-06-22 17:02:04 +00:00
|
|
|
PORTVERSION= 0.6.17
|
2007-10-25 22:20:44 +00:00
|
|
|
PORTREVISION= 2
|
1998-12-11 12:52:21 +00:00
|
|
|
CATEGORIES= graphics
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2004-01-28 19:45:14 +00:00
|
|
|
MASTER_SITE_SUBDIR= sketch
|
1998-12-11 12:52:21 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= An interactive drawing program
|
1998-12-11 12:52:21 +00:00
|
|
|
|
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 \
|
2003-08-18 08:15:05 +00:00
|
|
|
${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}
|
|
|
|
|
2007-10-25 22:20:44 +00:00
|
|
|
# Core dump with Python 2.5, see ports/115926.
|
|
|
|
USE_PYTHON= -2.4
|
2002-04-29 17:40:01 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 09:42:28 +00:00
|
|
|
PYDISTUTILS_NOEGGINFO= yes
|
1998-12-11 12:52:21 +00:00
|
|
|
|
2007-07-30 15:32:46 +00:00
|
|
|
USE_XORG= x11 xext
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
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
|
|
|
|
1998-12-11 12:52:21 +00:00
|
|
|
SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO
|
2004-01-28 19:45:14 +00:00
|
|
|
SKETCHSCRIPTS= finishinst.py sk2ppm.py sk2ps.py skconvert.py skencil.py \
|
2002-03-05 12:13:03 +00:00
|
|
|
skshow.py
|
1998-12-11 12:52:21 +00:00
|
|
|
|
2007-10-25 22:20:44 +00:00
|
|
|
.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
|
|
|
|
|
1998-12-11 12:52:21 +00:00
|
|
|
do-configure:
|
2001-05-18 10:58:10 +00:00
|
|
|
@(cd ${WRKSRC} && \
|
|
|
|
${SETENV} ${CONFIGURE_ENV} \
|
|
|
|
${PYTHON_CMD} setup.py configure ${CONFFLAGS})
|
1998-12-11 12:52:21 +00:00
|
|
|
|
2005-06-22 17:02:04 +00:00
|
|
|
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
|
|
|
|
|
1998-12-11 12:52:21 +00:00
|
|
|
do-install:
|
2005-06-22 17:02:04 +00:00
|
|
|
.for exec in sk2ppm sk2ps skconvert skencil skshow
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${exec}.in ${PREFIX}/bin/${exec}
|
|
|
|
.endfor
|
2004-01-28 19:45:14 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
1998-12-11 12:52:21 +00:00
|
|
|
.for dir in Filter Pax Plugins Resources Script Sketch
|
2005-06-22 17:02:04 +00:00
|
|
|
${TAR} -C ${WRKSRC} -cf - -X ${FILESDIR}/excludelist ${dir} | \
|
|
|
|
${TAR} -C ${DATADIR} -xf -
|
1998-12-11 12:52:21 +00:00
|
|
|
.endfor
|
2004-01-28 19:45:14 +00:00
|
|
|
(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SKETCHSCRIPTS} ${DATADIR})
|
2005-06-22 17:02:04 +00:00
|
|
|
(cd ${DATADIR}; ${PYTHON_CMD} finishinst.py)
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
1999-05-19 09:41:28 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-01-28 19:45:14 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-06-22 17:02:04 +00:00
|
|
|
${TAR} -C ${WRKSRC} -cf - ${SKETCHDOCS} | ${TAR} -C ${DOCSDIR} -xf -
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
2004-01-28 19:45:14 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2005-06-22 17:02:04 +00:00
|
|
|
${TAR} -C ${WRKSRC}/Examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
1999-05-19 09:41:28 +00:00
|
|
|
.endif
|
1998-12-11 12:52:21 +00:00
|
|
|
|
2007-10-25 22:20:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|