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
|
2013-11-25 12:33:17 +01:00
|
|
|
PORTVERSION= 3.350
|
2014-02-05 21:02:27 +01:00
|
|
|
PORTREVISION= 1
|
2004-04-30 17:33:40 +02:00
|
|
|
CATEGORIES= astro
|
2013-03-10 09:26:20 +01:00
|
|
|
MASTER_SITES= http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ \
|
|
|
|
http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/oldvers/ \
|
|
|
|
ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/ \
|
|
|
|
ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/oldvers/ \
|
|
|
|
LOCAL/sunpoet
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:R}${PORTVERSION:E}
|
|
|
|
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2004-04-30 17:33:40 +02:00
|
|
|
COMMENT= Library for reading and writing files in FITS data format
|
|
|
|
|
2012-12-01 01:00:26 +01:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2013-11-25 12:33:17 +01:00
|
|
|
LIB_DEPENDS= libf2c.so:${PORTSDIR}/lang/f2c
|
2012-07-11 09:42:19 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
2008-07-05 00:29:13 +02:00
|
|
|
|
2005-09-29 12:31:48 +02:00
|
|
|
ALL_TARGET= shared
|
2013-03-10 09:26:20 +01:00
|
|
|
CONFIGURE_ARGS= ac_cv_prog_FC="f2c"
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
2013-04-23 08:26:31 +02:00
|
|
|
USES= pkgconfig
|
2013-04-23 16:40:08 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2004-08-22 02:54:10 +02:00
|
|
|
|
2014-02-05 21:02:27 +01:00
|
|
|
PLIST_SUB= SHLIB_VER=${SHLIB_VER}
|
2013-03-10 09:26:20 +01:00
|
|
|
PORTDOCS= *
|
2012-07-11 09:42:19 +02:00
|
|
|
|
2014-02-05 21:02:27 +01:00
|
|
|
SHLIB_VER= 1.${PORTVERSION:S/0$//}
|
|
|
|
|
2004-08-22 02:54:10 +02:00
|
|
|
post-patch:
|
2013-03-10 09:26:20 +01:00
|
|
|
@${MV} ${WRKSRC}/zlib.h ${WRKSRC}/zlib.h.dist
|
2013-11-25 19:14:33 +01:00
|
|
|
@${GREP} -lR "<malloc.\h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g'
|
2004-04-30 17:33:40 +02: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/
|
2014-02-05 21:02:27 +01:00
|
|
|
cd ${WRKSRC}/ && ${INSTALL_LIB} libcfitsio.so.${SHLIB_VER} ${STAGEDIR}${PREFIX}/lib/
|
2013-11-25 19:14:33 +01:00
|
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
|
2014-02-05 21:02:27 +01:00
|
|
|
${LN} -fs libcfitsio.so.${SHLIB_VER} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.1
|
|
|
|
${LN} -fs libcfitsio.so.1 ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
|
2013-11-25 19:14:33 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.doc ${STAGEDIR}${DOCSDIR}/
|
2004-04-30 17:33:40 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|