version 1.5, 2025/09/24 02:08:44 |
version 1.7, 2025/10/01 03:45:58 |
|
|
|
|
TEST_DEPENDS = graphics/ImageMagick |
TEST_DEPENDS = graphics/ImageMagick |
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES} |
# The openscad script wrapper breaks debug packages |
|
#DEBUG_PACKAGES = ${BUILD_PACKAGES} |
|
|
# Make about say the "right" thing |
# Make about say the "right" thing |
CONFIGURE_ARGS += -DOPENSCAD_VERSION=${V} |
CONFIGURE_ARGS += -DOPENSCAD_VERSION=${V} |
|
|
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 |
|
# resource paths, but on OpenBSD that doesn't work when 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 |
|
${INSTALL_SCRIPT} /dev/null ${PREFIX}/bin/openscad |
|
printf "%s\n%s\n" '#!/bin/sh' 'exec ${TRUEPREFIX}/libexec/openscad "$$@"' \ |
|
> ${PREFIX}/bin/openscad |
${MODPY_COMPILEALL} ${PREFIX}/share/openscad/libraries/MCAD/ |
${MODPY_COMPILEALL} ${PREFIX}/share/openscad/libraries/MCAD/ |
|
|
.include <bsd.port.mk> |
.include <bsd.port.mk> |