# $OpenBSD: Makefile,v 1.4 2004/06/26 04:35:35 xsa Exp $

COMMENT=	"curses based user interface framework for Perl"

DISTNAME=	Curses-UI-0.93
PKGNAME=	p5-${DISTNAME}

CATEGORIES=	devel perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=Curses/}

BUILD_DEPENDS=	::devel/p5-Curses \
		::devel/p5-Term-ReadKey

# Perl license
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

CONFIGURE_STYLE= perl

REGRESS_DEPENDS=::devel/p5-Test-Pod	

EXAMPLE_DIR=	${PREFIX}/share/examples/p5-Curses-UI

post-install:
	${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLE_DIR}

.include <bsd.port.mk>
