[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / mystuff-openscad / cad / openscad

Annotation of mystuff-openscad/cad/openscad/Makefile, Revision 1.12

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 \
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.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 \
1.12    ! afresh1    58:                        editors/qscintilla,qt6 \
1.4       afresh1    59:                        graphics/glew \
                     60:                        graphics/opencsg \
1.12    ! afresh1    61:                        x11/qt6/qt5compat \
        !            62:                        x11/qt6/qtbase \
        !            63:                        x11/qt6/qtmultimedia \
        !            64:                        x11/qt6/qtsvg
1.4       afresh1    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
1.12    ! afresh1    86:
        !            87: # Our QT6 port is more stable
        !            88: CONFIGURE_ARGS +=      -DUSE_QT6=ON
1.1       afresh1    89:
1.5       afresh1    90: # It might be faster, but at what cost?
1.1       afresh1    91: CONFIGURE_ARGS +=      -DUSE_MIMALLOC=OFF
                     92:
                     93: # We don't have Pillow
                     94: CONFIGURE_ARGS +=      -DUSE_IMAGE_COMPARE_PY=OFF
                     95:
                     96: # I don't know how link in comms/libhidapi
                     97: CONFIGURE_ARGS +=      -DENABLE_HIDAPI=OFF
                     98:
                     99: post-extract:
                    100:        rmdir ${WRKSRC}/libraries/MCAD
                    101:        cp -a ${WRKDIR}/MCAD-${MCAD_COMMIT} ${WRKSRC}/libraries/MCAD
                    102:
1.9       afresh1   103: # OpenSCAD uses the program_location (see patch-src_openscad_cc) to
                    104: # figure out resource paths, but on OpenBSD that doesn't work when
                    105: # launched from the PATH So, add a shell script shim to fix up argv[0]
                    106: # to be absolute so our patch works.
1.1       afresh1   107: post-install:
1.6       afresh1   108:        mv ${PREFIX}/bin/openscad ${PREFIX}/libexec/openscad
                    109:        ${INSTALL_SCRIPT} /dev/null ${PREFIX}/bin/openscad
1.9       afresh1   110:        printf "%s\n%s\n" \
                    111:            '#!/bin/sh' \
                    112:            'exec ${TRUEPREFIX}/libexec/openscad "$$@"' \
1.6       afresh1   113:            > ${PREFIX}/bin/openscad
1.1       afresh1   114:        ${MODPY_COMPILEALL} ${PREFIX}/share/openscad/libraries/MCAD/
                    115:
                    116: .include <bsd.port.mk>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>