diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-02-05 20:02:27 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-02-05 20:02:27 +0000 |
commit | 8fc7e408f02718b5af41d01a9983b49887ee0d2e (patch) | |
tree | 16a4bd630938760780889d6a2d79991576a20e7b /astro | |
parent | 9914ed9e2e28adb40f6c607c8bccf43f5e1bafc8 (diff) | |
download | ports-8fc7e408f02718b5af41d01a9983b49887ee0d2e.tar.gz ports-8fc7e408f02718b5af41d01a9983b49887ee0d2e.zip |
Notes
Diffstat (limited to 'astro')
-rw-r--r-- | astro/cfitsio/Makefile | 10 | ||||
-rw-r--r-- | astro/cfitsio/pkg-plist | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile index 89677a9dfb25..578fb217d685 100644 --- a/astro/cfitsio/Makefile +++ b/astro/cfitsio/Makefile @@ -3,6 +3,7 @@ PORTNAME= cfitsio PORTVERSION= 3.350 +PORTREVISION= 1 CATEGORIES= astro MASTER_SITES= http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ \ http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/oldvers/ \ @@ -27,18 +28,21 @@ USE_LDCONFIG= yes USES= pkgconfig WRKSRC= ${WRKDIR}/${PORTNAME} +PLIST_SUB= SHLIB_VER=${SHLIB_VER} PORTDOCS= * +SHLIB_VER= 1.${PORTVERSION:S/0$//} + 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 ${STAGEDIR}${PREFIX}/include/ - cd ${WRKSRC}/ && ${INSTALL_LIB} libcfitsio.so.0 ${STAGEDIR}${PREFIX}/lib/ + cd ${WRKSRC}/ && ${INSTALL_LIB} libcfitsio.so.${SHLIB_VER} ${STAGEDIR}${PREFIX}/lib/ cd ${WRKSRC}/ && ${INSTALL_DATA} cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/ - ${LN} -fs libcfitsio.so.0 ${STAGEDIR}${PREFIX}/lib/libcfitsio.so + ${LN} -fs libcfitsio.so.${SHLIB_VER} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.1 + ${LN} -fs libcfitsio.so.1 ${STAGEDIR}${PREFIX}/lib/libcfitsio.so ${MKDIR} ${STAGEDIR}${DOCSDIR}/ ${INSTALL_DATA} ${WRKSRC}/*.doc ${STAGEDIR}${DOCSDIR}/ diff --git a/astro/cfitsio/pkg-plist b/astro/cfitsio/pkg-plist index 43d9277c2da5..653cc79ec4f1 100644 --- a/astro/cfitsio/pkg-plist +++ b/astro/cfitsio/pkg-plist @@ -3,5 +3,6 @@ include/fitsio.h include/fitsio2.h include/longnam.h lib/libcfitsio.so -lib/libcfitsio.so.0 +lib/libcfitsio.so.1 +lib/libcfitsio.so.%%SHLIB_VER%% libdata/pkgconfig/cfitsio.pc |