version 1.8, 2025/10/02 02:32:26 |
version 1.9, 2025/10/02 02:41:27 |
|
|
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/ |
|
|