aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--astro/cfitsio/Makefile12
-rw-r--r--astro/cfitsio/distinfo4
2 files changed, 10 insertions, 6 deletions
diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile
index bf12c1ae14f5..e57434ea2a0d 100644
--- a/astro/cfitsio/Makefile
+++ b/astro/cfitsio/Makefile
@@ -6,16 +6,18 @@
#
PORTNAME= cfitsio
-PORTVERSION= 3.250
+PORTVERSION= 3.300
CATEGORIES= astro
MASTER_SITES= ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/ \
ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/oldvers/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
-MAINTAINER= wenheping@gmail.com
+MAINTAINER= ports@FreeBSD.org
COMMENT= Library for reading and writing files in FITS data format
-LIB_DEPENDS= f2c.2:${PORTSDIR}/lang/f2c
+LIB_DEPENDS= f2c:${PORTSDIR}/lang/f2c
+
+OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/${PORTNAME}
@@ -25,6 +27,8 @@ CONFIGURE_ARGS= ac_cv_prog_FC="f2c"
ALL_TARGET= shared
USE_LDCONFIG= yes
+.include <bsd.port.options.mk>
+
post-patch:
@${GREP} -lR "<malloc.\h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|<malloc\.h>|<stdlib.h>|g'
@@ -41,7 +45,7 @@ do-install:
.for f in cfitsio.pc
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/libdata/pkgconfig
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.doc ${DOCSDIR}
.endif
diff --git a/astro/cfitsio/distinfo b/astro/cfitsio/distinfo
index f0fe60767b36..9c42a82108e1 100644
--- a/astro/cfitsio/distinfo
+++ b/astro/cfitsio/distinfo
@@ -1,2 +1,2 @@
-SHA256 (cfitsio3250.tar.gz) = 2c9f6f34e539306778b114cdd72cf7b52a2229591cf661778f84a8a7eac95154
-SIZE (cfitsio3250.tar.gz) = 2606242
+SHA256 (cfitsio3300.tar.gz) = 7a2b5401c184297df1e44a4f4de564feff74d64d038918213526aa454db03f3e
+SIZE (cfitsio3300.tar.gz) = 4660623