summaryrefslogtreecommitdiff
path: root/emulators/vmware-guestd5
diff options
context:
space:
mode:
authorMakoto Matsushita <matusita@FreeBSD.org>2008-03-29 14:20:06 +0000
committerMakoto Matsushita <matusita@FreeBSD.org>2008-03-29 14:20:06 +0000
commitd294c30cf16f171fd556586630522bf95d7650f3 (patch)
tree07053fb4e96e8d27e8920cdfba464d48f73cd955 /emulators/vmware-guestd5
parentUpdate to 6.0.3 build 80004. (diff)
Update to 5.5.5 build 56455. Also fix for FreeBSD 8-current guest.
PR: 118566 Submitted by: Tomoyuki Okazaki (okazaki at kick dot group dot japan)
Diffstat (limited to 'emulators/vmware-guestd5')
-rw-r--r--emulators/vmware-guestd5/Makefile31
1 files changed, 23 insertions, 8 deletions
diff --git a/emulators/vmware-guestd5/Makefile b/emulators/vmware-guestd5/Makefile
index 4d53d96c8fbc..b44520196eeb 100644
--- a/emulators/vmware-guestd5/Makefile
+++ b/emulators/vmware-guestd5/Makefile
@@ -7,7 +7,7 @@
PORTNAME= vmware
PORTVERSION= ${VMWARE_VER}.${BUILD_VER}
-PORTREVISION?= 3
+#PORTREVISION?= 0
CATEGORIES= emulators kld
MASTER_SITES= # bundled with VMware Workstation
PKGNAMESUFFIX?= -guestd
@@ -37,7 +37,11 @@ USE_ICONV= yes
USE_GETTEXT= yes
USE_XLIB= yes
USE_GNOME= glib12 gtk12
+.if (${OSVERSION} >= 600000)
+LIB_DEPENDS+= c.6:${PORTSDIR}/misc/compat6x
+.else
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
+.endif
.else
PLIST_SUB+= INSTALLXGTKTOOL:="@comment "
.endif
@@ -48,8 +52,8 @@ USE_RC_SUBR= vmware-guestd.sh
RESTRICTED= "Not sure if we can redistribute this."
NO_PACKAGE= ${RESTRICTED}
-VMWARE_VER= 5.5.1
-BUILD_VER= 19175
+VMWARE_VER= 5.5.5
+BUILD_VER= 56455
.include <bsd.port.pre.mk>
@@ -59,10 +63,18 @@ MOUNT= /sbin/mount
UMOUNT= /sbin/umount
.if ${ARCH} == i386
+.if (${OSVERSION} >= 600000)
+BITS?= 32-6
+.else
BITS?= 32
+.endif
.else # ${ARCH} == amd64
+.if (${OSVERSION} >= 600000)
+BITS?= 64-6
+.else
BITS?= 64
.endif
+.endif
.if defined(VMWARE_X_PORTS)
@@ -75,7 +87,7 @@ VMWARE_KMODDIR= ${PREFIX}/lib/vmware-tools/modules
.if !defined(WITHOUT_VMWARE_VMMEMCTL) && exists(/usr/src/sys/Makefile)
WITH_VMWARE_VMMEMCTL=YES
.endif
-.if !defined(WITHOUT_VMWARE_VMXNET) && (${BITS} == 32)
+.if !defined(WITHOUT_VMWARE_VMXNET) && (${ARCH} == i386)
WITH_VMWARE_VMXNET=YES
.endif
@@ -94,9 +106,12 @@ VMWARE_VMXNET_PATH= 5.3-i386/vmxnet.ko
VMWARE_VMXNET_PATH= 5.3-amd64/vmxnet.ko
.endif
.else
-# VMware doesn't provide vmxnet.ko for other versions
-.undef WITH_VMWARE_VMXNET
-PLIST_SUB+= VMWARE_VMXNET:="@comment "
+PLIST_SUB+= VMWARE_VMXNET:=""
+.if ${BITS} == 32-6
+VMWARE_VMXNET_PATH= 6.0-i386/vmxnet.ko
+.else
+VMWARE_VMXNET_PATH= 6.0-amd64/vmxnet.ko
+.endif
.endif
.else
PLIST_SUB+= VMWARE_VMXNET:="@comment "
@@ -155,7 +170,7 @@ do-install:
if [ ! -d ${X11BASE}/lib/modules/input ] ; then \
${MKDIR} ${X11BASE}/lib/modules/input ; \
fi
-.if ${BITS} == 32
+.if ${ARCH} == i386
${INSTALL_DATA} ${WRKSRC}/lib/configurator/XOrg/6.8.x/vmmouse_drv.o ${X11BASE}/lib/modules/input/vmmouse_drv.o_VMware
.else
${INSTALL_DATA} ${WRKSRC}/lib/configurator/XOrg/6.8.x_64/vmmouse_drv.o ${X11BASE}/lib/modules/input/vmmouse_drv.o_VMware