aboutsummaryrefslogtreecommitdiff
path: root/astro/cfitsio/Makefile
diff options
context:
space:
mode:
authorArmin Pirkovitsch <sperber@FreeBSD.org>2012-12-01 00:00:26 +0000
committerArmin Pirkovitsch <sperber@FreeBSD.org>2012-12-01 00:00:26 +0000
commitb88c2be1546989db53097b5c875fa0878ba3a21a (patch)
treeed47c4753ae50090ec22d86adeb33f38e987cfca /astro/cfitsio/Makefile
parente8646409cd89b348c1ce8550de3f8d563781e0a8 (diff)
downloadports-b88c2be1546989db53097b5c875fa0878ba3a21a.tar.gz
ports-b88c2be1546989db53097b5c875fa0878ba3a21a.zip
Notes
Diffstat (limited to 'astro/cfitsio/Makefile')
-rw-r--r--astro/cfitsio/Makefile22
1 files changed, 13 insertions, 9 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'