freebsd-ports/x11-toolkits/py-Pmw/Makefile
Marcus von Appen a5f9cc91c2 - Convert ports from korean/, shells/, x11/, x11-clocks/, x11-fm/,
x11-fonts/, x11-toolkits and x11-wm to new USES=python

Approved by:	portmgr (implicit)
2014-10-19 18:16:15 +00:00

35 lines
1.1 KiB
Makefile

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= Pmw
PORTVERSION= 1.3.2
PORTREVISION= 3
CATEGORIES= x11-toolkits python
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/${PORTNAME}.${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= fmysh@iijmio-mail.jp
COMMENT= High-level compound graphics widgets for Python
OPTIONS_DEFINE= DOCS EXAMPLES
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
LIB_DEPENDS= libBLT25.so:${PORTSDIR}/x11-toolkits/blt
USES= python
USE_PYTHON= distutils
WRKSRC= ${WRKDIR}/${DISTNAME}/src
PMWVERSION= ${DISTNAME:R:S/./_/g}
PLIST_SUB= PMWVERSION="${PMWVERSION}"
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR} \
${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/Pmw/${PMWVERSION}/bin; ${PAX} -rw . ${STAGEDIR}${DATADIR})
@(cd ${WRKSRC}/Pmw/${PMWVERSION}/doc; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.for d in contrib demos
@(cd ${WRKSRC}/Pmw/${PMWVERSION}; ${COPYTREE_SHARE} $d ${STAGEDIR}${EXAMPLESDIR})
.endfor
.include <bsd.port.mk>