Annotation of mystuff-openscad/cad/openscad/Makefile, Revision 1.18
1.10 afresh1 1: COMMENT = programmers solid 3D CAD modeller
1.1 afresh1 2:
1.13 afresh1 3: V = 2025.10.14
1.4 afresh1 4: DISTNAME = openscad-${V}
5:
6: CATEGORIES = cad
7:
8: HOMEPAGE = https://www.openscad.org/
9:
10: # AGPL-3.0
11: PERMIT_PACKAGE = Yes
1.1 afresh1 12:
13: GH_ACCOUNT = openscad
14: GH_PROJECT = openscad
1.13 afresh1 15: GH_COMMIT = b0f18e9b4d61288b2cd6c659135f7e77def179e0
1.1 afresh1 16:
17: MCAD_COMMIT = 1ea402208c3127ffb443931e9bb1681c191dacca
18: SITES.mcad = https://github.com/${GH_ACCOUNT}/MCAD/archive/
19:
20: DISTFILES.mcad = MCAD-${MCAD_COMMIT:C/(........).*/\1/}{${MCAD_COMMIT}}${EXTRACT_SUFX}
21:
1.4 afresh1 22: MODULES = devel/cmake \
23: lang/python \
1.12 afresh1 24: x11/qt6
1.4 afresh1 25:
1.12 afresh1 26: WANTLIB += ${COMPILER_LIBCXX} 3mf Clipper2 EGL GL GLEW GLU Qt6Concurrent
27: WANTLIB += Qt6Core Qt6Core5Compat Qt6DBus Qt6Gui Qt6Multimedia
28: WANTLIB += Qt6Network Qt6OpenGL Qt6OpenGLWidgets Qt6Svg Qt6Widgets
29: WANTLIB += boost_atomic-mt boost_filesystem-mt boost_program_options-mt
30: WANTLIB += boost_regex-mt boost_system-mt c cairo double-conversion
31: WANTLIB += fontconfig freetype glib-2.0 gmp gmpxx harfbuzz intl
32: WANTLIB += m manifold mpfr opencsg qscintilla2_qt6 tbb xml2 zip
1.1 afresh1 33:
1.5 afresh1 34: # Match devel/boost
35: COMPILER = base-clang ports-gcc
1.2 afresh1 36:
1.18 ! afresh1 37: BUILD_DEPENDS = devel/bison \
1.4 afresh1 38: devel/gettext,-tools \
39: devel/sanitizers-cmake \
40: graphics/glslang \
1.18 ! afresh1 41: graphics/ImageMagick \
! 42: graphics/shaderc \
1.4 afresh1 43: graphics/vulkan-tools \
44: math/cgal \
45: math/eigen3 \
1.18 ! afresh1 46: shells/bash \
! 47: x11/xkbcommon
! 48:
! 49: TEST_DEPENDS = graphics/py-Pillow
1.4 afresh1 50:
51: LIB_DEPENDS = archivers/libzip \
1.11 afresh1 52: cad/clipper2 \
1.17 afresh1 53: cad/lib3mf \
1.4 afresh1 54: cad/manifold \
55: devel/boost \
56: devel/gettext \
57: devel/glib2 \
58: devel/gmp \
59: devel/gmp,-cxx \
60: devel/mpfr \
61: devel/tbb \
1.12 afresh1 62: editors/qscintilla,qt6 \
1.4 afresh1 63: graphics/glew \
64: graphics/opencsg \
1.12 afresh1 65: x11/qt6/qt5compat \
66: x11/qt6/qtbase \
67: x11/qt6/qtmultimedia \
68: x11/qt6/qtsvg
1.4 afresh1 69:
70: RUN_DEPENDS = devel/desktop-file-utils \
71: misc/shared-mime-info \
72: net/curl \
73: x11/gtk+4,-guic
1.1 afresh1 74:
75:
76: BUILD_DEPENDS += ${RUN_DEPENDS}
1.4 afresh1 77:
1.18 ! afresh1 78: DEBUG_PACKAGES = ${BUILD_PACKAGES}
1.1 afresh1 79:
1.5 afresh1 80: # Make about say the "right" thing
1.3 afresh1 81: CONFIGURE_ARGS += -DOPENSCAD_VERSION=${V}
82:
1.18 ! afresh1 83: # OpenSCAD uses the program_location (see patch-src_openscad_cc) to
! 84: # figure out resource paths, but on OpenBSD that doesn't work when
! 85: # launched from the PATH.
! 86: # In post-install we add a shell script shim to provide the full path.
! 87: CONFIGURE_ARGS += -DCMAKE_INSTALL_BINDIR=${PREFIX}/libexec
! 88:
1.1 afresh1 89: # Don't use the included stuff, use ours
90: CONFIGURE_ARGS += -DUSE_BUILTIN_CLIPPER2=OFF \
91: -DUSE_BUILTIN_MANIFOLD=OFF
1.12 afresh1 92:
93: # Our QT6 port is more stable
94: CONFIGURE_ARGS += -DUSE_QT6=ON
1.1 afresh1 95:
1.5 afresh1 96: # It might be faster, but at what cost?
1.1 afresh1 97: CONFIGURE_ARGS += -DUSE_MIMALLOC=OFF
98:
99: # I don't know how link in comms/libhidapi
100: CONFIGURE_ARGS += -DENABLE_HIDAPI=OFF
101:
1.18 ! afresh1 102: # We don't have SpNav. Disable in case it get's ported.
! 103: CONFIGURE_ARGS += -DCMAKE_DISABLE_FIND_PACKAGE_SpNav=ON
! 104:
! 105: TEST_IS_INTERACTIVE = X11
! 106:
1.1 afresh1 107: post-extract:
108: rmdir ${WRKSRC}/libraries/MCAD
109: cp -a ${WRKDIR}/MCAD-${MCAD_COMMIT} ${WRKSRC}/libraries/MCAD
110:
111: post-install:
1.18 ! afresh1 112: ${SUBST_PROGRAM} ${FILESDIR}/openscad ${PREFIX}/bin/openscad
1.1 afresh1 113: ${MODPY_COMPILEALL} ${PREFIX}/share/openscad/libraries/MCAD/
114:
115: .include <bsd.port.mk>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>