freebsd-ports/math/PDL/Makefile

129 lines
3.8 KiB
Makefile
Raw Normal View History

2004-03-12 03:58:25 +01:00
# New ports collection makefile for: PDL
# Date created: 08 February 1999
# Whom: Anton Berezin <tobez@plab.ku.dk>
#
# $FreeBSD$
#
PORTNAME= PDL
PORTVERSION= 2.4.9
2012-06-01 07:26:28 +02:00
PORTREVISION= 2
2004-03-12 03:58:25 +01:00
CATEGORIES= math perl5
MASTER_SITES= CPAN/${PORTNAME}:cpan \
SF/pdl/PDL/${PORTVERSION}:sf
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:cpan,sf
2004-03-12 03:58:25 +01:00
MAINTAINER= perl@FreeBSD.org
2004-03-12 03:58:25 +01:00
COMMENT= Perl Data Language
BUILD_DEPENDS= p5-Astro-FITS-Header>=0:${PORTSDIR}/astro/p5-Astro-FITS-Header \
p5-Convert-UU>=0:${PORTSDIR}/converters/p5-Convert-UU \
p5-Inline>=0.43:${PORTSDIR}/devel/p5-Inline
RUN_DEPENDS= p5-Astro-FITS-Header>=0:${PORTSDIR}/astro/p5-Astro-FITS-Header \
p5-Convert-UU>=0:${PORTSDIR}/converters/p5-Convert-UU \
p5-Inline>=0.43:${PORTSDIR}/devel/p5-Inline
2004-03-12 03:58:25 +01:00
PERL_CONFIGURE= yes
USE_GMAKE= yes
MAKE_ENV= PERL5LIB=${WRKSRC}/blib/lib
PLIST_DIRS= ${SITE_PERL_REL}/${PERL_ARCH}/Inline
PLIST_FILES= bin/pdl bin/pdldoc bin/perldl bin/pptemplate \
${SITE_PERL_REL}/${PERL_ARCH}/Inline/Pdlpp.pm \
${SITE_PERL_REL}/${PERL_ARCH}/Inline/MakePdlppInstallable.pm
MAKE_JOBS_UNSAFE= yes
2004-03-12 03:58:25 +01:00
2012-05-31 13:19:32 +02:00
OPTIONS_DEFINE= PGPLOT PLPLOT OPENGL GD FFTW GSL HDF PROJ F77 READLINE SINK
OPTIONS_DEFAULT= PGPLOT OPENGL FFTW F77
PGPLOT_DESC= Enable PDL::Graphics::PGPLOT
PLPLOT_DESC= Enable PDL::Graphics::PLplot
OPENGL_DESC= Enable PDL::Graphics::TriD and OpenGL
GD_DESC= Enable PDL::IO::GD
FFTW_DESC= Enable PDL::FFTW
GSL_DESC= Enable PDL::GSL interface
HDF_DESC= Enable PDL::IO::HDF interface
PROJ_DESC= Enable PDL::GIS::Proj interface
F77_DESC= Enable PDL::Minuit and PDL::Slatec
READLINE_DESC= Use GNU readline
SINK_DESC= Include PDL kitchen sink
.include <bsd.port.options.mk>
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MPGPLOT}
BUILD_DEPENDS+= p5-PGPLOT>=0:${PORTSDIR}/graphics/p5-PGPLOT
2004-03-12 03:58:25 +01:00
.endif
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MPLPLOT}
LIB_DEPENDS+= plplotd.11:${PORTSDIR}/math/plplot
.endif
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MOPENGL}
BUILD_DEPENDS+= p5-OpenGL>=0.60:${PORTSDIR}/graphics/p5-OpenGL
RUN_DEPENDS+= p5-OpenGL>=0.60:${PORTSDIR}/graphics/p5-OpenGL
USE_GL= yes
.endif
2004-03-12 03:58:25 +01:00
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MGD}
LIB_DEPENDS+= gd:${PORTSDIR}/graphics/gd
2004-03-12 03:58:25 +01:00
.endif
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MF77}
2011-11-07 18:38:17 +01:00
BUILD_DEPENDS+= p5-ExtUtils-F77>=0:${PORTSDIR}/lang/p5-ExtUtils-F77
.endif
2004-03-12 03:58:25 +01:00
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MFFTW}
LIB_DEPENDS+= fftw.2:${PORTSDIR}/math/fftw
.endif
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MGSL}
LIB_DEPENDS+= gsl:${PORTSDIR}/math/gsl
.endif
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MHDF}
LIB_DEPENDS+= df:${PORTSDIR}/science/hdf
.endif
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MPROJ}
LIB_DEPENDS+= proj:${PORTSDIR}/graphics/proj
.endif
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MREADLINE}
2011-10-13 10:51:48 +02:00
RUN_DEPENDS+= p5-ReadLine-Gnu>=0:${PORTSDIR}/devel/p5-ReadLine-Gnu
.else
2011-10-13 10:51:48 +02:00
RUN_DEPENDS+= p5-ReadLine-Perl>=0:${PORTSDIR}/devel/p5-ReadLine-Perl
.endif
2012-05-31 13:19:32 +02:00
.if ${PORT_OPTIONS:MSINK}
RUN_DEPENDS+= ppmtogif:${PORTSDIR}/graphics/netpbm \
mpeg_encode:${PORTSDIR}/multimedia/mpeg_encode \
saoimage:${PORTSDIR}/astro/saoimage
2004-03-12 03:58:25 +01:00
.endif
post-patch:
@${GREP} -lR "/usr/local/bin/perl" ${WRKSRC} | ${XARGS} \
${PERL} -pi -e "s!/usr/local/bin/perl!${PERL}!"
@${GREP} -lR "x86_64" ${WRKSRC} | ${XARGS} \
${PERL} -pi -e "s!x86_64!amd64!"
2004-03-12 03:58:25 +01:00
test: build
2004-03-12 03:58:25 +01:00
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} make test
# autogen plist
post-install:
@(cd ${WRKSRC}; ${PERL} Doc/scantree.pl)
2004-03-12 03:58:25 +01:00
@(cd ${WRKSRC}/blib/man3 ; \
${FIND} *.3 | ${SED} "s,^,${MAN3PREFIX:S,^${PREFIX}/,,}/man/man3/," \
2004-03-12 03:58:25 +01:00
>> ${TMPPLIST} ; \
cd ${WRKSRC}/blib/man1 ; \
${FIND} *.1 | ${SED} "s,^,man/man1/," >> ${TMPPLIST})
@(${FIND} ${SITE_PERL}/${PERL_ARCH}/PDL* -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} ; \
2004-03-12 03:58:25 +01:00
${FIND} ${SITE_PERL}/${PERL_ARCH}/PDL* -type d | ${SORT} -r | \
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST} ; \
2004-03-12 03:58:25 +01:00
${FIND} ${SITE_PERL}/${PERL_ARCH}/auto/PDL -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} ; \
2004-03-12 03:58:25 +01:00
${FIND} ${SITE_PERL}/${PERL_ARCH}/auto/PDL -type d | ${SORT} -r | \
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST})
2004-03-12 03:58:25 +01:00
.include <bsd.port.mk>