From nobody Sat Oct 07 04:54:06 2023 X-Original-To: dev-commits-ports-main@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 4S2Xy6326dz4wtP6; Sat, 7 Oct 2023 04:54:06 +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 4S2Xy62T2Dz3fJv; Sat, 7 Oct 2023 04:54:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696654446; 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=b6/WAlRuJ5unt4ii6o87AvnL3ws25YqAgcPLmBbARV4=; b=SEpU1cRXXLHDl5w3sS5NBZq8CdaFoE3KS6VOcwkq7NGIQBw4ZQWIcuNB8plXzx7RaMieQJ 1AFHYK+RR7whVe0caTNFBzsMQfdWlwvWLu42HbsL46/O2K42JL+7RJBNPQf90FHuXNjWoB KBp2Inxmxib1Dcez94OHcmgCcObreKZm2Jkf71d9+kNOW+pp7pPrzANoPqNW0P3Ce//n8/ 6xrvBw0VDGSDxKq+r5PHiMpjHffJIXSoMungKwSawJPR69kOpmT45FFGg5wakiYJy1RSuI 8KeTpszA1/y6/YThcTOuhpIH4bBYfar7v4bAmYIdka/rbLQq6MOuFmZ8aQ6LvA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696654446; a=rsa-sha256; cv=none; b=unrqcbJTRRk8bAL01PtdMlbjjGmzai3A1Qym8ZsR/T5M3QMniry4n3Ge6Fi1o9bBKof6Um mIOwoIOS/KZMF4WTxapo7H1roRN5jL1Enrs3npfbw9/SKATwLMWNR0NLxes0rJxfxSdnZ+ dBaBoSs92ETNl8O6kSywqNIIGsRjbTlVZVtShTI3ngv52kU40KUv7fNLWYOm6i/2KXwqb4 A2ToEb4P4BWsLHKUaTeijJYTInzyyiCC6ETwo9YomfGhD0EvnX8QDFanhDUzBVpB/O7I7I ROgoPY1GLJsSFzOLDilM/s1WufYOs8xrjNWyMM/8C6XSW2fdFAnYqxF52d0Wpw== 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=1696654446; 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=b6/WAlRuJ5unt4ii6o87AvnL3ws25YqAgcPLmBbARV4=; b=fCtJsyrgNMFyVrV31NyCtj6AFEl8pi20PVbIeqn7zVCvTLHKW1rdYQObtfQRd/QxNeB4+L 3MvRUlfRAISV/kZzSbhhLN703e1eGtfg4OCjbI+EISahYPs73MMOZ8E7wH83WXkP7lA7mG ICrNfSJLFz4c74vhXHJOKf/wHNWlFaVPblquF5Mc8a3mIp2/zDMeQG2N+3OU9L8yE+pjb7 qamicAsGQnNZkIps3j9dXR0T/tL9Zkcw7y+9vGku0sQhIVx1fzSUfp6SisueBnrz5tLm1d IPNBjR3aiLTb7/UxumOZ19WC1wi3+vPSa3Q9+rG7XkbSJtSyTZTdjI6UC7s9Gw== 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 4S2Xy61VWJz2Zt; Sat, 7 Oct 2023 04:54:06 +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 3974s6ui040317; Sat, 7 Oct 2023 04:54:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3974s6Q1040314; Sat, 7 Oct 2023 04:54:06 GMT (envelope-from git) Date: Sat, 7 Oct 2023 04:54:06 GMT Message-Id: <202310070454.3974s6Q1040314@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: b7c594ee6945 - main - cad/ghdl: Add SYNTH option; Remove --disable-libghdl; Remove unused deps List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b7c594ee694505271855f97416b22b0cc8c2d2b6 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=b7c594ee694505271855f97416b22b0cc8c2d2b6 commit b7c594ee694505271855f97416b22b0cc8c2d2b6 Author: Yuri Victorovich AuthorDate: 2023-10-07 04:50:27 +0000 Commit: Yuri Victorovich CommitDate: 2023-10-07 04:54:02 +0000 cad/ghdl: Add SYNTH option; Remove --disable-libghdl; Remove unused deps PR: 274240 Suggested by: Nico Sonack --- cad/ghdl/Makefile | 18 ++++++++++-------- cad/ghdl/pkg-plist | 5 +++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/cad/ghdl/Makefile b/cad/ghdl/Makefile index 0cc0282cb15c..c57d1c86469d 100644 --- a/cad/ghdl/Makefile +++ b/cad/ghdl/Makefile @@ -1,7 +1,7 @@ PORTNAME= ghdl DISTVERSIONPREFIX= v DISTVERSION= 3.0.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= cad MAINTAINER= yuri@FreeBSD.org @@ -11,9 +11,6 @@ WWW= https://github.com/ghdl/ghdl LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING.md -LIB_DEPENDS= libgmp.so:math/gmp \ - libmpfr.so:math/mpfr \ - libmpc.so:math/mpc TEST_DEPENDS= bash:shells/bash \ ${PYTHON_PKGNAMEPREFIX}pyTooling>=2.11.0:devel/py-pyTooling@${PY_FLAVOR} @@ -27,22 +24,27 @@ GNU_CONFIGURE= yes LLVMVER= 15 # last supported version, see https://github.com/ghdl/ghdl/blob/master/configure#L317 -CONFIGURE_ARGS= --disable-libghdl - +OPTIONS_DEFINE= SYNTH OPTIONS_SINGLE= BACKEND OPTIONS_SINGLE_BACKEND= MCODE LLVM -OPTIONS_DEFAULT= LLVM +OPTIONS_DEFAULT= LLVM SYNTH OPTIONS_SUB= yes MCODE_DESC= Use the MCODE backend # MCODE is enabled by default and doesn't require any configuration options LLVM_DESC= Code generator is LLVM -LLVM_USES= libedit ncurses +LLVM_USES= ncurses LLVM_CONFIGURE_ON= --with-llvm-config=${LOCALBASE}/bin/llvm-config${LLVMVER} LLVM_BUILD_DEPENDS= llvm-config${LLVMVER}:devel/llvm${LLVMVER} LLVM_RUN_DEPENDS= llc${LLVMVER}:devel/llvm${LLVMVER} +SYNTH_DESC= Enable Synthesis Features in ghdl +SYNTH_CONFIGURE_ON= --enable-synth + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libghdl-3_0_0.so + post-install-MCODE-on: @${STRIP_CMD} \ ${STAGEDIR}${PREFIX}/bin/ghdl \ diff --git a/cad/ghdl/pkg-plist b/cad/ghdl/pkg-plist index 7907e23413a4..067665654672 100644 --- a/cad/ghdl/pkg-plist +++ b/cad/ghdl/pkg-plist @@ -4,7 +4,12 @@ bin/ghwdump include/ghdl/libghw.h include/ghdl/vhpi_user.h include/ghdl/vpi_user.h +%%SYNTH%%include/ghdl/synth.h +%%SYNTH%%include/ghdl/synth_gates.h lib/ghdl/ansi_color.sh +lib/libghdl-3_0_0.so +lib/libghdl.a +lib/libghdl.link %%LLVM%%lib/ghdl/grt-exec.lst %%LLVM%%lib/ghdl/grt-shared.lst %%LLVM%%lib/ghdl/grt.lst