1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/math/PDL/Makefile

88 lines
2.8 KiB
Makefile
Raw Normal View History

2004-03-12 02:58:25 +00: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
PORTVERSION= 2.4.3
2007-06-29 05:46:43 +00:00
PORTREVISION= 2
2004-03-12 02:58:25 +00:00
CATEGORIES= math perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} \
${MASTER_SITE_SOURCEFORGE:S/$/:sf/}
2004-03-19 01:46:05 +00:00
MASTER_SITE_SUBDIR= ${PORTNAME}/:cpan \
${PORTNAME:L}/:sf
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:cpan,sf
2004-03-12 02:58:25 +00:00
MAINTAINER= perl@FreeBSD.org
2004-03-12 02:58:25 +00: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 08:14:22 +00:00
${SITE_PERL}/${PERL_ARCH}/Filter/Util/Call.pm:${PORTSDIR}/devel/p5-Filter \
${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
2006-06-05 22:19:10 +00:00
LIB_DEPENDS= plplotd.11:${PORTSDIR}/math/plplot \
2004-03-12 02:58:25 +00:00
fftw.2:${PORTSDIR}/math/fftw \
2007-06-29 05:46:43 +00:00
gsl.10:${PORTSDIR}/math/gsl
RUN_DEPENDS= ${BUILD_DEPENDS}
2004-03-12 02:58:25 +00:00
USE_GL= yes
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
2004-03-12 02:58:25 +00: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 17:22:37 +00:00
.if ${ARCH} == "alpha"
BROKEN= test script t/flexraw.t fails all 26 tests
2004-03-12 02:58:25 +00: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 02:58:25 +00:00
test:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} make test
# autogen plist
post-install:
@(cd ${WRKSRC}/blib/man3 ; \
${FIND} *.3 | ${SED} "s,^,${MAN3PREFIX:S,^${PREFIX}/,,}/man/man3/," \
2004-03-12 02:58:25 +00: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 02:58:25 +00:00
${FIND} ${SITE_PERL}/${PERL_ARCH}/PDL* -type d | ${SORT} -r | \
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST} ; \
2004-03-12 02:58:25 +00:00
${FIND} ${SITE_PERL}/${PERL_ARCH}/auto/PDL -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} ; \
2004-03-12 02:58:25 +00:00
${FIND} ${SITE_PERL}/${PERL_ARCH}/auto/PDL -type d | ${SORT} -r | \
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST})
2004-03-12 02:58:25 +00:00
.include <bsd.port.post.mk>