1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/x11-toolkits/pmw/Makefile
Kenjiro Cho 750f9ffb21 update for libBLT24.so.3 that uses tcl/tk8.4.
bump the PORTREVISION accordingly.
2003-10-22 10:23:54 +00:00

50 lines
1.4 KiB
Makefile

# New ports collection makefile for: pmw
# Date created: 03 June 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pmw
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= x11-toolkits python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pmw
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Pmw.${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= High-level compound graphics widgets for Python
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
LIB_DEPENDS= BLT24.3:${PORTSDIR}/x11-toolkits/blt
PLIST_SUB= PMWVERSION="${PMWVERSION}"
USE_PYTHON= yes
DOCDIR= ${PREFIX}/share/doc/Pmw
EXAMPLEDIR= ${PREFIX}/share/examples/Pmw
PMWVERSION= Pmw_${PORTVERSION:S/./_/g}
do-build:
@${ECHO_MSG} "Do a \`make install' as root."
do-install:
@(cd ${WRKDIR}; tar cf - Pmw/__init__.py Pmw/${PMWVERSION}/__init__.py Pmw/${PMWVERSION}/lib) | \
(cd ${PYTHON_SITELIBDIR}; tar xf -)
${INSTALL_DATA} ${WRKDIR}/Pmw/${PMWVERSION}/contrib/Pmw* \
${PYTHON_SITELIBDIR}/Pmw/${PMWVERSION}/lib
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/Pmw
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
${PYTHON_SITELIBDIR}/Pmw
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCDIR} ${EXAMPLEDIR}
@(cd ${WRKDIR}/Pmw/${PMWVERSION}/doc; tar cf - .) | \
(cd ${DOCDIR}; tar xf -)
@(cd ${WRKDIR}/Pmw/${PMWVERSION}/demos; tar cf - .) | \
(cd ${EXAMPLEDIR}; tar xf -)
.endif
.include <bsd.port.mk>