summaryrefslogtreecommitdiffstats
path: root/cad/pythoncad/Makefile
blob: d8b79363ee43628ceef0279c769c172c7609e52d (plain)
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
# ex:ts=8
# Ports collection makefile for:	pythoncad
# Date created:			Nov 11, 2003
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	pythoncad
PORTVERSION=	21
PORTREVISION=	1
CATEGORIES=	cad
MASTER_SITES=	http://www.pythoncad.org/releases/
DISTNAME=	PythonCAD-DS1-R${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An open-source CAD package built designed around Python

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygtk.pth:${PORTSDIR}/x11-toolkits/py-gtk2

USE_PYTHON=	2.2+
USE_PYDISTUTILS=	yes
USE_BZIP2=	yes

PLIST_FILES=	bin/gtkpycad

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/gtkpycad.py ${PREFIX}/bin/gtkpycad
	@${FIND} ${PYTHON_SITELIBDIR}/PythonCAD* ! -type d | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@${FIND} ${PYTHON_SITELIBDIR}/PythonCAD* -type d | ${SORT} -r | \
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud