From 8fc7e408f02718b5af41d01a9983b49887ee0d2e Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Wed, 5 Feb 2014 20:02:27 +0000 Subject: - Fix shared library installation - Bump PORTREVISION for package change - While I'm here, convert to new LIB_DEPENDS format PR: ports/185951 Submitted by: Florian Degner --- astro/cfitsio/Makefile | 10 +++++++--- astro/cfitsio/pkg-plist | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'astro') 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 "" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's|||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 -- cgit v1.2.3