a9afa08eb6
- Remove LICENSE_FILE for well-known licenses - Use PORTDOCS - Cosmetic change - Take maintainership Changes: http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/changes.txt
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# Created by: Markus Brueffer <markus@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cfitsio
|
|
PORTVERSION= 3.330
|
|
CATEGORIES= astro
|
|
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
|
|
COMMENT= Library for reading and writing files in FITS data format
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= f2c:${PORTSDIR}/lang/f2c
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
ALL_TARGET= shared
|
|
CONFIGURE_ARGS= ac_cv_prog_FC="f2c"
|
|
GNU_CONFIGURE= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
USE_LDCONFIG= yes
|
|
USE_PKGCONFIG= build
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
PORTDOCS= *
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|="\.so"|=".so.0"|g' ${WRKSRC}/configure
|
|
@${MV} ${WRKSRC}/zlib.h ${WRKSRC}/zlib.h.dist
|
|
@${GREP} -lR "<malloc.\h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|<malloc\.h>|<stdlib.h>|g'
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/ && \
|
|
${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${PREFIX}/include/ && \
|
|
${INSTALL_LIB} libcfitsio.so.0 ${PREFIX}/lib/ && \
|
|
${INSTALL_DATA} cfitsio.pc ${PREFIX}/libdata/pkgconfig/
|
|
${LN} -fs libcfitsio.so.0 ${PREFIX}/lib/libcfitsio.so
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/*.doc ${DOCSDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|