Annotation of mystuff-openscad/cad/openscad/Makefile, Revision 1.11
1.10 afresh1 1: COMMENT = programmers solid 3D CAD modeller
1.1 afresh1 2:
1.4 afresh1 3: V = 2025.09.12
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
15: GH_COMMIT = d38a6251a3c95f7455ba3b368a9dd045483e5b5b
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 \
24: x11/qt5
25:
1.11 ! afresh1 26: WANTLIB += ${COMPILER_LIBCXX} 3mf Clipper2 EGL GL GLEW GLU Qt5Concurrent
1.1 afresh1 27: WANTLIB += Qt5Core Qt5DBus Qt5Gamepad Qt5Gui Qt5Multimedia Qt5Network
1.11 ! afresh1 28: WANTLIB += Qt5OpenGL Qt5Svg Qt5Widgets boost_atomic-mt boost_filesystem-mt
! 29: WANTLIB += boost_program_options-mt boost_regex-mt boost_system-mt
! 30: WANTLIB += c cairo double-conversion fontconfig freetype glib-2.0
! 31: WANTLIB += gmp gmpxx harfbuzz intl m manifold mpfr opencsg qscintilla2_qt5
! 32: WANTLIB += 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.4 afresh1 37: BUILD_DEPENDS = cad/clipper2 \
38: devel/bison \
39: devel/gettext,-tools \
40: devel/sanitizers-cmake \
41: graphics/glslang \
42: graphics/vulkan-tools \
43: math/cgal \
44: math/eigen3 \
45: shells/bash
46:
47: LIB_DEPENDS = archivers/libzip \
1.11 ! afresh1 48: cad/clipper2 \
1.4 afresh1 49: cad/manifold \
50: devel/boost \
51: devel/gettext \
52: devel/glib2 \
53: devel/gmp \
54: devel/gmp,-cxx \
55: devel/lib3mf \
56: devel/mpfr \
57: devel/tbb \
58: editors/qscintilla \
59: graphics/glew \
60: graphics/opencsg \
61: x11/qt5/qtbase \
62: x11/qt5/qtgamepad \
63: x11/qt5/qtmultimedia \
64: x11/qt5/qtsvg
65:
66: RUN_DEPENDS = devel/desktop-file-utils \
67: misc/shared-mime-info \
68: net/curl \
69: x11/gtk+4,-guic
1.1 afresh1 70:
71:
1.5 afresh1 72: # I didn't test fully, but it does complain
1.1 afresh1 73: BUILD_DEPENDS += ${RUN_DEPENDS}
1.4 afresh1 74:
75: TEST_DEPENDS = graphics/ImageMagick
1.1 afresh1 76:
1.7 afresh1 77: # The openscad script wrapper breaks debug packages
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.1 afresh1 83: # Don't use the included stuff, use ours
84: CONFIGURE_ARGS += -DUSE_BUILTIN_CLIPPER2=OFF \
85: -DUSE_BUILTIN_MANIFOLD=OFF
86:
1.5 afresh1 87: # It might be faster, but at what cost?
1.1 afresh1 88: CONFIGURE_ARGS += -DUSE_MIMALLOC=OFF
89:
90: # We don't have Pillow
91: CONFIGURE_ARGS += -DUSE_IMAGE_COMPARE_PY=OFF
92:
93: # I don't know how link in comms/libhidapi
94: CONFIGURE_ARGS += -DENABLE_HIDAPI=OFF
95:
96: post-extract:
97: rmdir ${WRKSRC}/libraries/MCAD
98: cp -a ${WRKDIR}/MCAD-${MCAD_COMMIT} ${WRKSRC}/libraries/MCAD
99:
1.9 afresh1 100: # OpenSCAD uses the program_location (see patch-src_openscad_cc) to
101: # figure out resource paths, but on OpenBSD that doesn't work when
102: # launched from the PATH So, add a shell script shim to fix up argv[0]
103: # to be absolute so our patch works.
1.1 afresh1 104: post-install:
1.6 afresh1 105: mv ${PREFIX}/bin/openscad ${PREFIX}/libexec/openscad
106: ${INSTALL_SCRIPT} /dev/null ${PREFIX}/bin/openscad
1.9 afresh1 107: printf "%s\n%s\n" \
108: '#!/bin/sh' \
109: 'exec ${TRUEPREFIX}/libexec/openscad "$$@"' \
1.6 afresh1 110: > ${PREFIX}/bin/openscad
1.1 afresh1 111: ${MODPY_COMPILEALL} ${PREFIX}/share/openscad/libraries/MCAD/
112:
113: .include <bsd.port.mk>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>