2004-03-12 03:58:25 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: PDL
|
|
|
|
# Date created: 08 February 1999
|
|
|
|
# Whom: Anton Berezin <tobez@plab.ku.dk>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= PDL
|
2009-02-01 19:52:44 +01:00
|
|
|
PORTVERSION= 2.4.4
|
2011-03-04 16:28:53 +01:00
|
|
|
PORTREVISION= 8
|
2004-03-12 03:58:25 +01:00
|
|
|
CATEGORIES= math perl5
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= CPAN/${PORTNAME}:cpan \
|
|
|
|
SF/pdl/PDL/${PORTVERSION}:sf
|
2005-11-14 16:16:26 +01:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:cpan,sf
|
2004-03-12 03:58:25 +01:00
|
|
|
|
2005-11-05 16:45:52 +01:00
|
|
|
MAINTAINER= perl@FreeBSD.org
|
2004-03-12 03:58:25 +01:00
|
|
|
COMMENT= Perl Data Language
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/PGPLOT.pm:${PORTSDIR}/graphics/pgperl \
|
|
|
|
${SITE_PERL}/ExtUtils/F77.pm:${PORTSDIR}/lang/p5-F77 \
|
|
|
|
${SITE_PERL}/Inline.pm:${PORTSDIR}/devel/p5-Inline \
|
2004-03-12 09:14:22 +01:00
|
|
|
${SITE_PERL}/${PERL_ARCH}/Filter/Util/Call.pm:${PORTSDIR}/devel/p5-Filter \
|
2005-11-05 16:45:52 +01:00
|
|
|
${SITE_PERL}/Astro/FITS/Header.pm:${PORTSDIR}/astro/p5-Astro-FITS-Header \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/PGPLOT.pm:${PORTSDIR}/graphics/pgperl \
|
|
|
|
${SITE_PERL}/Term/ReadLine/readline.pm:${PORTSDIR}/devel/p5-ReadLine-Perl
|
2011-03-04 16:28:53 +01:00
|
|
|
LIB_DEPENDS= plplotd.10:${PORTSDIR}/math/plplot \
|
2004-03-12 03:58:25 +01:00
|
|
|
fftw.2:${PORTSDIR}/math/fftw \
|
2010-03-29 03:12:27 +02:00
|
|
|
gsl.15:${PORTSDIR}/math/gsl
|
2005-11-05 16:45:52 +01:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2004-03-12 03:58:25 +01:00
|
|
|
|
|
|
|
USE_GL= yes
|
|
|
|
PERL_CONFIGURE= yes
|
2006-02-28 14:53:10 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ENV+= PERL5LIB=${WRKSRC}/blib/lib
|
2006-08-15 11:07:10 +02:00
|
|
|
PLIST_DIRS= ${SITE_PERL_REL}/${PERL_ARCH}/Inline
|
2005-11-05 16:45:52 +01:00
|
|
|
PLIST_FILES= bin/pdl bin/pdldoc bin/perldl bin/pptemplate \
|
2006-08-15 11:07:10 +02:00
|
|
|
${SITE_PERL_REL}/${PERL_ARCH}/Inline/Pdlpp.pm \
|
|
|
|
${SITE_PERL_REL}/${PERL_ARCH}/Inline/MakePdlppInstallable.pm
|
2009-11-20 23:53:09 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2004-03-12 03:58:25 +01:00
|
|
|
|
|
|
|
.if defined(KITCHEN_SINK)
|
|
|
|
RUN_DEPENDS+= ppmtogif:${PORTSDIR}/graphics/netpbm \
|
|
|
|
mpeg_encode:${PORTSDIR}/multimedia/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
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-11-05 18:22:37 +01:00
|
|
|
.if ${ARCH} == "alpha"
|
2006-02-28 14:53:10 +01:00
|
|
|
BROKEN= test script t/flexraw.t fails all 26 tests
|
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}!"
|
2006-10-13 03:58:43 +02:00
|
|
|
@${GREP} -lR "x86_64" ${WRKSRC} | ${XARGS} \
|
|
|
|
${PERL} -pi -e "s!x86_64!amd64!"
|
2004-03-12 03:58:25 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} make test
|
|
|
|
|
|
|
|
# autogen plist
|
|
|
|
post-install:
|
2010-01-14 04:31:20 +01:00
|
|
|
@(cd ${WRKSRC}; ${PERL} Doc/scantree.pl)
|
2004-03-12 03:58:25 +01:00
|
|
|
@(cd ${WRKSRC}/blib/man3 ; \
|
2007-08-04 13:41:30 +02:00
|
|
|
${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 | \
|
2007-08-04 13:41:30 +02:00
|
|
|
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} ; \
|
2004-03-12 03:58:25 +01:00
|
|
|
${FIND} ${SITE_PERL}/${PERL_ARCH}/PDL* -type d | ${SORT} -r | \
|
2007-08-04 13:41:30 +02:00
|
|
|
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST} ; \
|
2004-03-12 03:58:25 +01:00
|
|
|
${FIND} ${SITE_PERL}/${PERL_ARCH}/auto/PDL -type f | \
|
2007-08-04 13:41:30 +02:00
|
|
|
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} ; \
|
2004-03-12 03:58:25 +01:00
|
|
|
${FIND} ${SITE_PERL}/${PERL_ARCH}/auto/PDL -type d | ${SORT} -r | \
|
2007-08-04 13:41:30 +02:00
|
|
|
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST})
|
2004-03-12 03:58:25 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|