diff --git a/cad/Makefile b/cad/Makefile index bdb5c4d15857..d0f48e1d9673 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -1,161 +1,162 @@ COMMENT = CAD tools SUBDIR += PrusaSlicer SUBDIR += abc SUBDIR += admesh SUBDIR += adms SUBDIR += alliance SUBDIR += antimony SUBDIR += appcsxcad SUBDIR += archimedes SUBDIR += astk-client SUBDIR += astk-serveur SUBDIR += atlc SUBDIR += brlcad SUBDIR += calculix SUBDIR += calculix-ccx SUBDIR += camotics SUBDIR += caneda SUBDIR += cascade SUBDIR += cascade-compiler SUBDIR += chipvault SUBDIR += csxcad SUBDIR += cura SUBDIR += cura-engine SUBDIR += cvc SUBDIR += digital SUBDIR += dinotrace SUBDIR += ecpprog SUBDIR += electric SUBDIR += electric-ng SUBDIR += fasm SUBDIR += fdm_materials SUBDIR += feappv SUBDIR += fidocadj SUBDIR += freecad SUBDIR += freehdl SUBDIR += fritzing SUBDIR += gds3d SUBDIR += gdscpp SUBDIR += gdsreader + SUBDIR += gdstk SUBDIR += gdt SUBDIR += geda SUBDIR += gerbv SUBDIR += ghdl SUBDIR += gmsh SUBDIR += gnucap SUBDIR += gplcver SUBDIR += graywolf SUBDIR += gspiceui SUBDIR += gtkwave SUBDIR += horizon-eda SUBDIR += hs-verismith 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 += ldview SUBDIR += leocad SUBDIR += lepton-eda SUBDIR += libgdsii SUBDIR += libopencad SUBDIR += librecad SUBDIR += libredwg SUBDIR += librepcb SUBDIR += librnd SUBDIR += logisim SUBDIR += magic SUBDIR += meshdev SUBDIR += meshlab SUBDIR += netgen SUBDIR += netgen-lvs SUBDIR += ngspice_rework SUBDIR += nvc SUBDIR += opencascade SUBDIR += opencascade740 SUBDIR += openctm SUBDIR += openfpgaloader SUBDIR += openroad SUBDIR += openscad SUBDIR += openscad-devel SUBDIR += opentimer SUBDIR += openvsp SUBDIR += oregano SUBDIR += p5-GDS2 SUBDIR += p5-Verilog-Perl SUBDIR += padring SUBDIR += pcb SUBDIR += pcb-rnd SUBDIR += pdnmesh SUBDIR += py-amaranth SUBDIR += py-cadquery SUBDIR += py-cocotb SUBDIR += py-cq-editor SUBDIR += py-edalize SUBDIR += py-ezdxf SUBDIR += py-gdspy SUBDIR += py-gmsh SUBDIR += py-lcapy SUBDIR += py-ocp SUBDIR += py-phidl SUBDIR += py-pyfda SUBDIR += py-pygmsh SUBDIR += py-pymtl SUBDIR += py-pyvcd SUBDIR += py-vunit-hdl SUBDIR += python-gdsii SUBDIR += qcad SUBDIR += qcsxcad SUBDIR += qelectrotech SUBDIR += qflow SUBDIR += qmls SUBDIR += qrouter SUBDIR += qspeakers SUBDIR += qucs-s SUBDIR += qucsator SUBDIR += repsnapper SUBDIR += rubygem-gdsii SUBDIR += scotch SUBDIR += silice SUBDIR += solvespace SUBDIR += sp2sp SUBDIR += spice SUBDIR += stepcode SUBDIR += stm32flash SUBDIR += sumo SUBDIR += surelog SUBDIR += svlint SUBDIR += svls SUBDIR += sweethome3d SUBDIR += tkgate SUBDIR += tochnog SUBDIR += uhdm SUBDIR += uranium SUBDIR += verilator SUBDIR += verilog-mode.el SUBDIR += veroroute SUBDIR += veryl SUBDIR += xcircuit SUBDIR += xyce SUBDIR += yosys SUBDIR += yosys-systemverilog SUBDIR += z88 SUBDIR += zcad .include diff --git a/cad/gdstk/Makefile b/cad/gdstk/Makefile new file mode 100644 index 000000000000..c505a5c14bc7 --- /dev/null +++ b/cad/gdstk/Makefile @@ -0,0 +1,20 @@ +PORTNAME= gdstk +DISTVERSIONPREFIX= v +DISTVERSION= 0.9.42 +CATEGORIES= cad + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ library for creation and manipulation of GDSII and OASIS files +WWW= https://heitzmann.github.io/gdstk/ + +LICENSE= BSL +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake compiler:c++11-lang + +USE_GITHUB= yes +GH_ACCOUNT= heitzmann + +CMAKE_ON= BUILD_SHARED_LIBS + +.include diff --git a/cad/gdstk/distinfo b/cad/gdstk/distinfo new file mode 100644 index 000000000000..3771818e5ad2 --- /dev/null +++ b/cad/gdstk/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1693211997 +SHA256 (heitzmann-gdstk-v0.9.42_GH0.tar.gz) = 303c6fc4b1de91091c776da928ae71ef0fcfc1b86ed1d1aacae4e2339968d5b4 +SIZE (heitzmann-gdstk-v0.9.42_GH0.tar.gz) = 629280 diff --git a/cad/gdstk/files/patch-CMakeLists.txt b/cad/gdstk/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..98f04cb62ae5 --- /dev/null +++ b/cad/gdstk/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2023-08-28 08:41:29 UTC ++++ CMakeLists.txt +@@ -50,7 +50,7 @@ foreach(IT ${ZLIB_LIBRARIES}) + set(PRIVATE_LIBS "${PRIVATE_LIBS} ${IT}") + endforeach() + +-add_library(gdstk STATIC ++add_library(gdstk + src/cell.cpp + src/clipper_tools.cpp + src/curve.cpp diff --git a/cad/gdstk/pkg-descr b/cad/gdstk/pkg-descr new file mode 100644 index 000000000000..1300c7e4f921 --- /dev/null +++ b/cad/gdstk/pkg-descr @@ -0,0 +1,11 @@ +Gdstk (GDSII Tool Kit) is a C++ library for creation and manipulation +of GDSII and OASIS files. It is also available as a Python module +meant to be a successor to Gdspy. + +Key features for the creation of complex CAD layouts are included: +* Boolean operations on polygons (AND, OR, NOT, XOR) based on clipping algorithm +* Polygon offset (inward and outward rescaling of polygons) +* Efficient point-in-polygon solutions for large array sets + +Typical applications of Gdstk are in the fields of electronic chip design, +planar lightwave circuit design, and mechanical engineering. diff --git a/cad/gdstk/pkg-plist b/cad/gdstk/pkg-plist new file mode 100644 index 000000000000..7d972a760a47 --- /dev/null +++ b/cad/gdstk/pkg-plist @@ -0,0 +1,28 @@ +include/gdstk.h +include/gdstk/allocator.h +include/gdstk/array.h +include/gdstk/cell.h +include/gdstk/clipper_tools.h +include/gdstk/curve.h +include/gdstk/flexpath.h +include/gdstk/font.h +include/gdstk/gdsii.h +include/gdstk/gdswriter.h +include/gdstk/label.h +include/gdstk/library.h +include/gdstk/map.h +include/gdstk/oasis.h +include/gdstk/pathcommon.h +include/gdstk/polygon.h +include/gdstk/property.h +include/gdstk/rawcell.h +include/gdstk/reference.h +include/gdstk/repetition.h +include/gdstk/robustpath.h +include/gdstk/set.h +include/gdstk/sort.h +include/gdstk/style.h +include/gdstk/utils.h +include/gdstk/vec.h +lib/libgdstk.so +libdata/pkgconfig/gdstk.pc