aboutsummaryrefslogtreecommitdiff
path: root/devel/wxGlade/Makefile
blob: 8def1a1dbaa427da15dc37278bc22489c8d340a7 (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
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:	wxGlade
# Date created:				1 May 2003
# Whom:					Michal Pasternak <dotz@irc.pl>
#
# $FreeBSD$

PORTNAME=	wxglade
PORTVERSION=	0.5
PORTREVISION=	1
CATEGORIES=	devel x11-toolkits python
MASTER_SITES=	SF
DISTNAME=	wxGlade-${PORTVERSION}

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	GUI builder for wxPython/wxWindows written in Python

CONFLICTS=	wxglade-devel-[0-9]*

WRKSRC=		${WRKDIR}/wxGlade-${PORTVERSION}

USE_PYTHON=	yes
USE_WX=		2.6+
WX_COMPS=	python

MAN1=		wxglade.1

do-build:
	@(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD} 'exec ${PYTHON_CMD} \
		${PYTHON_SITELIBDIR}/${PORTNAME}/${PORTNAME}.py \
		"$$@"') > ${WRKDIR}/${PORTNAME}

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
	${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/*.py ${PYTHON_SITELIBDIR}/${PORTNAME}
.for f in codegen edit_sizers res widgets
	${CP} -R ${WRKSRC}/${f} ${PYTHON_SITELIBDIR}/${PORTNAME}
.endfor
	${INSTALL_DATA} ${WRKSRC}/debian/wxglade.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${CP} -R ${WRKSRC}/docs/* ${DOCSDIR}
.endif

.include <bsd.port.mk>