aboutsummaryrefslogtreecommitdiff
path: root/astro/p5-Astro-FITS-CFITSIO
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2011-01-06 00:36:56 +0000
committerWen Heping <wen@FreeBSD.org>2011-01-06 00:36:56 +0000
commit821a876f05c6b0bb9c87565625afa13843d52108 (patch)
treea8bb3a9529dce7c203b6d37c05e95391f658b9b2 /astro/p5-Astro-FITS-CFITSIO
parent5d5fd5bc3acc39a9f17bafac679081d81064b4ea (diff)
downloadports-821a876f05c6b0bb9c87565625afa13843d52108.tar.gz
ports-821a876f05c6b0bb9c87565625afa13843d52108.zip
Notes
Diffstat (limited to 'astro/p5-Astro-FITS-CFITSIO')
-rw-r--r--astro/p5-Astro-FITS-CFITSIO/Makefile28
-rw-r--r--astro/p5-Astro-FITS-CFITSIO/distinfo2
-rw-r--r--astro/p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL13
-rw-r--r--astro/p5-Astro-FITS-CFITSIO/pkg-descr11
-rw-r--r--astro/p5-Astro-FITS-CFITSIO/pkg-plist10
5 files changed, 64 insertions, 0 deletions
diff --git a/astro/p5-Astro-FITS-CFITSIO/Makefile b/astro/p5-Astro-FITS-CFITSIO/Makefile
new file mode 100644
index 000000000000..d145a6463251
--- /dev/null
+++ b/astro/p5-Astro-FITS-CFITSIO/Makefile
@@ -0,0 +1,28 @@
+# Ports collection makefile for: Astro-FITS-CFITSIO
+# Date created: Jan 6, 2010
+# Whom: Wen Heping <wen@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Astro-FITS-CFITSIO
+PORTVERSION= 1.05
+CATEGORIES= astro perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= Perl extension for using the cfitsio library
+
+LIB_DEPENDS= cfitsio.0:${PORTSDIR}/astro/cfitsio
+
+PERL_CONFIGURE= yes
+
+MAN3= Astro::FITS::CFITSIO.3
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ ${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' ${WRKSRC}/Makefile.PL
+
+.include <bsd.port.post.mk>
diff --git a/astro/p5-Astro-FITS-CFITSIO/distinfo b/astro/p5-Astro-FITS-CFITSIO/distinfo
new file mode 100644
index 000000000000..a56050190217
--- /dev/null
+++ b/astro/p5-Astro-FITS-CFITSIO/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Astro-FITS-CFITSIO-1.05.tar.gz) = bbeb6fd3b17b290842a88a8179c2526abae21fa67172295385a742b51bbfab70
+SIZE (Astro-FITS-CFITSIO-1.05.tar.gz) = 194185
diff --git a/astro/p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL b/astro/p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL
new file mode 100644
index 000000000000..de24f47cb1e5
--- /dev/null
+++ b/astro/p5-Astro-FITS-CFITSIO/files/patch-Makefile.PL
@@ -0,0 +1,13 @@
+--- Makefile.PL.orig 2011-01-05 10:36:07.000000000 +0800
++++ Makefile.PL 2011-01-05 10:36:27.000000000 +0800
+@@ -8,8 +8,8 @@
+ }
+ else {
+ warn("CFITSIO environment variable not found, assuming /usr/local/cfitsio\n");
+- $inc = "-I/usr/local/cfitsio";
+- $libs = "-L/usr/local/cfitsio -lcfitsio -lm";
++ $inc = "-I/usr/local/include";
++ $libs = "-L/usr/local/lib -lcfitsio -lm";
+ }
+
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence
diff --git a/astro/p5-Astro-FITS-CFITSIO/pkg-descr b/astro/p5-Astro-FITS-CFITSIO/pkg-descr
new file mode 100644
index 000000000000..85d018ebffb4
--- /dev/null
+++ b/astro/p5-Astro-FITS-CFITSIO/pkg-descr
@@ -0,0 +1,11 @@
+Astro::FITS::CFITSIO is a perl interface to William Pence's cfitsio
+subroutine library. For more information on cfitsio, see
+http://heasarc.gsfc.nasa.gov/fitsio.
+
+This module attempts to provide a wrapper for nearly every cfitsio
+routine, while retaining as much cfitsio behavior as possible. As
+such, one should be aware that it is still somewhat low-level, in
+the sense that handing an array which is not the correct size to a
+routine like fits_write_img() may cause SIGSEGVs.
+
+WWW: http://search.cpan.org/dist/Astro-FITS-CFITSIO/
diff --git a/astro/p5-Astro-FITS-CFITSIO/pkg-plist b/astro/p5-Astro-FITS-CFITSIO/pkg-plist
new file mode 100644
index 000000000000..f082e0ef06f2
--- /dev/null
+++ b/astro/p5-Astro-FITS-CFITSIO/pkg-plist
@@ -0,0 +1,10 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/Astro/FITS/CFITSIO.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Astro/FITS/CFITSIO/.packlist
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Astro/FITS/CFITSIO/autosplit.ix
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Astro/FITS/CFITSIO/CFITSIO.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Astro/FITS/CFITSIO/CFITSIO.so
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Astro/FITS/CFITSIO
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Astro/FITS
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Astro
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Astro/FITS
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Astro