Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Mar 2019 08:47:03 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r494564 - head/math/libtommath
Message-ID:  <201903040847.x248l3xr043725@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Mon Mar  4 08:47:02 2019
New Revision: 494564
URL: https://svnweb.freebsd.org/changeset/ports/494564

Log:
  math/libtommath: build shared library by default
  
  Suggested by:	cy

Modified:
  head/math/libtommath/Makefile

Modified: head/math/libtommath/Makefile
==============================================================================
--- head/math/libtommath/Makefile	Mon Mar  4 08:32:43 2019	(r494563)
+++ head/math/libtommath/Makefile	Mon Mar  4 08:47:02 2019	(r494564)
@@ -2,7 +2,7 @@
 
 PORTNAME=	libtommath
 DISTVERSION=	1.1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	math
 MASTER_SITES=	https://github.com/libtom/libtommath/releases/download/v${DISTVERSION}/
 DISTNAME=	ltm-${DISTVERSION}
@@ -13,9 +13,12 @@ COMMENT=	Comprehensive, modular, and portable mathemat
 LICENSE=	UNLICENSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		gmake tar:xz
+USES=		gmake libtool:build tar:xz
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
+USE_LDCONFIG=	yes
+
+MAKEFILE=	makefile.shared
 ALL_TARGET=	default
 CFLAGS+=	-fPIC
 PORTDOCS=	*
@@ -23,20 +26,14 @@ PORTDOCS=	*
 PLIST_FILES=	include/tommath.h \
 		include/tommath_class.h \
 		include/tommath_superclass.h \
-		lib/libtommath.a
+		lib/libtommath.a \
+		lib/libtommath.so \
+		lib/libtommath.so.${DISTVERSION:R:R} \
+		lib/libtommath.so.${DISTVERSION} \
+		libdata/pkgconfig/libtommath.pc
 
-OPTIONS_DEFINE=	DOCS SHARED
+OPTIONS_DEFINE=	DOCS
 
-SHARED_DESC=		Build shared library
-SHARED_USES=		libtool:build
-SHARED_USE=		LDCONFIG=yes
-SHARED_PLIST_FILES=	lib/libtommath.so \
-			lib/libtommath.so.${DISTVERSION:R:R} \
-			lib/libtommath.so.${DISTVERSION} \
-			libdata/pkgconfig/libtommath.pc
-SHARED_VARS=		MAKEFILE=makefile.shared
-SHARED_VARS_OFF=	MAKEFILE=makefile
-
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/bn.pdf ${STAGEDIR}${DOCSDIR}
@@ -48,7 +45,7 @@ post-install-SHARED-on:
 
 do-test:
 	(cd ${WRKSRC}; \
-	 ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f ${MAKEFILE} mtest/mtest test; \
+	 ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f makefile mtest/mtest test; \
 	 ./mtest/mtest | ./test)
 
 .include <bsd.port.mk>



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