Download raw body.
New port: cad/prjpeppercorn
For your consideration, please find the port for cad/prjpeppercorn
attached to this email.
It is part of the yosys & nextpnr & openfpgaloader toolchain,
which can be used for FPGA design and synthesis on OpenBSD.
Thomas
diff --git a/cad/prjpeppercorn/Makefile b/cad/prjpeppercorn/Makefile
new file mode 100644
index 00000000000..3fb15b6f743
--- /dev/null
+++ b/cad/prjpeppercorn/Makefile
@@ -0,0 +1,36 @@
+COMMENT= GateMate FPGAs Bitstream Documentation and Tools
+CATEGORIES= cad
+V= 1.13
+REVISION= 0
+DISTNAME= prjpeppercorn-${V}
+
+GH_ACCOUNT= YosysHQ
+GH_PROJECT= prjpeppercorn
+GH_TAGNAME= v${V}
+
+HOMEPAGE= https://github.com/YosysHQ/prjpeppercorn
+MAINTAINER= Thomas Dettbarn <dettus@dettus.net>
+# ISC License
+PERMIT_PACKAGE= yes
+
+
+MODULES= devel/cmake
+NO_TEST= Yes
+
+LIB_DEPENDS= devel/boost
+WRKSRC= ${WRKDIST}/libgm
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKBUILD}/gmpack ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKBUILD}/gmunpack ${PREFIX}/bin/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/${DISTNAME}/gatemate/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/${DISTNAME}/delay/
+ ${INSTALL_DATA} ${WRKDIST}/gatemate/* ${PREFIX}/share/${DISTNAME}/gatemate/
+ ${INSTALL_PROGRAM} ${WRKDIST}/delay.sh ${PREFIX}/share/${DISTNAME}/
+ ${INSTALL_DATA} ${WRKDIST}/delay/* ${PREFIX}/share/${DISTNAME}/delay/
+ ${INSTALL_PROGRAM} ${WRKDIST}/decompress.py ${PREFIX}/share/${DISTNAME}/
+
+
+
+.include <bsd.port.mk>
+
diff --git a/cad/prjpeppercorn/distinfo b/cad/prjpeppercorn/distinfo
new file mode 100644
index 00000000000..7895716657b
--- /dev/null
+++ b/cad/prjpeppercorn/distinfo
@@ -0,0 +1,2 @@
+SHA256 (prjpeppercorn-1.13.tar.gz) = FHiAxUCPGhY3JyO0C7kEIxrOzUk+4/kNst81rbOb6Cw=
+SIZE (prjpeppercorn-1.13.tar.gz) = 5718234
diff --git a/cad/prjpeppercorn/patches/patch-libgm_CMakeLists_txt b/cad/prjpeppercorn/patches/patch-libgm_CMakeLists_txt
new file mode 100644
index 00000000000..68275165320
--- /dev/null
+++ b/cad/prjpeppercorn/patches/patch-libgm_CMakeLists_txt
@@ -0,0 +1,21 @@
+Unnecessary dependency to .git
+Index: libgm/CMakeLists.txt
+--- libgm/CMakeLists.txt.orig
++++ libgm/CMakeLists.txt
+@@ -88,7 +88,8 @@ string(STRIP "${CURRENT_GIT_VERSION}" CURRENT_GIT_VERS
+ if (EXISTS "${CMAKE_BINARY_DIR}/generated/last_git_version")
+ file(READ "${CMAKE_BINARY_DIR}/generated/last_git_version" LAST_GIT_VERSION)
+ endif()
+-if (NOT ("${LAST_GIT_VERSION}" STREQUAL "${CURRENT_GIT_VERSION}") OR NOT GIT_EXECUTABLE)
++#if (NOT ("${LAST_GIT_VERSION}" STREQUAL "${CURRENT_GIT_VERSION}") OR NOT GIT_EXECUTABLE)
++if (TRUE)
+ configure_file(
+ ${CMAKE_SOURCE_DIR}/tools/version.cpp.in
+ ${CMAKE_BINARY_DIR}/generated/version.cpp
+@@ -132,4 +133,4 @@ add_custom_target(
+ -style=file
+ -i
+ ${CLANGFORMAT_FILES}
+-)
+\ No newline at end of file
++)
diff --git a/cad/prjpeppercorn/pkg/DESCR b/cad/prjpeppercorn/pkg/DESCR
new file mode 100644
index 00000000000..915426b01bb
--- /dev/null
+++ b/cad/prjpeppercorn/pkg/DESCR
@@ -0,0 +1 @@
+GateMate FPGAs Bitstream Documentation and Tools
diff --git a/cad/prjpeppercorn/pkg/PLIST b/cad/prjpeppercorn/pkg/PLIST
new file mode 100644
index 00000000000..2f8cad555db
--- /dev/null
+++ b/cad/prjpeppercorn/pkg/PLIST
@@ -0,0 +1,20 @@
+@bin bin/gmpack
+@bin bin/gmunpack
+share/prjpeppercorn-1.13/
+share/prjpeppercorn-1.13/decompress.py
+share/prjpeppercorn-1.13/delay/
+share/prjpeppercorn-1.13/delay.sh
+share/prjpeppercorn-1.13/delay/cc_best_eco_dly.dly
+share/prjpeppercorn-1.13/delay/cc_best_lpr_dly.dly
+share/prjpeppercorn-1.13/delay/cc_best_spd_dly.dly
+share/prjpeppercorn-1.13/delay/cc_typ_eco_dly.dly
+share/prjpeppercorn-1.13/delay/cc_typ_lpr_dly.dly
+share/prjpeppercorn-1.13/delay/cc_typ_spd_dly.dly
+share/prjpeppercorn-1.13/delay/cc_worst_eco_dly.dly
+share/prjpeppercorn-1.13/delay/cc_worst_lpr_dly.dly
+share/prjpeppercorn-1.13/delay/cc_worst_spd_dly.dly
+share/prjpeppercorn-1.13/gatemate/
+share/prjpeppercorn-1.13/gatemate/__init__.py
+share/prjpeppercorn-1.13/gatemate/chip.py
+share/prjpeppercorn-1.13/gatemate/die.py
+share/prjpeppercorn-1.13/gatemate/timing.py
diff --git a/cad/prjpeppercorn/pkg/PLIST-main b/cad/prjpeppercorn/pkg/PLIST-main
new file mode 100644
index 00000000000..c5a3e82aad5
--- /dev/null
+++ b/cad/prjpeppercorn/pkg/PLIST-main
@@ -0,0 +1,2 @@
+@bin bin/gmpack
+@bin bin/gmunpack
diff --git a/cad/prjpeppercorn/pkg/PLIST-src b/cad/prjpeppercorn/pkg/PLIST-src
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/cad/prjpeppercorn/pkg/PLIST.orig b/cad/prjpeppercorn/pkg/PLIST.orig
new file mode 100644
index 00000000000..6c50a7ddcb2
--- /dev/null
+++ b/cad/prjpeppercorn/pkg/PLIST.orig
@@ -0,0 +1,9 @@
+@bin bin/gmpack
+@bin bin/gmunpack
+share/prjpeppercorn-1.13/
+share/prjpeppercorn-1.13/gatemate/
+share/prjpeppercorn-1.13/gatemate/__init__.py
+share/prjpeppercorn-1.13/gatemate/chip.py
+share/prjpeppercorn-1.13/gatemate/die.py
+share/prjpeppercorn-1.13/gatemate/timing.py
+share/prjpeppercorn-1.13/schematics/
New port: cad/prjpeppercorn