aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-08-22 08:54:10 +0800
committerkrion <krion@FreeBSD.org>2004-08-22 08:54:10 +0800
commitbe5869a5884cc78afa918f092cfdde48cb419622 (patch)
tree4dfe9067b6fb3397a4182376c476f5c1c542dc94 /astro
parent09783f363131524408e459330a1bc385504c33fe (diff)
downloadfreebsd-ports-gnome-be5869a5884cc78afa918f092cfdde48cb419622.tar.gz
freebsd-ports-gnome-be5869a5884cc78afa918f092cfdde48cb419622.tar.zst
freebsd-ports-gnome-be5869a5884cc78afa918f092cfdde48cb419622.zip
Update to version 2.500
PR: ports/70781 Submitted by: Ports Fury
Diffstat (limited to 'astro')
-rw-r--r--astro/cfitsio/Makefile28
-rw-r--r--astro/cfitsio/distinfo4
2 files changed, 22 insertions, 10 deletions
diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile
index bedd5119fdee..0734e44f90de 100644
--- a/astro/cfitsio/Makefile
+++ b/astro/cfitsio/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= cfitsio
-PORTVERSION= 2.490
+PORTVERSION= 2.500
CATEGORIES= astro
MASTER_SITES= ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
@@ -15,17 +15,29 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Library for reading and writing files in FITS data format
WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
-ALL_TARGET= shared
+ALL_TARGET= stand_alone shared
+
+post-patch:
+ @${GREP} -lR "<malloc.\h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|<malloc\.h>|<stdlib.h>|g'
+ @${REINPLACE_CMD} -e 's|="\.so"|=".so.0"|g' ${WRKSRC}/configure
-post-install:
- ${MV} ${PREFIX}/lib/libcfitsio.so ${PREFIX}/lib/libcfitsio.so.0
- ${LN} -s ${PREFIX}/lib/libcfitsio.so.0 ${PREFIX}/lib/libcfitsio.so
-.ifndef(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${CP} -R ${WRKSRC}/*.doc ${DOCSDIR}
+do-install:
+.for file in drvrsmem.h fitsio.h fitsio2.h longnam.h
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include
+.endfor
+.for file in libcfitsio.a libcfitsio.so.0
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/lib
+.endfor
+ @${LN} -sf libcfitsio.so.0 ${PREFIX}/lib/libcfitsio.so
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.doc ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/astro/cfitsio/distinfo b/astro/cfitsio/distinfo
index 8d325130b9af..77e6d4e6626b 100644
--- a/astro/cfitsio/distinfo
+++ b/astro/cfitsio/distinfo
@@ -1,2 +1,2 @@
-MD5 (cfitsio2490.tar.gz) = 271b07dcfe3e928e5138d64672eb77d9
-SIZE (cfitsio2490.tar.gz) = 2032914
+MD5 (cfitsio2500.tar.gz) = 5447664f2948de94a180f447c2b15a5f
+SIZE (cfitsio2500.tar.gz) = 2050459