2012-12-01 01:00:26 +01:00
|
|
|
# Created by: Markus Brueffer <markus@FreeBSD.org>
|
2004-04-30 17:33:40 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cfitsio
|
2019-07-27 13:53:22 +02:00
|
|
|
PORTVERSION= 3.470
|
2019-09-01 00:00:03 +02:00
|
|
|
PORTREVISION= 1
|
2004-04-30 17:33:40 +02:00
|
|
|
CATEGORIES= astro
|
2018-03-03 17:29:40 +01:00
|
|
|
MASTER_SITES= https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ \
|
|
|
|
https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/oldvers/ \
|
2013-03-10 09:26:20 +01:00
|
|
|
ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/ \
|
|
|
|
ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/oldvers/ \
|
|
|
|
LOCAL/sunpoet
|
2019-07-27 13:53:22 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S|0$||}
|
2013-03-10 09:26:20 +01:00
|
|
|
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2004-04-30 17:33:40 +02:00
|
|
|
COMMENT= Library for reading and writing files in FITS data format
|
|
|
|
|
2018-07-23 06:51:11 +02:00
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
|
|
libf2c.so:lang/f2c
|
2012-07-11 09:42:19 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
2008-07-05 00:29:13 +02:00
|
|
|
|
2019-07-27 13:53:22 +02:00
|
|
|
USES= localbase pkgconfig
|
|
|
|
|
2014-05-04 17:37:11 +02:00
|
|
|
ALL_TARGET= libcfitsio.a shared
|
2014-05-08 05:03:38 +02:00
|
|
|
CONFIGURE_ARGS= ac_cv_prog_FC=f2c
|
2013-03-10 09:26:20 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
2004-08-22 02:54:10 +02:00
|
|
|
|
2016-11-21 00:54:22 +01:00
|
|
|
PLIST_SUB= SHLIB_MAJOR=${SHLIB_MAJOR} \
|
|
|
|
SHLIB_MINOR=${SHLIB_MINOR}
|
2012-07-11 09:42:19 +02:00
|
|
|
|
2019-07-27 13:53:22 +02:00
|
|
|
SHLIB_MAJOR= 8
|
2016-11-21 00:54:22 +01:00
|
|
|
SHLIB_MINOR= ${PORTVERSION:S|0$||}
|
2014-02-05 21:02:27 +01:00
|
|
|
|
2016-11-19 18:02:26 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/*.[chl] ${WRKSRC}/zlib/*.h
|
2016-11-14 06:03:05 +01:00
|
|
|
|
2004-08-22 02:54:10 +02:00
|
|
|
do-install:
|
2013-11-25 19:14:33 +01:00
|
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${STAGEDIR}${PREFIX}/include/
|
2016-11-21 00:54:22 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/libcfitsio.a ${STAGEDIR}${PREFIX}/lib/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/libcfitsio.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
|
|
|
|
${LN} -fs libcfitsio.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.${SHLIB_MAJOR}
|
|
|
|
${LN} -fs libcfitsio.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
|
2015-12-06 18:51:38 +01:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2013-11-25 19:14:33 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
2014-05-04 17:37:11 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.doc ${STAGEDIR}${DOCSDIR}/
|
2004-04-30 17:33:40 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|