aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/py-Pmw/Makefile
blob: b2aac27a00cd03ad56aefde6e84865f4617f8043 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$

PORTNAME=	Pmw
PORTVERSION=	1.3.2
PORTREVISION=	4
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:x11-toolkits/py-tkinter
LIB_DEPENDS=	libBLT25.so:x11-toolkits/blt

USES=		python shebangfix
USE_PYTHON=	distutils
SHEBANG_FILES=	Pmw/Pmw_1_3/bin/bundlepmw.py

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>