summaryrefslogtreecommitdiff
path: root/devel/ruby-SDL/Makefile
blob: 2915d96cfc1c7e8e1a04bc36e4516dd8d9fcef36 (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
41
42
43
44
45
46
# $NetBSD: Makefile,v 1.1.1.1 2007/09/21 10:14:37 taca Exp $
#

DISTNAME=	rubysdl-${VERS}
PKGNAME=	${RUBY_PKGPREFIX}-SDL-${VERS}
CATEGORIES=	devel audio graphics ruby
MASTER_SITES=	http://www.kmc.gr.jp/~ohai/rubysdl/

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://www.kmc.gr.jp/~ohai/rubysdl.en.html
COMMENT=	Ruby extension library to use SDL library

VERS=		1.3.1

USE_RUBY_EXTCONF=	yes
INSTALLATION_DIRS=	${RUBY_DOCDIR}/doc/sdl/ja ${RUBY_DOCDIR}/examples/sdl

RD_SRCS=	rubysdl_doc.en.rd rubysdl_doc_old.rd
DOCS_EN=	NEWS.en README.en rubysdl_const_list.txt \
		rubysdl_doc.en.html rubysdl_doc.en.rd
DOCS_JA=	NEWS.ja README.ja rubysdl_doc_old.html rubysdl_doc_old.rd \
		rubysdl_ref.html rubysdl_ref.rd

post-build:
.for f in ${RD_SRCS}
	cd ${WRKSRC}; ${RUBY_RD} ${f} > ${f:S/.rd/.html/}
.endfor

post-install:
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${RUBY_DOCDIR}/doc/sdl
.endfor
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${RUBY_DOCDIR}/doc/sdl/ja
.endfor
	cd ${WRKSRC}/sample; ${INSTALL_DATA} * \
		${DESTDIR}${RUBY_DOCDIR}/examples/sdl

.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../multimedia/smpeg/buildlink3.mk"
.include "../../lang/ruby/modules.mk"
.include "../../textproc/ruby-rdtool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"