Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2015 08:27:46 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r387917 - in head: comms/nec2c comms/xnec2c math/ccmath
Message-ID:  <201505300827.t4U8RkRX039115@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat May 30 08:27:46 2015
New Revision: 387917
URL: https://svnweb.freebsd.org/changeset/ports/387917

Log:
  Create at least a bit more proper libraries:
  - run ranlib on the static library
  - give a soname to the shared library
  - make the real file the the library with a version in the name
  - make the .so the symlink
  
  Bump portrevision for the ports using the library

Modified:
  head/comms/nec2c/Makefile
  head/comms/xnec2c/Makefile
  head/math/ccmath/Makefile

Modified: head/comms/nec2c/Makefile
==============================================================================
--- head/comms/nec2c/Makefile	Sat May 30 08:15:27 2015	(r387916)
+++ head/comms/nec2c/Makefile	Sat May 30 08:27:46 2015	(r387917)
@@ -3,7 +3,7 @@
 
 PORTNAME=	nec2c
 PORTVERSION=	.9
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	comms hamradio
 MASTER_SITES=	http://nec-archives.pa3kj.com/ \
 		LOCAL/db

Modified: head/comms/xnec2c/Makefile
==============================================================================
--- head/comms/xnec2c/Makefile	Sat May 30 08:15:27 2015	(r387916)
+++ head/comms/xnec2c/Makefile	Sat May 30 08:27:46 2015	(r387917)
@@ -3,6 +3,7 @@
 
 PORTNAME=	xnec2c
 PORTVERSION=	3.3
+PORTEVISION=	1
 CATEGORIES=	comms hamradio
 MASTER_SITES=	http://www.qsl.net/5b4az/pkg/nec2/xnec2c/ \
 		LOCAL/shurd

Modified: head/math/ccmath/Makefile
==============================================================================
--- head/math/ccmath/Makefile	Sat May 30 08:15:27 2015	(r387916)
+++ head/math/ccmath/Makefile	Sat May 30 08:27:46 2015	(r387917)
@@ -3,7 +3,7 @@
 
 PORTNAME=	ccmath
 PORTVERSION=	2.2.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	math
 MASTER_SITES=	SUNSITE/libs
 
@@ -38,13 +38,16 @@ do-build:
 .endfor
 	(cd ${WRKSRC}/matrix; ${CC} ${COPT} -c qrb*.c)
 	${MV} ${WRKSRC}/matrix/*.o ${WRKSRC}/tmp
-	(cd ${WRKSRC}/tmp; ${AR} r libccm.a *.o; ${CC} -shared -o libccm.so *.o)
+	(cd ${WRKSRC}/tmp; \
+		${AR} r libccm.a *.o; \
+		${RANLIB} libccm.a; \
+		${CC} -shared -Wl,-soname=libccm.so.1 -o libccm.so.1 *.o)
 
 do-install:
 	@${INSTALL_DATA} ${WRKSRC}/ccmath.h ${STAGEDIR}${PREFIX}/include
 	@${INSTALL_DATA} ${WRKSRC}/tmp/libccm.a ${STAGEDIR}${PREFIX}/lib
-	@${INSTALL_PROGRAM} ${WRKSRC}/tmp/libccm.so ${STAGEDIR}${PREFIX}/lib
-	@${LN} -s libccm.so ${STAGEDIR}${PREFIX}/lib/libccm.so.1
+	@${INSTALL_LIB} ${WRKSRC}/tmp/libccm.so.1 ${STAGEDIR}${PREFIX}/lib
+	@${LN} -s libccm.so.1 ${STAGEDIR}${PREFIX}/lib/libccm.so
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ccmath
 	@${INSTALL_DATA} ${WRKSRC}/manual/* ${STAGEDIR}${PREFIX}/share/doc/ccmath
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505300827.t4U8RkRX039115>