Date: Wed, 5 Feb 2014 20:02:27 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342829 - head/astro/cfitsio Message-ID: <201402052002.s15K2RsF017495@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Wed Feb 5 20:02:27 2014 New Revision: 342829 URL: http://svnweb.freebsd.org/changeset/ports/342829 QAT: https://qat.redports.org/buildarchive/r342829/ Log: - 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 <f.degner@gmx.de> Modified: head/astro/cfitsio/Makefile head/astro/cfitsio/pkg-plist Modified: head/astro/cfitsio/Makefile ============================================================================== --- head/astro/cfitsio/Makefile Wed Feb 5 19:56:17 2014 (r342828) +++ head/astro/cfitsio/Makefile Wed Feb 5 20:02:27 2014 (r342829) @@ -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}/ Modified: head/astro/cfitsio/pkg-plist ============================================================================== --- head/astro/cfitsio/pkg-plist Wed Feb 5 19:56:17 2014 (r342828) +++ head/astro/cfitsio/pkg-plist Wed Feb 5 20:02:27 2014 (r342829) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402052002.s15K2RsF017495>