version 1.7, 2025/10/01 03:45:58 |
version 1.10, 2025/10/02 02:56:58 |
|
|
COMMENT = the programmers solid 3D CAD modeller |
COMMENT = programmers solid 3D CAD modeller |
|
|
V = 2025.09.12 |
V = 2025.09.12 |
DISTNAME = openscad-${V} |
DISTNAME = openscad-${V} |
|
|
-DUSE_BUILTIN_MANIFOLD=OFF |
-DUSE_BUILTIN_MANIFOLD=OFF |
|
|
# It might be faster, but at what cost? |
# It might be faster, but at what cost? |
#LIB_DEPENDS += devel/mimalloc |
|
CONFIGURE_ARGS += -DUSE_MIMALLOC=OFF |
CONFIGURE_ARGS += -DUSE_MIMALLOC=OFF |
|
|
# We don't have Pillow |
# We don't have Pillow |
|
|
rmdir ${WRKSRC}/libraries/MCAD |
rmdir ${WRKSRC}/libraries/MCAD |
cp -a ${WRKDIR}/MCAD-${MCAD_COMMIT} ${WRKSRC}/libraries/MCAD |
cp -a ${WRKDIR}/MCAD-${MCAD_COMMIT} ${WRKSRC}/libraries/MCAD |
|
|
# OpenSCAD uses the program_location (see patch-src_openscad_cc) to figure out |
# OpenSCAD uses the program_location (see patch-src_openscad_cc) to |
# resource paths, but on OpenBSD that doesn't work when launched from the PATH |
# figure out resource paths, but on OpenBSD that doesn't work when |
# So, add a shell script shim to fix up argv[0] to be absolute so our patch works. |
# launched from the PATH So, add a shell script shim to fix up argv[0] |
|
# to be absolute so our patch works. |
post-install: |
post-install: |
mv ${PREFIX}/bin/openscad ${PREFIX}/libexec/openscad |
mv ${PREFIX}/bin/openscad ${PREFIX}/libexec/openscad |
${INSTALL_SCRIPT} /dev/null ${PREFIX}/bin/openscad |
${INSTALL_SCRIPT} /dev/null ${PREFIX}/bin/openscad |
printf "%s\n%s\n" '#!/bin/sh' 'exec ${TRUEPREFIX}/libexec/openscad "$$@"' \ |
printf "%s\n%s\n" \ |
|
'#!/bin/sh' \ |
|
'exec ${TRUEPREFIX}/libexec/openscad "$$@"' \ |
> ${PREFIX}/bin/openscad |
> ${PREFIX}/bin/openscad |
${MODPY_COMPILEALL} ${PREFIX}/share/openscad/libraries/MCAD/ |
${MODPY_COMPILEALL} ${PREFIX}/share/openscad/libraries/MCAD/ |
|
|