diff --git a/cad/Makefile b/cad/Makefile index 65b27223a834..1051d7e7c5d6 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -1,157 +1,158 @@ COMMENT = CAD tools SUBDIR += NASTRAN-95 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 += 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-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-vunit-hdl SUBDIR += python-gdsii SUBDIR += qcad SUBDIR += qcsxcad SUBDIR += qelectrotech SUBDIR += qflow SUBDIR += qmls SUBDIR += qrouter 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 += z88 SUBDIR += zcad .include diff --git a/cad/gdscpp/Makefile b/cad/gdscpp/Makefile new file mode 100644 index 000000000000..f824f3c3a25e --- /dev/null +++ b/cad/gdscpp/Makefile @@ -0,0 +1,32 @@ +PORTNAME= gdscpp +DISTVERSION= g20200611 +CATEGORIES= cad + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ library to create and read GDSII file +WWW= https://github.com/judefdiv/gdscpp + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake compiler:c++17-lang +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= judefdiv +GH_TAGNAME= 20018e1 + +CMAKE_ON= BUILD_SHARED_LIBS + +PLIST_FILES= bin/gdscpp \ + include/gdscpp/gdsCpp.hpp \ + include/gdscpp/gdsForge.hpp \ + include/gdscpp/gdsParser.hpp \ + lib/libgds.so + +do-install: + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${LOCALBASE}/bin + ${INSTALL_LIB} ${BUILD_WRKSRC}/libgds.so ${STAGEDIR}${LOCALBASE}/lib + cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${LOCALBASE}/include + +.include diff --git a/cad/gdscpp/distinfo b/cad/gdscpp/distinfo new file mode 100644 index 000000000000..e104a1333668 --- /dev/null +++ b/cad/gdscpp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1677789358 +SHA256 (judefdiv-gdscpp-g20200611-20018e1_GH0.tar.gz) = 45578dc125db5da8104299951a22b688885d1fea8a9ec697fa3bd63ba6c174ec +SIZE (judefdiv-gdscpp-g20200611-20018e1_GH0.tar.gz) = 32504 diff --git a/cad/gdscpp/files/patch-CMakeLists.txt b/cad/gdscpp/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..a4ff3d5c0706 --- /dev/null +++ b/cad/gdscpp/files/patch-CMakeLists.txt @@ -0,0 +1,22 @@ +--- CMakeLists.txt.orig 2020-06-11 07:02:00 UTC ++++ CMakeLists.txt +@@ -14,8 +14,17 @@ set(SOURCES + ) + + add_executable(${PROJECT_NAME} ${SOURCES}) ++add_library(gds ++ src/gdsCpp.cpp ++ src/gdsParser.cpp ++ src/gdsForge.cpp ++ src/gdsImport.cpp ++) + + # Ensures that the header files of the project is included + target_include_directories(${PROJECT_NAME} PRIVATE ++ ${PROJECT_SOURCE_DIR}/include/gdscpp ++) ++target_include_directories(gds PRIVATE + ${PROJECT_SOURCE_DIR}/include/gdscpp +-) +\ No newline at end of file ++) diff --git a/cad/gdscpp/pkg-descr b/cad/gdscpp/pkg-descr new file mode 100644 index 000000000000..953d3e3d751b --- /dev/null +++ b/cad/gdscpp/pkg-descr @@ -0,0 +1,10 @@ +GDScpp is a C++ library that make GDS file manipulation easier. + +Features: +* Convert GDS data to ASCII. +* Easily create GDS files. +* Import GDS files. +* Extract the root GDS structures. +* Create a hierarchy diagram of all the GDS structure dependencies. +* Direct importing of GDS files with redundancy checking. +* Create bounding box of all the GDS structures.