diff --git a/cad/Makefile b/cad/Makefile index 76a381c20076..08b30ec8afe0 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -1,171 +1,172 @@ COMMENT = CAD tools SUBDIR += Clipper2 SUBDIR += OrcaSlicer SUBDIR += PrusaSlicer SUBDIR += abc SUBDIR += admesh SUBDIR += adms SUBDIR += alliance SUBDIR += antimony SUBDIR += apio SUBDIR += appcsxcad SUBDIR += archimedes SUBDIR += astk-client SUBDIR += astk-serveur SUBDIR += atlc SUBDIR += brlcad SUBDIR += calculix SUBDIR += calculix-ccx SUBDIR += camotics SUBDIR += camv-rnd SUBDIR += caneda SUBDIR += cascade SUBDIR += cascade-compiler SUBDIR += chipvault SUBDIR += csxcad SUBDIR += cura SUBDIR += cura-engine SUBDIR += digital SUBDIR += dinotrace SUBDIR += ecpprog SUBDIR += electric SUBDIR += electric-ng SUBDIR += fasm SUBDIR += fdm_materials SUBDIR += feappv SUBDIR += fidocadj SUBDIR += freecad SUBDIR += freecad-devel 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 += irsim SUBDIR += iverilog 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 += lib3mf SUBDIR += libbgcode SUBDIR += libgdsii SUBDIR += libopencad SUBDIR += librecad SUBDIR += libredwg SUBDIR += librepcb SUBDIR += librnd SUBDIR += logisim SUBDIR += magic SUBDIR += meshdev 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-cocotb SUBDIR += py-csxcad SUBDIR += py-edalize SUBDIR += py-ezdxf SUBDIR += py-gdspy SUBDIR += py-gdstk SUBDIR += py-gmsh SUBDIR += py-lcapy SUBDIR += py-phidl SUBDIR += py-pyfda SUBDIR += py-pygmsh SUBDIR += py-pymtl SUBDIR += py-pyvcd SUBDIR += py-verilog-parser SUBDIR += py-vunit-hdl SUBDIR += python-gdsii SUBDIR += qcad + SUBDIR += qcadjsapi SUBDIR += qcsxcad SUBDIR += qelectrotech SUBDIR += qflow SUBDIR += qmls SUBDIR += qrouter SUBDIR += qspeakers SUBDIR += qtjsapi SUBDIR += qucs-s SUBDIR += qucsator SUBDIR += repsnapper SUBDIR += route-rnd SUBDIR += rubygem-gdsii SUBDIR += sch-rnd SUBDIR += scotch SUBDIR += silice SUBDIR += solvespace SUBDIR += sp2sp SUBDIR += spice SUBDIR += stepcode SUBDIR += stm32flash SUBDIR += sumo SUBDIR += surelog SUBDIR += surfer SUBDIR += svlint SUBDIR += svls SUBDIR += sweethome3d SUBDIR += symbiyosys SUBDIR += tochnog SUBDIR += uhdm SUBDIR += uranium SUBDIR += verilator SUBDIR += verilog-mode.el SUBDIR += veroroute SUBDIR += veryl SUBDIR += xcircuit SUBDIR += xschem SUBDIR += xyce SUBDIR += yosys SUBDIR += yosys-ghdl-plugin SUBDIR += yosys-systemverilog SUBDIR += z88 SUBDIR += zcad .include diff --git a/cad/qcadjsapi/Makefile b/cad/qcadjsapi/Makefile new file mode 100644 index 000000000000..5b22822eb7e6 --- /dev/null +++ b/cad/qcadjsapi/Makefile @@ -0,0 +1,48 @@ +PORTNAME= qcadjsapi +DISTVERSIONPREFIX= v +DISTVERSION= 3.32.9.0 +CATEGORIES= cad + +MAINTAINER= mr@FreeBSD.org +COMMENT= QJSEngine bindings for QCAD +WWW= https://www.ribbonsoft.com/qcad.html + +LICENSE= MIT + +BUILD_DEPENDS= ${NONEXISTENT}:cad/qcad:build \ + ${NONEXISTENT}:cad/qtjsapi:build +LIB_DEPENDS= libOpenNURBS.so:graphics/opennurbs \ + libqtjsapi.so:cad/qtjsapi \ + libcups.so:print/cups +RUN_DEPENDS= qcad>0:cad/qcad + +USES= compiler:c++17-lang cmake gl localbase:ldflags qt:6 + +USE_GITHUB= yes +GH_ACCOUNT= qcad + +CFLAGS+= -DON_SIZEOF_WCHAR_T=4 -fPIC + +USE_QT= 5compat base declarative svg tools +USE_GL= opengl + +PLIST_FILES= share/qcad/plugins/libqcadjsapi.so + +.include + +.if ${ARCH} != "sparc64" && ${ARCH} != "powerpc" && ${ARCH} != powerpc64 +CFLAGS+= -DON_LITTLE_ENDIAN +.else +CFLAGS+= -DON_BIG_ENDIAN +.endif + +post-extract: + ${LN} -sf `${MAKE} -C ${.CURDIR}/../../cad/qcad/ -V WRKSRC` ${WRKDIR}/qcad + ${LN} -sf `${MAKE} -C ${.CURDIR}/../../cad/qtjsapi/ -V WRKSRC` ${WRKDIR}/qtjsapi + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/qcad/plugins + ${INSTALL_LIB} ${WRKDIR}/qcad/plugins/libqcadjsapi.so \ + ${STAGEDIR}${PREFIX}/share/qcad/plugins + +.include diff --git a/cad/qcadjsapi/distinfo b/cad/qcadjsapi/distinfo new file mode 100644 index 000000000000..23deadcbf7d8 --- /dev/null +++ b/cad/qcadjsapi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1779901205 +SHA256 (qcad-qcadjsapi-v3.32.9.0_GH0.tar.gz) = 896de5c92c51000241028b4a1ee5d8353c706bec04b4389c76d0c94dd9c1a885 +SIZE (qcad-qcadjsapi-v3.32.9.0_GH0.tar.gz) = 3454095 diff --git a/cad/qcadjsapi/files/patch-CMakeLists.txt b/cad/qcadjsapi/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..1102c2c111e2 --- /dev/null +++ b/cad/qcadjsapi/files/patch-CMakeLists.txt @@ -0,0 +1,9 @@ +--- CMakeLists.txt.orig 2026-05-05 14:30:13 UTC ++++ CMakeLists.txt +@@ -145,5 +145,5 @@ target_link_libraries(qcadjsapi PRIVATE + qcadspatialindex + qcadstemmer + qtjsapi +- opennurbs ++ OpenNURBS + ) diff --git a/cad/qcadjsapi/pkg-descr b/cad/qcadjsapi/pkg-descr new file mode 100644 index 000000000000..5c516d034ca5 --- /dev/null +++ b/cad/qcadjsapi/pkg-descr @@ -0,0 +1,4 @@ +QJSEngine bindings for the QCAD API. + +It uses the Qt Script based qtscriptgenerator for Qt 5 which was made +obsolete when the Qt Script module was declared deprecated.