# New ports collection makefile for:	wxGlade-devel
# Date created:				30 January 2007
# Whom:					Joerg Wunsch <joerg@FreeBSD.org>
#
# $FreeBSD: ports/devel/wxGlade-devel/Makefile,v 1.8 2007/12/12 05:54:36 alepulver Exp $

PORTNAME=	wxglade
PORTVERSION=	0.6
CATEGORIES=	devel x11-toolkits python
MASTER_SITES=	SF
PKGNAMESUFFIX=	-devel
DISTNAME=	wxGlade-${PORTVERSION}

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

DEPRECATED=	has been the same version as wxGlade for a long time; use it instead
EXPIRATION_DATE=2008-01-12

CONFLICTS=	wxglade-[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 icons 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>


syntax highlighted by Code2HTML, v. 0.9.1