From owner-svn-ports-head@freebsd.org Mon Mar 4 08:47:04 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 189101507C81; Mon, 4 Mar 2019 08:47:04 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7BF778E0EA; Mon, 4 Mar 2019 08:47:03 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6D533194A; Mon, 4 Mar 2019 08:47:03 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x248l3Ul043726; Mon, 4 Mar 2019 08:47:03 GMT (envelope-from gahr@FreeBSD.org) Received: (from gahr@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x248l3xr043725; Mon, 4 Mar 2019 08:47:03 GMT (envelope-from gahr@FreeBSD.org) Message-Id: <201903040847.x248l3xr043725@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gahr set sender to gahr@FreeBSD.org using -f From: Pietro Cerutti Date: Mon, 4 Mar 2019 08:47:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r494564 - head/math/libtommath X-SVN-Group: ports-head X-SVN-Commit-Author: gahr X-SVN-Commit-Paths: head/math/libtommath X-SVN-Commit-Revision: 494564 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7BF778E0EA X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.947,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Mar 2019 08:47:04 -0000 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