From nobody Mon Apr 6 08:45:16 2026 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 4fq2w173vpz6Z3f1 for ; Mon, 06 Apr 2026 08:45:21 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fq2w159cPz4QgP for ; Mon, 06 Apr 2026 08:45:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775465121; 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=6A6OKnJrWzJai2Bw5qjIOttdF6V3nPz85ItktFUVb68=; b=iQck1qpDz5uWn6vTHPOIxjM9z7PjIPurF/qG2wsyxPeKrUMMSRP7FGwFW2zg0eoVqTEiAZ PZN6IbnWZK5el6rXXF0nFqVUCSyk8qbmiDvqnl76aIxRJSxYKA9bCT5uU2AAYN5GnWVhU5 Ddhb8iR6HZPcTKkmVqH16fzsqKjNesqPdK5Rjk2GdX8Mmn9iZscDGxbMAvJcD7MuvlQpLh 493eX46zr9D0pEeXplJ0sWYWibDB9/RpEli74OUw+ZrsDGN7bIx4f533O/JhFUhkdJ+TtF Y8dombvgousBLwesd4oZqBjHTlaYre99IVboFQZ/4NimIhie17BBdl2EQxd/ZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775465121; a=rsa-sha256; cv=none; b=QLpA2njUBO6IPYVelteWXhSQzI/Ki6fdvCJkkE6OMzJn1Noc4nZrZhfDfNr4k01BfjQ0Bs 8RRzHSwVq3gLkBooZHdbvZO0rhyR56XzLBPsRqUAngL8t3QHynNIZZhP1jaGR3NNptGSud hIVQBtFFKChGzQ5GY0W+FfbhMcsDDB/09cG0niSWnDkeR9Y/KQALUKIi4gJO+QY7mSCRPg HRw9YF2n2Cjt6jBbskNdxleewM+0fjUosaI5loVtVbcb3GUnfkBjToLXT91uYen4T81SCb 0gHwY9SIvBjIs6e64TW/EYI59gDOGS9V2yNS/bdc3dkaVDlIqaB8XIoaiCdWVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775465121; 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=6A6OKnJrWzJai2Bw5qjIOttdF6V3nPz85ItktFUVb68=; b=sXXLtmcFxNHhefG8v+QgrD9QppdBTHHPafT3/C1PPKvrkN33rUmNxGZVZuW9UXXHDU0nCv EM/KQJn7EcEimFo81KVpAqY/0WHgb+pQNFZigeg3x5k0oUP80zKD0wRd9Mi/hPM9numRNX ams0Xp6VT1KW7JPb0AIsEyxdsokP0D9ypsjKmYZ++1Ay4Wo1DpAprF1WL6tcgBzpKFMfRq tqAAqaStNv8lyEc0zfPhee+xTHqrtla5GYSGcoWHMwj0LIb1J3cA/I2Jg15CjJIsIlTePg wfU3CCExrUIxslfzBAFv1YUcPLKayUA9U/3yOkqR8y9b5FUIau84nmlwvQfMUw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fq2w14XR1zmct for ; Mon, 06 Apr 2026 08:45:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f6c4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 06 Apr 2026 08:45:16 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rodrigo Osorio Subject: git: dde75583b883 - main - science/fasthenry: Update build to use clang instead of gcc 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rodrigo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dde75583b883884628bf8893371c65eeec0980e6 Auto-Submitted: auto-generated Date: Mon, 06 Apr 2026 08:45:16 +0000 Message-Id: <69d3729c.3f6c4.46d4c067@gitrepo.freebsd.org> The branch main has been updated by rodrigo: URL: https://cgit.FreeBSD.org/ports/commit/?id=dde75583b883884628bf8893371c65eeec0980e6 commit dde75583b883884628bf8893371c65eeec0980e6 Author: Rodrigo Osorio AuthorDate: 2026-04-05 04:19:38 +0000 Commit: Rodrigo Osorio CommitDate: 2026-04-06 08:42:58 +0000 science/fasthenry: Update build to use clang instead of gcc Also fix CFLAG usage in Makefiles and config script. Bump PORTREVISION. Reported by: gerald --- science/fasthenry/Makefile | 13 +++++--- .../files/patch-src__mk_syscfg__mk_freebsd.inc | 37 ++++++++++++++++++++++ 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/science/fasthenry/Makefile b/science/fasthenry/Makefile index 348d94ffe0b2..80607152dfb5 100644 --- a/science/fasthenry/Makefile +++ b/science/fasthenry/Makefile @@ -1,5 +1,6 @@ PORTNAME= fasthenry DISTVERSION= 3.0wr-031424 +PORTREVISION= 1 CATEGORIES= science cad MASTER_SITES= http://www.wrcad.com/ftp/pub/ @@ -9,23 +10,27 @@ WWW= https://www.rle.mit.edu/cpg/research_codes.htm LICENSE= MIT -USES= gmake -USE_GCC= yes +USES= gmake HAS_CONFIGURE= yes CONFIGURE_SCRIPT= config +CONFIGURE_ARGS= freebsd # Fix build with clang11 CFLAGS+= -fcommon # Use malloc CFLAGS+= -DNO_SBRK -BINARY_ALIAS= gcc=gcc${GCC_DEFAULT} make=gmake +BINARY_ALIAS= make=gmake -WRKSRC= ${WRKDIR}/fasthenry-3.0wr +WRKSRC= ${WRKDIR}/fasthenry-3.0wr OPTIONS_DEFINE= DOCS EXAMPLES +post-patch: + @${REINPLACE_CMD} -Ee '/CFLAGS =/{s/=/+=/;}' \ + ${WRKSRC}/src/sparse/Makefile + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/fasthenry ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/bin/zbuf ${STAGEDIR}${PREFIX}/bin diff --git a/science/fasthenry/files/patch-src__mk_syscfg__mk_freebsd.inc b/science/fasthenry/files/patch-src__mk_syscfg__mk_freebsd.inc new file mode 100644 index 000000000000..4cda88f7ccd5 --- /dev/null +++ b/science/fasthenry/files/patch-src__mk_syscfg__mk_freebsd.inc @@ -0,0 +1,37 @@ +--- /dev/null 2026-04-04 21:53:35.827546000 +0000 ++++ src/mk_syscfg/mk_freebsd.inc 2026-04-04 21:52:38.905644000 +0000 +@@ -0,0 +1,34 @@ ++# These CFLAGS should be fine for anything that is reasonably recent ++# except for MinGW. ++ ++# Check AVX (parallel math support), for x86_64 only. We're going to ++# assume the compiler is gcc compatible, you'll need to comment this ++# if a non-compatible compiler is used. Allow AVX if the gcc version ++# is 4.8 or later. This should also work for macOS clang on Intel ++# Macs. ++ ++ARCH := $(shell uname -m) ++ ++ifeq ($(ARCH),amd64) ++ HAVX = 1 ++endif ++ ++# If you build with AVX enabled, and run on a system that does not ++# have AVX, the program will crash. If is not likely that you would ++# want to run fasthenry on such a machine as it is probably slow, but ++# to force build without AVX comment the next three lines below. ++# There seems to be no way to accommodate the presence/absence of AVX ++# at run-time nicely. ++ ++ifeq "$(HAVX)" "1" ++ MAVX = -mavx -DWITH_AVX ++endif ++ ++CFLAGS += -O3 -DFOUR $(MAVX) ++ ++# For debugging. ++#CFLAGS = -O -g -DFOUR $(MAVX) ++ ++# For profiling. ++#CFLAGS = -pg -g -DFOUR $(MAVX) ++