summaryrefslogtreecommitdiff
path: root/math/ruby-gsl/Makefile
blob: 004575a754a9b9ef138ffc344e9aeeb3ae868668 (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
# $NetBSD: Makefile,v 1.2 2004/01/20 12:20:05 agc Exp $

DISTNAME=	ruby-gsl-0.1.9
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=ruby-gsl/}

MAINTAINER=	dmcmahill@NetBSD.org
HOMEPAGE=	http://ruby-gsl.sourceforge.net/
COMMENT=	Wrapper of the GNU Scientific Library (GSL) for Ruby

DIST_SUBDIR=		ruby
WRKSRC=			${WRKDIR}/${DISTNAME}/ext
USE_RUBY_EXTCONF=	yes
USE_BUILDLINK2=		yes
INSTALL_TARGET=		site-install

DOCS=		README

post-patch:
	${MV} ${WRKSRC}/Const.c ${WRKSRC}/Const.c.bak
	${SED} -e 's;CONST_MKS_;CONST_MKSA_;g' -e 's;CONST_CGS_;CONST_CGSM_;g' \
		${WRKSRC}/Const.c.bak > ${WRKSRC}/Const.c

DOCS=	\
	HOWTO \
	IMPLEMENTED \
	README \
	TODO \
	doc.rd

post-install:
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/gsl
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/../doc/${f} ${RUBY_DOCDIR}/gsl
.endfor
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/gsl
	${INSTALL_DATA} ${WRKSRC}/../samples/*.rb ${RUBY_EXAMPLESDIR}/gsl

.include "../../lang/ruby-base/Makefile.common"
.include "../../lang/ruby-base/buildlink2.mk"
.include "../../math/gsl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"