diff --git a/cad/nextpnr/Makefile b/cad/nextpnr/Makefile new file mode 100644 index 00000000000..0479940a449 --- /dev/null +++ b/cad/nextpnr/Makefile @@ -0,0 +1,45 @@ +###################################################### +## 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.10pl20260613 +DISTNAME= nextpnr-${V} + +GH_ACCOUNT= YosysHQ +GH_PROJECT= nextpnr +GH_COMMIT= 2dfdba6efc7559ad44ba4f1842af8c629596ea4a + +HOMEPAGE= https://github.com/YosysHQ/nextpnr +MAINTAINER= Thomas Dettbarn + +# ISC License +PERMIT_PACKAGE= yes + +WANTLIB= c c++ c++abi m util pthread z +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..bd28a8e299e --- /dev/null +++ b/cad/nextpnr/distinfo @@ -0,0 +1,2 @@ +SHA256 (nextpnr-0.10pl20260613-2dfdba6e.tar.gz) = s3IXalZcEZj7+nRjxVA2A7kWYBjiK7PcOb/lT1QpqVs= +SIZE (nextpnr-0.10pl20260613-2dfdba6e.tar.gz) = 3525133 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