1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

cad/qcadjsapi: new port required by cad/qcad

Remark: maintainer set to mr, because it has to be maintained with QCAD.

PR:		295682
Approved by:	mr (maintainer)
This commit is contained in:
Thierry Thomas
2026-06-01 11:57:47 +02:00
parent 66830862f5
commit 46abca1fc7
5 changed files with 65 additions and 0 deletions
+1
View File
@@ -125,6 +125,7 @@
SUBDIR += py-vunit-hdl
SUBDIR += python-gdsii
SUBDIR += qcad
SUBDIR += qcadjsapi
SUBDIR += qcsxcad
SUBDIR += qelectrotech
SUBDIR += qflow
+48
View File
@@ -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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>
+3
View File
@@ -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
+9
View File
@@ -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
)
+4
View File
@@ -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.