From: Thomas Dettbarn Subject: Re: New port 2/4: cad/nextpnr-0.10pl20260613 To: ports@openbsd.org Date: Sat, 27 Jun 2026 13:49:01 +0200 Hello! Please find this week's update to my new port cad/nextpnr attached to this email. It includes some updates from the github repository. It is part of a set, intended to bring the joy of FPGA development to OpenBSD. cad/prjpeppercorn cad/nextpnr cad/openfpgaloader cad/yosys Thomas diff --git a/cad/nextpnr/Makefile b/cad/nextpnr/Makefile new file mode 100644 index 00000000000..c799bb078df --- /dev/null +++ b/cad/nextpnr/Makefile @@ -0,0 +1,49 @@ +###################################################### +## NOTE: Though not recommended, building this port ## +## as root requires the available datasize to ## +## be increased in /etc/login.conf. Without ## +## setting daemon:datasize=8192M, the build ## +## process will fail with a MemoryError. ## +###################################################### + +COMMENT= portable FPGA place and route tool +CATEGORIES= cad +V= 0.10pl20260619 +DISTNAME= nextpnr-${V} + +GH_ACCOUNT= YosysHQ +GH_PROJECT= nextpnr +GH_COMMIT= 2b560ad0ccc6e7e93ad8bd6cb0f88f925bbb314b + +HOMEPAGE= https://github.com/YosysHQ/nextpnr +MAINTAINER= Thomas Dettbarn + +# ISC License +PERMIT_PACKAGE= yes + +WANTLIB= c ${COMPILER_LIBCXX} m util pthread z +WANTLIB+= boost_atomic-mt boost_chrono-mt boost_container-mt +WANTLIB+= boost_date_time-mt boost_iostreams-mt boost_program_options-mt +WANTLIB+= boost_random-mt boost_regex-mt boost_thread-mt python3.13 + +MODULES= devel/cmake +MODULES+= lang/python + +LIB_DEPENDS= archivers/bzip2 +LIB_DEPENDS+= converters/libiconv +LIB_DEPENDS+= devel/boost +LIB_DEPENDS+= devel/gettext +LIB_DEPENDS+= lang/python/3 +LIB_DEPENDS+= textproc/icu4c + +BUILD_DEPENDS= cad/prjpeppercorn +BUILD_DEPENDS+= math/eigen3 + +CONFIGURE_ARGS= -DARCH="generic;himbaechel" \ + -DHIMBAECHEL_UARCH="gatemate" \ + -DHIMBAECHEL_PEPPERCORN_PATH=/usr/local/share/prjpeppercorn/1.13 + +NO_TEST= Yes + +.include + diff --git a/cad/nextpnr/distinfo b/cad/nextpnr/distinfo new file mode 100644 index 00000000000..f96f5bc76b3 --- /dev/null +++ b/cad/nextpnr/distinfo @@ -0,0 +1,2 @@ +SHA256 (nextpnr-0.10pl20260619-2b560ad0.tar.gz) = ALYq97uWcIotXipEjepAVLF3142bnRgk9n2KwdCZDmk= +SIZE (nextpnr-0.10pl20260619-2b560ad0.tar.gz) = 3525348 diff --git a/cad/nextpnr/pkg/DESCR b/cad/nextpnr/pkg/DESCR new file mode 100644 index 00000000000..217791fd790 --- /dev/null +++ b/cad/nextpnr/pkg/DESCR @@ -0,0 +1,2 @@ +nextpnr aims to be a vendor neutral, timing driven, FOSS FPGA place and +route tool. diff --git a/cad/nextpnr/pkg/PLIST b/cad/nextpnr/pkg/PLIST new file mode 100644 index 00000000000..63fd94f8a9c --- /dev/null +++ b/cad/nextpnr/pkg/PLIST @@ -0,0 +1,7 @@ +@bin bin/nextpnr-generic +@bin bin/nextpnr-himbaechel +share/nextpnr/ +share/nextpnr/himbaechel/ +share/nextpnr/himbaechel/gatemate/ +share/nextpnr/himbaechel/gatemate/chipdb-CCGM1A1.bin +share/nextpnr/himbaechel/gatemate/chipdb-CCGM1A2.bin