diff --git a/cad/Makefile b/cad/Makefile index cd1f53a22f71..17e4b70ac66b 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -1,127 +1,128 @@ # $FreeBSD$ # COMMENT = CAD tools SUBDIR += NASTRAN-95 SUBDIR += PrusaSlicer SUBDIR += abc SUBDIR += admesh SUBDIR += adms SUBDIR += alliance SUBDIR += astk-client SUBDIR += astk-serveur SUBDIR += atlc SUBDIR += basicdsp SUBDIR += brlcad SUBDIR += calculix SUBDIR += calculix-ccx SUBDIR += caneda SUBDIR += cascade SUBDIR += cascade-compiler SUBDIR += chipvault SUBDIR += cura SUBDIR += cura-engine SUBDIR += digital SUBDIR += dinotrace SUBDIR += electric SUBDIR += electric-ng SUBDIR += fasm SUBDIR += fdm_materials SUBDIR += feappv SUBDIR += fidocadj SUBDIR += freecad SUBDIR += freehdl SUBDIR += fritzing SUBDIR += gdsreader SUBDIR += gdt SUBDIR += geda SUBDIR += gerbv SUBDIR += ghdl SUBDIR += gmsh SUBDIR += gnucap SUBDIR += gplcver SUBDIR += graywolf SUBDIR += gspiceui SUBDIR += gtkwave SUBDIR += horizon-eda SUBDIR += ifcopenshell SUBDIR += impact SUBDIR += irsim SUBDIR += iverilog SUBDIR += jspice3 SUBDIR += k40-whisperer SUBDIR += kicad SUBDIR += kicad-devel SUBDIR += kicad-doc SUBDIR += kicad-library-footprints SUBDIR += kicad-library-footprints-devel SUBDIR += kicad-library-packages3d SUBDIR += kicad-library-packages3d-devel SUBDIR += kicad-library-symbols SUBDIR += kicad-library-symbols-devel SUBDIR += kicad-library-templates SUBDIR += kicad-library-templates-devel SUBDIR += klayout SUBDIR += ktechlab SUBDIR += ldraw SUBDIR += leocad SUBDIR += lepton-eda SUBDIR += libopencad SUBDIR += librecad SUBDIR += libredwg SUBDIR += librepcb SUBDIR += linux-eagle5 SUBDIR += logisim SUBDIR += magic SUBDIR += meshdev SUBDIR += meshlab SUBDIR += netgen SUBDIR += netgen-lvs SUBDIR += ngspice_rework SUBDIR += nvc SUBDIR += opencascade SUBDIR += openctm + SUBDIR += openfpgaloader SUBDIR += openscad SUBDIR += openscad-devel SUBDIR += opensta SUBDIR += openvsp SUBDIR += oregano SUBDIR += p5-GDS2 SUBDIR += p5-Verilog-Perl SUBDIR += pcb SUBDIR += pdnmesh SUBDIR += py-ezdxf SUBDIR += py-gdspy SUBDIR += py-lcapy SUBDIR += py-phidl SUBDIR += py-pyfda SUBDIR += python-gdsii SUBDIR += qcad SUBDIR += qelectrotech SUBDIR += qflow SUBDIR += qmls SUBDIR += qrouter SUBDIR += repsnapper SUBDIR += rubygem-gdsii SUBDIR += scotch SUBDIR += solvespace SUBDIR += sp2sp SUBDIR += spice SUBDIR += stepcode SUBDIR += sumo SUBDIR += sweethome3d SUBDIR += tkgate SUBDIR += tochnog SUBDIR += transcalc SUBDIR += uranium SUBDIR += varkon SUBDIR += verilator SUBDIR += verilog-mode.el SUBDIR += veroroute SUBDIR += xcircuit SUBDIR += yosys SUBDIR += z88 SUBDIR += zcad .include diff --git a/cad/openfpgaloader/Makefile b/cad/openfpgaloader/Makefile new file mode 100644 index 000000000000..8bc1dea361a3 --- /dev/null +++ b/cad/openfpgaloader/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= openfpgaloader +DISTVERSIONPREFIX= v +DISTVERSION= 0.1 +CATEGORIES= cad + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Universal utility for programming FPGA + +LICENSE= AGPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libargp.so:devel/argp-standalone \ + libftdi1.so:devel/libftdi1 \ + libudev.so:devel/libudev-devd + +USES= cmake compiler:c++11-lang localbase:ldflags pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= trabucayre +GH_PROJECT= openFPGALoader + +PLIST_FILES= bin/openFPGALoader \ + share/openFPGALoader/spiOverJtag_xc7a35.bit \ + share/openFPGALoader/test_sfl.svf + +.include diff --git a/cad/openfpgaloader/distinfo b/cad/openfpgaloader/distinfo new file mode 100644 index 000000000000..5b7dcbcd2b92 --- /dev/null +++ b/cad/openfpgaloader/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1597129075 +SHA256 (trabucayre-openFPGALoader-v0.1_GH0.tar.gz) = a2445e3c1ec3a9e75b28cf48392e236f10cf5d64da724a9608c08fbecbee07bd +SIZE (trabucayre-openFPGALoader-v0.1_GH0.tar.gz) = 123142 diff --git a/cad/openfpgaloader/files/patch-CMakeLists.txt b/cad/openfpgaloader/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..da3e34d2bfd9 --- /dev/null +++ b/cad/openfpgaloader/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +--- CMakeLists.txt.orig 2020-08-11 07:11:29 UTC ++++ CMakeLists.txt +@@ -138,8 +138,8 @@ target_link_libraries(openFPGALoader ${LIBUDEV_LIBRARI + endif() + + if(NOT HAVE_ARGP) +- find_library(LIBARGPSTATIC libargp.a REQUIRED) +- target_link_libraries(openFPGALoader ${LIBARGPSTATIC}) ++ find_library(LIBARGP libargp.so REQUIRED) ++ target_link_libraries(openFPGALoader ${LIBARGP}) + endif() + + if (BUILD_STATIC) diff --git a/cad/openfpgaloader/pkg-descr b/cad/openfpgaloader/pkg-descr new file mode 100644 index 000000000000..1bd5477e1d99 --- /dev/null +++ b/cad/openfpgaloader/pkg-descr @@ -0,0 +1,5 @@ +Universal utility for programming FPGA. + +It supports many FPGA development kits. + +WWW: https://github.com/trabucayre/openFPGALoader