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