aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2011-01-06 08:36:56 +0800
committerwen <wen@FreeBSD.org>2011-01-06 08:36:56 +0800
commit447d8b3b6c55fe9492bf9766f095c1a1bb626785 (patch)
treea74b900847517e0ff1f9ab6212c33f300d361f6a
parentfec04cf53d1a405d4e7e3b4f69dbfbbaf15e4801 (diff)
downloadfreebsd-ports-gnome-447d8b3b6c55fe9492bf9766f095c1a1bb626785.tar.gz
freebsd-ports-gnome-447d8b3b6c55fe9492bf9766f095c1a1bb626785.tar.zst
freebsd-ports-gnome-447d8b3b6c55fe9492bf9766f095c1a1bb626785.zip
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/
-rw-r--r--astro/Makefile1
-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
6 files changed, 65 insertions, 0 deletions
diff --git a/astro/Makefile b/astro/Makefile
index 70f74d85a53d..336ec650ef76 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -53,6 +53,7 @@
SUBDIR += p5-Astro-Catalog
SUBDIR += p5-Astro-Constants
SUBDIR += p5-Astro-DSS
+ SUBDIR += p5-Astro-FITS-CFITSIO
SUBDIR += p5-Astro-FITS-Header
SUBDIR += p5-Astro-Hipparcos
SUBDIR += p5-Astro-MoonPhase
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