aboutsummaryrefslogtreecommitdiffstats
path: root/astro/cfitsio/Makefile
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-05-04 23:37:11 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-05-04 23:37:11 +0800
commit050baa9c8dccb21e8b42f03fcf07cdfd13f59bfa (patch)
treeaa546b0106c6bf9c6bd2b24f399070ec912e5929 /astro/cfitsio/Makefile
parent21e052aa99294940ecbf111c1ecdc3cd0ff2c583 (diff)
downloadfreebsd-ports-gnome-050baa9c8dccb21e8b42f03fcf07cdfd13f59bfa.tar.gz
freebsd-ports-gnome-050baa9c8dccb21e8b42f03fcf07cdfd13f59bfa.tar.zst
freebsd-ports-gnome-050baa9c8dccb21e8b42f03fcf07cdfd13f59bfa.zip
- Update to 3.360
- Build and install static library - Bump PORTREVISION for astro/cfitsio shlib change Changes: http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/docs/changes.txt
Diffstat (limited to 'astro/cfitsio/Makefile')
-rw-r--r--astro/cfitsio/Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile
index 578fb217d685..cae05751d050 100644
--- a/astro/cfitsio/Makefile
+++ b/astro/cfitsio/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= cfitsio
-PORTVERSION= 3.350
-PORTREVISION= 1
+PORTVERSION= 3.360
CATEGORIES= astro
MASTER_SITES= http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ \
http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/oldvers/ \
@@ -21,29 +20,32 @@ LIB_DEPENDS= libf2c.so:${PORTSDIR}/lang/f2c
OPTIONS_DEFINE= DOCS
-ALL_TARGET= shared
-CONFIGURE_ARGS= ac_cv_prog_FC="f2c"
+ALL_TARGET= libcfitsio.a shared
+CFLAGS+= -I${INCLUDEDIR}
+CONFIGURE_ARGS= ZLIB_SOURCES="" ac_cv_prog_FC=f2c
GNU_CONFIGURE= yes
+LDFLAGS+= -L${LIBDIR} -lz
USE_LDCONFIG= yes
USES= pkgconfig
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= SHLIB_VER=${SHLIB_VER}
+PLIST_SUB= SHLIB_MAJOR_VER=${SHLIB_MAJOR_VER} \
+ SHLIB_MINOR_VER=${SHLIB_MINOR_VER}
PORTDOCS= *
-SHLIB_VER= 1.${PORTVERSION:S/0$//}
+SHLIB_MAJOR_VER=2
+SHLIB_MINOR_VER=${PORTVERSION:S/0$//}
post-patch:
- @${MV} ${WRKSRC}/zlib.h ${WRKSRC}/zlib.h.dist
- @${GREP} -lR "<malloc.\h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g'
+ @${REINPLACE_CMD} -e 's|$${ZLIB_SOURCES[:=a-z\.]*}||' ${WRKSRC}/Makefile.in
do-install:
cd ${WRKSRC}/ && ${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${STAGEDIR}${PREFIX}/include/
- cd ${WRKSRC}/ && ${INSTALL_LIB} libcfitsio.so.${SHLIB_VER} ${STAGEDIR}${PREFIX}/lib/
+ cd ${WRKSRC}/ && ${INSTALL_LIB} libcfitsio.a libcfitsio.so.${SHLIB_MAJOR_VER}.${SHLIB_MINOR_VER} ${STAGEDIR}${PREFIX}/lib/
cd ${WRKSRC}/ && ${INSTALL_DATA} cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
- ${LN} -fs libcfitsio.so.${SHLIB_VER} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.1
- ${LN} -fs libcfitsio.so.1 ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
+ ${LN} -fs libcfitsio.so.${SHLIB_MAJOR_VER}.${SHLIB_MINOR_VER} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.${SHLIB_MAJOR_VER}
+ ${LN} -fs libcfitsio.so.${SHLIB_MAJOR_VER} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
${MKDIR} ${STAGEDIR}${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/*.doc ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.doc ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>