summaryrefslogtreecommitdiff
path: root/devel/ruby-ncurses/Makefile
blob: 3ab41a115060224161bb63603a633c3c8678258a (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
# $NetBSD: Makefile,v 1.4 2007/01/14 04:14:51 taca Exp $

DISTNAME=	ncurses-ruby-1.0
PKGNAME=	${DISTNAME:S/ncurses-ruby/${RUBY_PKGPREFIX}-ncurses/}
PKGREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	http://download.berlios.de/ncurses-ruby/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	rasputnik@hellooperator.net
HOMEPAGE=	http://ncurses-ruby.berlios.de/
COMMENT=	Ruby interface to ncurses

USE_RUBY_EXTCONF=	yes
USE_NCURSES=		# mouse functions

EXAMPLES=		example.rb hello_ncurses.rb rain.rb read_line.rb \
			tclock.rb test_scanw.rb
.for f in ${EXAMPLES}
REPLACE_RUBY+=		example/${f}
.endfor

post-install:
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/ncurses
	${INSTALL_DATA} ${WRKSRC}/examples/LICENSES_for_examples \
		${RUBY_EXAMPLESDIR}/ncurses
.for f in ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/examples/${f} ${RUBY_EXAMPLESDIR}/ncurses
.endfor

.include "../../devel/ncurses/buildlink3.mk"
.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"