summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emulators/qemu-devel/Makefile2
-rw-r--r--emulators/qemu/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile
index 895cd7595003..3aed363bb8cf 100644
--- a/emulators/qemu-devel/Makefile
+++ b/emulators/qemu-devel/Makefile
@@ -43,7 +43,7 @@ ONLY_FOR_ARCHS= amd64 i386
NO_PACKAGE= Depends on kernel, and module not redistributable
CONFIGURE_ARGS+= --enable-kqemu
PLIST_SUB= WITH_KQEMU=""
-PLIST_SUB+= KMODDIR=${KMODDIR}
+PLIST_SUB+= KMODDIR=${KMODDIR:C/^\///}
.else
CONFIGURE_ARGS+= --disable-kqemu
PLIST_SUB= WITH_KQEMU="@comment "
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index 895cd7595003..3aed363bb8cf 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -43,7 +43,7 @@ ONLY_FOR_ARCHS= amd64 i386
NO_PACKAGE= Depends on kernel, and module not redistributable
CONFIGURE_ARGS+= --enable-kqemu
PLIST_SUB= WITH_KQEMU=""
-PLIST_SUB+= KMODDIR=${KMODDIR}
+PLIST_SUB+= KMODDIR=${KMODDIR:C/^\///}
.else
CONFIGURE_ARGS+= --disable-kqemu
PLIST_SUB= WITH_KQEMU="@comment "