summaryrefslogtreecommitdiffstats
path: root/devel/boaconstructor/Makefile
blob: 73f46b1ac3a8edb2007d050f67542ad0a7e266a8 (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
35
36
37
38
39
40
# New ports collection makefile for:    boa-constructor
# Date created:         		15 December 2000
# Whom:                 		Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=       boaconstructor
PORTVERSION=	0.0.4
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	boa-constructor
DISTNAME=	Boa-${PORTVERSION}

MAINTAINER=	sobomax@FreeBSD.org

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/wxPython/wxcmodule.so:${PORTSDIR}/x11-toolkits/py-wxPython

WRKSRC=		${WRKDIR}/Boa

USE_ZIP=	yes
USE_PYTHON=	yes

do-configure:
	@${PERL} -pi -e 's|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|' \
		${WRKSRC}/Explorer.gtk.cfg

do-build:
	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
	@${MKDIR} ${PREFIX}/share/Boa
	@(cd ${WRKSRC} && ${TAR} --exclude .cvsignore --exclude "*.orig" -c -f - .) \
		| (cd ${PREFIX}/share/Boa && ${TAR} --unlink -x -f -)
	@printf "#!/bin/sh\n${PYTHON_CMD} ${PREFIX}/share/Boa/Boa.py\n" \
		> ${WRKDIR}/Boa.sh
	@${INSTALL_SCRIPT} ${WRKDIR}/Boa.sh ${PREFIX}/bin/Boa

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