blob: c9859cb430f90757c79e93bbdee4f0b38e3a562d (
plain) (
blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Created by: Shin'ya Murakami <murakami@ahs.scitec.kobe-u.ac.jp>
# $FreeBSD$
PORTNAME= dcl
PORTVERSION= 1.7.0
PORTREVISION= 2
CATEGORIES= science graphics ruby
MASTER_SITES= http://ruby.gfd-dennou.org/products/ruby-dcl/release/ \
http://dennou-h.gfd-dennou.org/library/ruby/products/ruby-dcl/release/ \
http://dennou-q.gfd-dennou.org/library/ruby/products/ruby-dcl/release/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
MAINTAINER= murashin@gfd-dennou.org
COMMENT= Ruby interface to the scientific graphic library DCL
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= rubygem-narray>=0.5.5:${PORTSDIR}/math/rubygem-narray \
${LOCALBASE}/lib/libcdcl.so:${PORTSDIR}/science/cdcl
RUN_DEPENDS= ${LOCALBASE}/lib/libcdcl.so:${PORTSDIR}/science/cdcl \
rubygem-narray>=0.5.5:${PORTSDIR}/math/rubygem-narray \
rubygem-gdk_pixbuf2>=2.1.0:${PORTSDIR}/graphics/rubygem-gdk_pixbuf2 \
rubygem-gtk2>=2.1.0:${PORTSDIR}/x11-toolkits/rubygem-gtk2
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
RUBY_NARRAY_VERSION= `make -C ${PORTSDIR}/math/rubygem-narray -V PORTVERSION`
RUBY_NARRAY_PKGNAME= narray-${RUBY_NARRAY_VERSION}
CONFIGURE_ARGS+= --with-narray-include=${LOCALBASE}/lib/ruby/gems/${RUBY_VER}/gems/${RUBY_NARRAY_PKGNAME}/
MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}"
DOCSDIR= ${RUBY_MODDOCDIR}
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
PORTDOCS= ChangeLog README ToDo
PORTEXAMPLES= *
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= Does not build on ${ARCH} (Needs to link against shared libraries)
.endif
post-install:
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
(cd ${WRKSRC}/demo/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_MODEXAMPLESDIR})
.endif
.if !defined(PORT_OPTIONS:MDOCS)
${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|