2004-02-28 00:54:14 +01:00
|
|
|
# New ports collection makefile for: RubyDCL
|
|
|
|
# Date created: 15 Febrary 2004
|
|
|
|
# Whom: Shin'ya Murakami <murakami@ahs.scitec.kobe-u.ac.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dcl
|
2005-02-24 21:15:00 +01:00
|
|
|
PORTVERSION= 1.5.0
|
2005-03-12 11:54:27 +01:00
|
|
|
PORTREVISION= 1
|
2004-02-28 00:54:14 +01:00
|
|
|
CATEGORIES= science graphics ruby
|
|
|
|
MASTER_SITES= http://www.gfd-dennou.org/arch/ruby/products/ruby-dcl/
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2005-02-24 21:15:00 +01:00
|
|
|
MAINTAINER= murakami@ahs.scitec.kobe-u.ac.jp
|
|
|
|
COMMENT= A Ruby interface to the scientific graphic library DCL
|
2004-02-28 00:54:14 +01:00
|
|
|
|
2004-05-10 01:04:52 +02:00
|
|
|
BUILD_DEPENDS= ${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray
|
2004-02-28 00:54:14 +01:00
|
|
|
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray
|
|
|
|
|
2005-02-24 21:15:00 +01:00
|
|
|
.if defined(WITHOUT_GTK)
|
|
|
|
.else
|
2004-03-14 16:54:55 +01:00
|
|
|
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/gdk_pixbuf2.so:${PORTSDIR}/graphics/ruby-gdk_pixbuf2 \
|
2004-03-16 20:04:05 +01:00
|
|
|
${RUBY_SITEARCHLIBDIR}/gtk2.so:${PORTSDIR}/x11-toolkits/ruby-gtk2
|
2005-02-24 21:15:00 +01:00
|
|
|
BUILD_DEPENDS+= ${X11BASE}/lib/libcdcl53.a:${PORTSDIR}/science/cdcl
|
2004-02-28 00:54:14 +01:00
|
|
|
.endif
|
|
|
|
|
2005-02-24 21:15:00 +01:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
|
2004-02-28 00:54:14 +01:00
|
|
|
DOCS= ChangeLog README ToDo
|
|
|
|
DEMODIRS= gokuraku grph1 grph2 math2 rakuraku
|
|
|
|
DEMOGOKU= hop jump layout step u1d u2d
|
|
|
|
DEMOGRPH1= scpack sgpack slpack
|
2005-02-24 21:15:00 +01:00
|
|
|
DEMOGRPH2= grpack g2pack ucpack udegpk ulpack umpack uspack uupack \
|
|
|
|
uxyzpk ximage
|
|
|
|
DEMOMATH1= gt2dlib
|
2004-02-28 00:54:14 +01:00
|
|
|
DEMOMATH2= fftlib intrlib rnmlib vstlib
|
|
|
|
DEMORAKU= color kihon layout map3d miss quick u2d uspack uxyz
|
|
|
|
DEMODAT= grph1/scpack/t810630.dat grph1/scpack/t811231.dat \
|
|
|
|
grph2/umpack/t811231.dat grph2/ximage/MEMO \
|
|
|
|
grph2/ximage/tomsclm.dat
|
|
|
|
|
2004-05-30 09:06:31 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
2005-02-28 14:06:25 +01:00
|
|
|
BROKEN= "Does not build on amd64 (Needs to link against shared libraries)"
|
2004-05-30 09:06:31 +02:00
|
|
|
.endif
|
|
|
|
|
2004-02-28 00:54:14 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
|
|
.for f in ${DEMODIRS}
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/${f}
|
|
|
|
.endfor
|
|
|
|
.for f in ${DEMOGOKU}
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/gokuraku/${f}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/gokuraku/${f}/*.rb ${RUBY_MODEXAMPLESDIR}/gokuraku/${f}
|
|
|
|
.endfor
|
|
|
|
.for f in ${DEMOGRPH1}
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/grph1/${f}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/grph1/${f}/*.rb ${RUBY_MODEXAMPLESDIR}/grph1/${f}
|
|
|
|
.endfor
|
|
|
|
.for f in ${DEMOGRPH2}
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/grph2/${f}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/grph2/${f}/*.rb ${RUBY_MODEXAMPLESDIR}/grph2/${f}
|
|
|
|
.endfor
|
2005-02-24 21:15:00 +01:00
|
|
|
.for f in ${DEMOMATH1}
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/math1/${f}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/math1/${f}/*.rb ${RUBY_MODEXAMPLESDIR}/math1/${f}
|
|
|
|
.endfor
|
2004-02-28 00:54:14 +01:00
|
|
|
.for f in ${DEMOMATH2}
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/math2/${f}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/math2/${f}/*.rb ${RUBY_MODEXAMPLESDIR}/math2/${f}
|
|
|
|
.endfor
|
|
|
|
.for f in ${DEMORAKU}
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/rakuraku/${f}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/rakuraku/${f}/*.rb ${RUBY_MODEXAMPLESDIR}/rakuraku/${f}
|
|
|
|
.endfor
|
|
|
|
.for f in ${DEMODAT}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/${f} ${RUBY_MODEXAMPLESDIR}/${f}
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
|
|
|
.for f in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-05-30 09:06:31 +02:00
|
|
|
.include <bsd.port.post.mk>
|