diff options
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/vmware2/Makefile | 8 | ||||
-rw-r--r-- | emulators/vmware3/Makefile | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/emulators/vmware2/Makefile b/emulators/vmware2/Makefile index 6483121387f4..e94f0f73e045 100644 --- a/emulators/vmware2/Makefile +++ b/emulators/vmware2/Makefile @@ -52,6 +52,10 @@ BROKEN= "Systems prior to 400013 is out of support" BROKEN= "This software absolutely requires Linux procfs support" .endif +.if !exists(/sys/Makefile) +BROKEN= "Kernel source files required" +.endif + .if exists(${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net) .include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net" .endif @@ -65,6 +69,10 @@ post-patch: ${CP} ${FILESDIR}/Makefile ${WRKSRC} ${CP} ${FILESDIR}/Makefile.vmmon ${WRKSRC}/vmmon-only/Makefile ${RM} -rf ${WRKSRC}/vmmon-only/linux/ +.if exists?(/sys/compat/linux/linux_ioctl.h) + ${PERL} -i -pe 's,i386(/linux/linux_ioctl\.h),compat$$1,' \ + ${WRKSRC}/vmnet-only/freebsd/vmnet_linux.c +.endif setoptions: ${SED} -e 's;@@PREFIX@@;${PREFIX};' \ diff --git a/emulators/vmware3/Makefile b/emulators/vmware3/Makefile index 6483121387f4..e94f0f73e045 100644 --- a/emulators/vmware3/Makefile +++ b/emulators/vmware3/Makefile @@ -52,6 +52,10 @@ BROKEN= "Systems prior to 400013 is out of support" BROKEN= "This software absolutely requires Linux procfs support" .endif +.if !exists(/sys/Makefile) +BROKEN= "Kernel source files required" +.endif + .if exists(${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net) .include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net" .endif @@ -65,6 +69,10 @@ post-patch: ${CP} ${FILESDIR}/Makefile ${WRKSRC} ${CP} ${FILESDIR}/Makefile.vmmon ${WRKSRC}/vmmon-only/Makefile ${RM} -rf ${WRKSRC}/vmmon-only/linux/ +.if exists?(/sys/compat/linux/linux_ioctl.h) + ${PERL} -i -pe 's,i386(/linux/linux_ioctl\.h),compat$$1,' \ + ${WRKSRC}/vmnet-only/freebsd/vmnet_linux.c +.endif setoptions: ${SED} -e 's;@@PREFIX@@;${PREFIX};' \ |