From nobody Sat Nov 18 09:27:16 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SXT1w45hwz50qYS; Sat, 18 Nov 2023 09:27:16 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SXT1w2rqmz3chF; Sat, 18 Nov 2023 09:27:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700299636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eVJ3gdGQQHVFbA60lv3dw5rBkd1UPlaxi9Ap6bu8Qik=; b=wkdtceSg4RB0Gh5OKdQEbL0og2Vcur4vzXSPTtFTXQKGb94OUFyAZljJLFk5FiwtUsL3V5 P46SfYzgqbi0EtHFgskbHysyp0QsaB3TD9M5/BKMD4yT5Jj3HC5k/zDbpxDbYZJqNdxXrW +Smdq303nMLAgWmAa18M5vEzfznUmnLolU6uDTcxd18+7r8JiHIc0cAibiJ8FUhDs5rEOq jaauHTHKpE0Itl834iHyQd1OKqjbGJwiKIXFayOMLyGOzHMgpN0AWe9egHApeU9cWBp18h rIHJyDPr4hMUWhBEGGUEuPd2Obrant9F2CpYLFuI7QupNvlzQCEQXxRo/KuF4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700299636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eVJ3gdGQQHVFbA60lv3dw5rBkd1UPlaxi9Ap6bu8Qik=; b=yLoKqOUp6uBMwj0HIwWgww4bfWASxlGq3clgRWOW06uJbPXuQbcwThInNIlQTAQek4Tk3y WVAEfuHqBkjwROJQFN3tmPGsI2ggN+tIu8DhWYE1yj4YswT8cgD5U+aAyWH4qzxHK3oDAF 7swRaWBRExVYmP4zJWqrAam/xgV0azr8pET8xumv1dzloI0Rho1M3s5FroCVekA2Pc3IPI y3rk5WYYIu5P46HCwQtPTwcfVasktad2G0PCpyF90z+Vtlqvs+FWUe6fvcfecqTUHHNiSl cJqoCpWcZLAdAq19syjUpmlg593cdMlVbX9Hfj2jQkyrmHKmU1F2ZCbiHRh/1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700299636; a=rsa-sha256; cv=none; b=m1ivCAUSUH9aMJ1VHbsbMST+cQHgnpvFWw7IUMsZFJrJ5+Ht4CcGcEXHtc2lFYIYej06NT nuFsbrJt1edzvQyDDVUnpWBv1SyWrVywpQKYuBD84Gd5FOiY8q+YbOPwKOATfiXGhEq7C3 2dVQy7RSxeuVzLG7T88oI9UQl+Hz7cjblka212gY+f/1DqA7xQODB7WTxHWqmJ6TXUecaC ZSD5pDcUx+Im0DqKcjDsHoDjdAQmou4o4COtueK7yUEZ4zz6NXGRUxotkNQe91UaNa9g53 v0VMTjE2QqAn9Pc1e9YenEagSp31mCgU58qNFJWKlsh9d6JCyQY+52HAIAyEXg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SXT1w1cSVz6b5; Sat, 18 Nov 2023 09:27:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AI9RG9O014845; Sat, 18 Nov 2023 09:27:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AI9RGmw014842; Sat, 18 Nov 2023 09:27:16 GMT (envelope-from git) Date: Sat, 18 Nov 2023 09:27:16 GMT Message-Id: <202311180927.3AI9RGmw014842@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Daniel Engberg Subject: git: 0e851e515db8 - main - math/dsfmt: Improve port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: diizzy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0e851e515db85671a196c382a2cbfc0e3f32ec14 Auto-Submitted: auto-generated The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=0e851e515db85671a196c382a2cbfc0e3f32ec14 commit 0e851e515db85671a196c382a2cbfc0e3f32ec14 Author: Daniel Engberg AuthorDate: 2023-11-17 19:30:06 +0000 Commit: Daniel Engberg CommitDate: 2023-11-18 09:24:49 +0000 math/dsfmt: Improve port * Rearrange Makefile to follow Porters Handbook more closely * Use USE_CSTD helper * Adjust CFLAGS * Use OPTIMIZED_CFLAGS option PR: 275042 Reviewed by: thierry (maintainer) --- math/dsfmt/Makefile | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/math/dsfmt/Makefile b/math/dsfmt/Makefile index 6db9b98c10ef..63204795b35e 100644 --- a/math/dsfmt/Makefile +++ b/math/dsfmt/Makefile @@ -1,6 +1,7 @@ PORTNAME= dSFMT -PORTVERSION= 2.2.5 DISTVERSIONPREFIX= v +DISTVERSION= 2.2.5 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= thierry@FreeBSD.org @@ -10,43 +11,44 @@ WWW= http://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/SFMT/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= compiler - USE_GITHUB= yes GH_ACCOUNT= MersenneTwister-Lab +USE_LDCONFIG= yes -CSTD= c99 -CFLAGS+= -DDSFMT_MEXP=19937 -fPIC -DDSFMT_SHLIB ${OPTCFLAGS} \ - -finline-functions -fomit-frame-pointer -fno-strict-aliasing \ - -Wall -shared -OPTCFLAGS?= -O3 -CFLAGS_amd64= -msse2 -DHAVE_SSE2 +USE_CSTD= c99 +CFLAGS+= -DNDEBUG -DDSFMT_MEXP=19937 -DDSFMT_DO_NOT_USE_OLD_NAMES \ + -fPIC -DDSFMT_SHLIB -finline-functions -fomit-frame-pointer \ + -fno-strict-aliasing -Wall -shared +CFLAGS_amd64= -DHAVE_SSE2 LDFLAGS+= -Wl,-soname,libdSFMT.so.0 -USE_LDCONFIG= yes -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS +OPTIONS_DEFAULT= OPTIMIZED_CFLAGS + +OPTIMIZED_CFLAGS_CFLAGS= -O3 .include .if ${ARCH} == amd64 TEST_TARGET= sse2-check +MAKE_FLAGS= SSE2FLAGS="-DHAVE_SSE2" -f .else TEST_TARGET= std-check .endif do-build: - (cd ${WRKSRC} && \ - ${CC} ${CFLAGS} ${LDFLAGS} dSFMT.c -o libdSFMT.so.0) + (cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} dSFMT.c -o libdSFMT.so.0) do-install: ${INSTALL_DATA} ${WRKSRC}/dSFMT.h ${STAGEDIR}${PREFIX}/include/ ${INSTALL_LIB} ${WRKSRC}/libdSFMT.so.0 ${STAGEDIR}${PREFIX}/lib - (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s libdSFMT.so.0 libdSFMT.so) + ${RLN} ${STAGEDIR}${PREFIX}/lib/libdSFMT.so.0 \ + ${STAGEDIR}${PREFIX}/lib/libdSFMT.so do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR}/html ${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/html + (cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/html) do-test: ${REINPLACE_CMD} -e '/^CC =/d;/^CCFLAGS =/d' ${WRKSRC}/Makefile