summaryrefslogtreecommitdiff
path: root/x11/ruby-fox/Makefile
blob: 2f77217111f4a77ed07066bca782d0cbfbf87193 (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
# $NetBSD: Makefile,v 1.3 2002/03/13 17:38:04 fredb Exp $

DISTNAME=	FXRuby-0.99.174
PKGNAME=	${RUBY_PKGNAMEPREFIX}fox-0.99.174
PKGREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	http://prdownloads.sourceforge.net/fxruby/

MAINTAINER=	sakamoto@netbsd.org
HOMEPAGE=	http://fxruby.sourceforge.net/
COMMENT=	Ruby interface to FOX GUI library

DEPENDS+=	ruby-opengl-[0-9]*:../../graphics/ruby-opengl
BUILDLINK_DEPENDS.fox=${DISTNAME:C/FXRuby/fox/}

WRKDIST=	${WRKDIR}/${DISTNAME}
WRKSRC=		${WRKDIST}/ext/fox

DIST_SUBDIR=	ruby
USE_RUBY_EXTCONF=#defined
CONFIGURE_ARGS+=--with-fox-include=${BUILDLINK_DIR}/include/fox
CONFIGURE_ARGS+=--with-opengl-include=${BUILDLINK_DIR}/include/GL
CONFIGURE_ARGS+=--with-fox-lib=${BUILDLINK_DIR}/lib

INSTALL_TARGET=	site-install

post-install:
	${INSTALL_DATA_DIR} ${RUBY_SITELIBDIR}/fox
	${INSTALL_DATA} ${WRKDIST}/lib/fox/*.rb ${RUBY_SITELIBDIR}/fox
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/fox
	${INSTALL_DATA} ${WRKDIST}/examples/README ${WRKDIST}/examples/*.rb ${RUBY_EXAMPLESDIR}/fox
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/fox/icons
	${INSTALL_DATA} ${WRKDIST}/examples/icons/* \
		${RUBY_EXAMPLESDIR}/fox/icons
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/fox/textedit
	${INSTALL_DATA} ${WRKDIST}/examples/textedit/* \
		${RUBY_EXAMPLESDIR}/fox/textedit
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/fox/tests
	${INSTALL_DATA} ${WRKDIST}/tests/* ${RUBY_EXAMPLESDIR}/fox/tests
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/fox
	${INSTALL_DATA} ${WRKDIST}/doc/* ${RUBY_DOCDIR}/fox

.include "../../x11/fox/buildlink.mk"
.include "../../lang/ruby-base/Makefile.common"
.include "../../mk/bsd.pkg.mk"