1999-04-03 02:13:53 +00:00
|
|
|
# New ports collection makefile for: PDL
|
|
|
|
# Date created: 08 February 1999
|
|
|
|
# Whom: Anton Berezin <tobez@plab.ku.dk>
|
|
|
|
#
|
1999-08-25 07:05:28 +00:00
|
|
|
# $FreeBSD$
|
1999-04-03 02:13:53 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= PDL
|
2000-08-22 13:36:02 +00:00
|
|
|
PORTVERSION= 2.1.1
|
1999-04-03 02:13:53 +00:00
|
|
|
CATEGORIES= math perl5
|
2000-04-30 19:54:39 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
1999-04-03 02:13:53 +00:00
|
|
|
MASTER_SITE_SUBDIR= PDL
|
|
|
|
|
|
|
|
MAINTAINER= tobez@plab.ku.dk
|
|
|
|
|
2000-04-30 19:54:39 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/PGPLOT.pm:${PORTSDIR}/graphics/pgperl \
|
|
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/ExtUtils/F77.pm:${PORTSDIR}/lang/p5-F77
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/PGPLOT.pm:${PORTSDIR}/graphics/pgperl \
|
|
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Term/ReadLine/readline.pm:${PORTSDIR}/devel/p5-ReadLine-Perl
|
1999-04-03 02:13:53 +00:00
|
|
|
|
(1) Add new variable, XFREE86_VERSION, to specify which version of
XFree86 (3 or 4) to depend to when USE_XLIB is set.
XFREE86_VERSION defaults to 3 for now, but adventurous users can
override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB
will add a dependency to x11/XFree86; when it is set to 4, the
dependency will be to x11/XFree86-4-libraries. When
XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS
hacks to avoid messing with XFree86 are turned off.
Since XFree86 version 4 includes some software that used to be
separate ports, when XFREE86_VERSION=3 the following variables are
provided:
USE_DGS LIB_DEPENDS on x11/dgs
USE_FREETYPE LIB_DEPENDS on print/freetype
USE_MESA LIB_DEPENDS on graphics/Mesa3
USE_XPM LIB_DEPENDS on graphics/xpm
When XFREE86_VERSION=4, these variables have no effect. The
LIB_DEPENDS in the tree for the above four ports have all been
converted to the USE_* counterparts. For your information, this
is the count of the number of ports:
USE_DGS 0
USE_FREETYPE 16
USE_MESA 36
USE_XPM 236
There is a new variable, XAWVER, which is set to 6 when
XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also
passed to PLIST_SUB so ports that build Xaw based shared libraries
can use this variable to substitute the shlib version number.
There is also a provision of using a separate mtree file for
XFREE86_VERSION=4, but that part is not enabled yet.
Reviewed by: the ports list
Tested by: make index (XFREE86_VERSION=3 only)
(2) Add hebrew to list of valid categories.
Submitted by: nbm
2000-08-03 09:28:57 +00:00
|
|
|
USE_MESA= yes
|
1999-04-03 02:13:53 +00:00
|
|
|
USE_PERL5= yes
|
|
|
|
SCRIPTS_ENV= PERL=${PERL}
|
|
|
|
|
2000-04-30 19:54:39 +00:00
|
|
|
.if defined(KITCHEN_SINK)
|
2000-08-22 13:36:02 +00:00
|
|
|
LIB_DEPENDS+= fftw.2:${PORTSDIR}/math/fftw \
|
|
|
|
gsl.0:${PORTSDIR}/math/gsl
|
2000-04-30 19:54:39 +00:00
|
|
|
RUN_DEPENDS+= ppmtogif:${PORTSDIR}/graphics/netpbm \
|
|
|
|
mpeg_encode:${PORTSDIR}/graphics/mpeg_encode \
|
|
|
|
saoimage:${PORTSDIR}/astro/saoimage
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.SILENT:
|
|
|
|
|
|
|
|
.if !defined(KITCHEN_SINK)
|
|
|
|
pre-extract:
|
|
|
|
${ECHO} "You can build additional functionality into PDL by defining KITCHEN_SINK"
|
|
|
|
.endif
|
|
|
|
|
1999-04-03 02:13:53 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-05-24 02:24:00 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
BROKEN= test script t/flexraw.t fails all 26 tests
|
|
|
|
.endif
|
|
|
|
|
1999-04-03 02:13:53 +00:00
|
|
|
MAN1= PDL::Philosophy.1 PDL::Internals.1 PDL::PP.1 PDL::Tips.1 \
|
|
|
|
PDL::Dataflow.1 PDL::Indexing.1 PDL::FAQ.1 PDL::Delta.1 \
|
2000-04-30 19:54:39 +00:00
|
|
|
PDL::Objects.1 PDL::Impatient.1 pdl.1 perldl.1
|
2000-08-22 13:36:02 +00:00
|
|
|
MAN3= PDL.3 PDL::Char.3 PDL::Complex.3 PDL::Fit::Gaussian.3 PDL::Func.3 \
|
|
|
|
PDL::Graphics::LUT.3 PDL::LM.3 PDL::Polynomial.3 \
|
|
|
|
PDL::PP::Dump.3 PDL::PP::Signature.3 PDL::Types.3 PDL::Dbg.3 \
|
2000-04-30 19:54:39 +00:00
|
|
|
PDL::Exporter.3 PDL::Core.3 PDL::Basic.3 PDL::Lite.3 PDL::LiteF.3 \
|
|
|
|
PDL::Ops.3 PDL::Options.3 PDL::Primitive.3 \
|
1999-04-03 02:13:53 +00:00
|
|
|
PDL::Slices.3 PDL::Tests.3 PDL::Math.3 PDL::AutoLoader.3 \
|
2000-04-30 19:54:39 +00:00
|
|
|
PDL::Pod::Usage.3 PDL::Pod::Parser.3 \
|
1999-04-03 02:13:53 +00:00
|
|
|
PDL::Pod::Select.3 PDL::Doc.3 PDL::Doc::Perldl.3 \
|
|
|
|
PDL::Graphics::PGPLOT.3 PDL::Graphics::IIS.3 PDL::Graphics::OpenGLQ.3 \
|
|
|
|
PDL::Graphics::TriD::Rout.3 PDL::Graphics::TriD::MathGraph.3 \
|
|
|
|
PDL::Graphics::TriD::Tk.3 PDL::Graphics::TriD::VRML.3 \
|
|
|
|
PDL::Graphics::TriD.3 PDL::IO::FastRaw.3 PDL::IO::Misc.3 \
|
|
|
|
PDL::IO::FlexRaw.3 PDL::IO::Pnm.3 PDL::IO::Browser.3 \
|
|
|
|
PDL::IO::NDF.3 PDL::Opt::Simplex.3 PDL::ImageRGB.3 PDL::FFT.3 \
|
|
|
|
PDL::Slatec.3 PDL::LinPred.3 PDL::Linear.3 PDL::Image2D.3 \
|
|
|
|
PDL::ImageND.3 PDL::CallExt.3 PDL::Gaussian.3
|
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/perldl.conf ${WRKSRC}/perldl.conf.tmp
|
|
|
|
@${SED} -e s^%%LIBPATH%%^-L${X11BASE}/lib^g \
|
|
|
|
< ${WRKSRC}/perldl.conf.tmp > ${WRKSRC}/perldl.conf.tmp2
|
|
|
|
@${SED} -e s^%%INCPATH%%^-I${X11BASE}/include\ -I${X11BASE}/include/GL^g \
|
|
|
|
< ${WRKSRC}/perldl.conf.tmp2 > ${WRKSRC}/perldl.conf
|
|
|
|
@${RM} ${WRKSRC}/perldl.conf.tmp ${WRKSRC}/perldl.conf.tmp2
|
|
|
|
for f in ${WRKSRC}/Basic/Core/*.PL ${WRKSRC}/Basic/Core/*.p \
|
|
|
|
${WRKSRC}/Doc/Doc/*.PL ${WRKSRC}/Doc/Pod/*.PL \
|
|
|
|
${WRKSRC}/Graphics/TriD/OpenGL/examples/clip \
|
|
|
|
${WRKSRC}/t/*.t ; do \
|
|
|
|
${MV} $$f $${f}.old ; \
|
|
|
|
${SED} -e s!/usr/local/bin/perl!${PERL}! \
|
|
|
|
< $${f}.old >$${f} ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL PREFIX=${PREFIX}
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} make test
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|