diff options
author | sperber <sperber@FreeBSD.org> | 2012-12-01 08:00:26 +0800 |
---|---|---|
committer | sperber <sperber@FreeBSD.org> | 2012-12-01 08:00:26 +0800 |
commit | 4c010744f97afc39c126ae2cd40ed176031faa2f (patch) | |
tree | ed47c4753ae50090ec22d86adeb33f38e987cfca /astro | |
parent | fdbdae19bb1ed942bce9fe0b2c9ddd3737fd0a08 (diff) | |
download | freebsd-ports-gnome-4c010744f97afc39c126ae2cd40ed176031faa2f.tar.gz freebsd-ports-gnome-4c010744f97afc39c126ae2cd40ed176031faa2f.tar.zst freebsd-ports-gnome-4c010744f97afc39c126ae2cd40ed176031faa2f.zip |
- Update to version 3.310
- Update MASTER_SITES
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Trim Makefile header
PR: ports/171954
Submitted by: KATO Tsuguru <tkato432 _at_ yahoo.com>
Approved by: beat (mentor)
Feature safe: yes
Diffstat (limited to 'astro')
-rw-r--r-- | astro/cfitsio/Makefile | 22 | ||||
-rw-r--r-- | astro/cfitsio/distinfo | 4 | ||||
-rw-r--r-- | astro/cfitsio/files/patch-Makefile.in | 22 | ||||
-rw-r--r-- | astro/cfitsio/files/patch-fpackutil.c | 10 |
4 files changed, 47 insertions, 11 deletions
diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile index d52ee26c409a..7d424018052c 100644 --- a/astro/cfitsio/Makefile +++ b/astro/cfitsio/Makefile @@ -1,34 +1,38 @@ -# New ports collection makefile for: cfitsio -# Date created: Fri Apr 30 16:49:36 CEST 2004 -# Whom: Markus Brueffer <markus@FreeBSD.org> -# +# Created by: Markus Brueffer <markus@FreeBSD.org> # $FreeBSD$ -# PORTNAME= cfitsio -PORTVERSION= 3.300 +PORTVERSION= 3.310 CATEGORIES= astro -MASTER_SITES= ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/ \ - ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/oldvers/ +MASTER_SITES= ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/%SUBDIR%/ \ + http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/%SUBDIR%/ +MASTER_SITE_SUBDIR= . oldvers DISTNAME= ${PORTNAME}${PORTVERSION:S/.//} MAINTAINER= ports@FreeBSD.org COMMENT= Library for reading and writing files in FITS data format +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/License.txt + LIB_DEPENDS= f2c:${PORTSDIR}/lang/f2c OPTIONS_DEFINE= DOCS WRKSRC= ${WRKDIR}/${PORTNAME} +USE_PKGCONFIG= build GNU_CONFIGURE= yes CONFIGURE_ARGS= ac_cv_prog_FC="f2c" ALL_TARGET= shared USE_LDCONFIG= yes -USE_PKGCONFIG= yes +MAKE_JOBS_SAFE= yes .include <bsd.port.options.mk> +post-extract: + @cd ${WRKSRC} && ${MV} zlib.h zlib.h.dist + post-patch: @${GREP} -lR "<malloc.\h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \ 's|<malloc\.h>|<stdlib.h>|g' diff --git a/astro/cfitsio/distinfo b/astro/cfitsio/distinfo index 9c42a82108e1..bf08ae1850b6 100644 --- a/astro/cfitsio/distinfo +++ b/astro/cfitsio/distinfo @@ -1,2 +1,2 @@ -SHA256 (cfitsio3300.tar.gz) = 7a2b5401c184297df1e44a4f4de564feff74d64d038918213526aa454db03f3e -SIZE (cfitsio3300.tar.gz) = 4660623 +SHA256 (cfitsio3310.tar.gz) = e8a70bca202caa4773c4a50288622ef5398752de5a5e8fcfc232859f928ff5d9 +SIZE (cfitsio3310.tar.gz) = 4664559 diff --git a/astro/cfitsio/files/patch-Makefile.in b/astro/cfitsio/files/patch-Makefile.in new file mode 100644 index 000000000000..e885e5fe53da --- /dev/null +++ b/astro/cfitsio/files/patch-Makefile.in @@ -0,0 +1,22 @@ +--- Makefile.in.orig 2012-07-18 05:38:34.000000000 +0900 ++++ Makefile.in 2012-08-10 01:18:07.000000000 +0900 +@@ -52,9 +52,7 @@ + putcolj.c putcolk.c putcoluk.c putcoll.c putcols.c putcolsb.c \ + putcolu.c putcolui.c putcoluj.c putkey.c region.c scalnull.c \ + swapproc.c wcssub.c wcsutil.c imcompress.c quantize.c ricecomp.c \ +- pliocomp.c fits_hcompress.c fits_hdecompress.c zuncompress.c zcompress.c \ +- adler32.c crc32.c inffast.c inftrees.c trees.c zutil.c \ +- deflate.c infback.c inflate.c uncompr.c \ ++ pliocomp.c fits_hcompress.c fits_hdecompress.c zuncompress.c zcompress.c + + SOURCES = ${CORE_SOURCES} @F77_WRAPPERS@ + +@@ -87,7 +85,7 @@ + shared: libcfitsio${SHLIB_SUFFIX} + + libcfitsio${SHLIB_SUFFIX}: ${OBJECTS} +- ${SHLIB_LD} ${LDFLAGS} -o $@ ${OBJECTS} -lm ${LIBS} ++ ${SHLIB_LD} ${LDFLAGS} -o $@ ${OBJECTS} -lm -lz ${LIBS} + + install: libcfitsio.a $(INSTALL_DIRS) + @if [ -f libcfitsio.a ]; then \ diff --git a/astro/cfitsio/files/patch-fpackutil.c b/astro/cfitsio/files/patch-fpackutil.c new file mode 100644 index 000000000000..f57cb920b039 --- /dev/null +++ b/astro/cfitsio/files/patch-fpackutil.c @@ -0,0 +1,10 @@ +--- fpackutil.c.orig 2012-07-18 05:36:42.000000000 +0900 ++++ fpackutil.c 2012-08-10 01:28:12.000000000 +0900 +@@ -5,6 +5,7 @@ + #include <time.h> + #include <float.h> + #include <signal.h> ++#include <ctype.h> + + /* #include "bzlib.h" only for experimental purposes */ + |