summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/kBuild/Makefile6
-rw-r--r--emulators/virtualbox-ose/Makefile6
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/kBuild/Makefile b/devel/kBuild/Makefile
index d947f10d0bd6..a09b50f3ecbe 100644
--- a/devel/kBuild/Makefile
+++ b/devel/kBuild/Makefile
@@ -35,7 +35,13 @@ KBUILD_BINS= kDepIDB kDepPre kObjCache kmk kmk_append kmk_ash kmk_cat \
PORTDOCS= QuickReference-kmk.html \
QuickReference-kmk.txt
+# bmake doesn't know about unsetenv=true
+.if defined(.PARSEDIR)
+ENV=
+.export ENV
+.else
.SHELL: path="/bin/sh" unsetenv=true
+.endif
post-patch:
${REINPLACE_CMD} -e '11269d;11274d' ${WRKSRC}/src/sed/configure
diff --git a/emulators/virtualbox-ose/Makefile b/emulators/virtualbox-ose/Makefile
index 2d327b079308..dec91130a4fe 100644
--- a/emulators/virtualbox-ose/Makefile
+++ b/emulators/virtualbox-ose/Makefile
@@ -67,7 +67,13 @@ VDE_DESC= Build with VDE support
VNC_DESC= Build with VNC support
WEBSERVICE_DESC= Build Webservice
+# bmake doesn't know about unsetenv=true
+.if defined(.PARSEDIR)
+ENV=
+.export ENV
+.else
.SHELL: path="/bin/sh" unsetenv=true
+.endif
.include <bsd.port.options.mk>