blob: 8a110889b650b37be22408f1e3603f901efb407c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# New ports collection makefile for: open-vm-tools for FreeBSD
# Date created: 28 Mar 2008
# Whom: mbr@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= open-vm-tools
PORTVERSION= ${BUILD_VER}
PORTREVISION= 1
CATEGORIES= emulators
DISTNAME= open-vm-tools-${RELEASE_DATE}-${BUILD_VER}
MASTER_SITES= SF
MAINTAINER= mbr@freebsd.org
COMMENT?= Open VMware tools for FreeBSD VMware guests
RELEASE_DATE= 2008.03.19
BUILD_VER= 82724
GNU_CONFIGURE= yes
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+= --without-x
.else
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include"
USE_XORG= x11 ice xineramaproto xinerama xrandr xtst
USE_GNOME= gtk12
PLIST_SUB+= X11=""
PLIST= ${PKGDIR}/pkg-plist-x11
.endif
CONFLICTS= vmware-guestd* vmware-tools*
.if defined(WITHOUT_DNET)
CONFIGURE_ARGS+= --without-dnet
.else
BUILD_DEPENDS= ${LOCALBASE}/lib/libdnet.so:${PORTSDIR}/net/libdnet
.endif
USE_RC_SUBR= vmware-guestd.sh
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000
PLIST_SUB+= FIVEONLY="@comment "
.else
PLIST_SUB+= FIVEONLY=""
.endif
post-build:
cd ${WRKSRC}/modules && make
post-install:
${MKDIR} -p ${PREFIX}/lib/vmware-tools/modules/drivers
${MKDIR} -p ${PREFIX}/lib/vmware-tools/modules/input
${MKDIR} -p ${PREFIX}/share/vmware-tools
${INSTALL} ${WRKSRC}/guestd/guestd ${PREFIX}/sbin/vmware-guestd
${INSTALL} ${WRKSRC}/checkvm/checkvm ${PREFIX}/sbin/vmware-checkvm
.if ${OSREL} >= 6
${INSTALL} ${WRKSRC}/hgfsmounter/hgfsmounter ${PREFIX}/sbin/vmware-hgfsmounter
.endif
${INSTALL} ${WRKSRC}/xferlogs/xferlogs ${PREFIX}/sbin/vmware-xferlogs
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko
.if ${OSREL} >= 6
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko
.endif
${INSTALL_SCRIPT} ${WRKSRC}/scripts/freebsd/poweroff-vm-default ${PREFIX}/share/vmware-tools/poweroff-vm-default
${INSTALL_SCRIPT} ${WRKSRC}/scripts/freebsd/poweron-vm-default ${PREFIX}/share/vmware-tools/poweron-vm-default
${INSTALL_SCRIPT} ${WRKSRC}/scripts/freebsd/resume-vm-default ${PREFIX}/share/vmware-tools/resume-vm-default
${INSTALL_SCRIPT} ${WRKSRC}/scripts/freebsd/suspend-vm-default ${PREFIX}/share/vmware-tools/suspend-vm-default
.if !defined(WITHOUT_X11)
${INSTALL} ${WRKSRC}/toolbox/toolbox ${LOCALBASE}/sbin/vmware-toolbox
${INSTALL} ${WRKSRC}/vmware-user/vmware-user ${LOCALBASE}/sbin/vmware-user
.endif
.include <bsd.port.post.mk>
|