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