1998-06-05 06:50:33 +00:00
|
|
|
# New ports collection makefile for: pmw
|
|
|
|
# Date created: 03 June 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-06-05 06:50:33 +00:00
|
|
|
#
|
1999-08-31 03:04:38 +00:00
|
|
|
# $FreeBSD$
|
2000-04-10 01:11:24 +00:00
|
|
|
#
|
1998-06-05 06:50:33 +00:00
|
|
|
|
2000-04-10 01:11:24 +00:00
|
|
|
PORTNAME= py-pmw
|
2000-04-21 07:01:09 +00:00
|
|
|
PORTVERSION= 0.8.3
|
1998-12-15 08:13:06 +00:00
|
|
|
CATEGORIES= x11-toolkits python
|
1998-06-05 06:50:33 +00:00
|
|
|
MASTER_SITES= ftp://ftp.dscpl.com.au/pub/pmw/
|
2000-04-10 01:11:24 +00:00
|
|
|
DISTNAME= Pmw.${PORTVERSION}
|
1998-06-05 06:50:33 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1998-06-05 06:50:33 +00:00
|
|
|
|
2000-04-04 09:53:12 +00:00
|
|
|
RUN_DEPENDS= ${SITEPYDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
1998-06-05 06:50:33 +00:00
|
|
|
|
1998-12-15 08:13:06 +00:00
|
|
|
PLIST_SUB= PMWVERSION="${PMWVERSION}"
|
|
|
|
|
1998-06-05 06:50:33 +00:00
|
|
|
PYTHONSCRIPTDIR=${PREFIX}/lib/python1.5
|
|
|
|
SITEPYDIR= ${PYTHONSCRIPTDIR}/site-packages
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/Pmw
|
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/Pmw
|
1999-11-08 12:15:26 +00:00
|
|
|
PMWVERSION= Pmw_0_8_3
|
1998-06-05 06:50:33 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${ECHO_MSG} "Do a \`make install' as root."
|
|
|
|
|
|
|
|
do-install:
|
1998-11-24 10:10:21 +00:00
|
|
|
@${MKDIR} ${SITEPYDIR}
|
1998-12-15 08:13:06 +00:00
|
|
|
@(cd ${WRKDIR}; tar cf - Pmw/__init__.py Pmw/${PMWVERSION}/__init__.py Pmw/${PMWVERSION}/lib) | \
|
1998-06-05 06:50:33 +00:00
|
|
|
(cd ${SITEPYDIR}; tar xf -)
|
|
|
|
@${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${SITEPYDIR}/Pmw
|
|
|
|
@${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${SITEPYDIR}/Pmw
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCDIR} ${EXAMPLEDIR}
|
1998-12-15 08:13:06 +00:00
|
|
|
@(cd ${WRKDIR}/Pmw/${PMWVERSION}/doc; tar cf - .) | \
|
1998-06-05 06:50:33 +00:00
|
|
|
(cd ${DOCDIR}; tar xf -)
|
1998-12-15 08:13:06 +00:00
|
|
|
@(cd ${WRKDIR}/Pmw/${PMWVERSION}/demos; tar cf - .) | \
|
1998-06-05 06:50:33 +00:00
|
|
|
(cd ${EXAMPLEDIR}; tar xf -)
|
|
|
|
@${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${EXAMPLEDIR}
|
|
|
|
@${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${EXAMPLEDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|