Lines 18-23
Link Here
|
18 |
RELEASE_VER= 8.6.0 |
18 |
RELEASE_VER= 8.6.0 |
19 |
BUILD_VER= 425873 |
19 |
BUILD_VER= 425873 |
20 |
|
20 |
|
|
|
21 |
OPTIONS_DEFINE= X11 LIBNOTIFY UNITY FUSE DNET ICU |
22 |
OPTIONS_DEFAULT= X11 LIBNOTIFY FUSE DNET ICU |
23 |
OPTIONS_SUB= |
24 |
|
25 |
DNET_DESC= libdnet support |
26 |
LIBNOTIFY_DESC= Desktop notification support |
27 |
UNITY_DESC= liburiparser support |
28 |
|
29 |
X11_CONFIGURE_WITH= x gtk2 gtkmm |
30 |
X11_LDFLAGS= -L${LOCALBASE}/lib |
31 |
X11_USE= xorg=x11,ice,sm,xext,xineramaproto,xinerama,xrandr,xrender,xtst \ |
32 |
gnome=gtk20,gtkmm24 |
33 |
X11_USES= fuse |
34 |
LIBNOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify |
35 |
UNITY_CONFIGURE_ENV= CUSTOM_URIPARSER_CPPFLAGS="-I${LOCALBASE}/include/uriparser" |
36 |
UNITY_LIB_DEPENDS= liburiparser.so:${PORTSDIR}/net/uriparser |
37 |
UNITY_CONFIGURE_ENABLE= unity |
38 |
DNET_CONFIGURE_WITH= dnet |
39 |
DNET_LIB_DEPENDS= libdnet.so:${PORTSDIR}/net/libdnet |
40 |
ICU_CONFIGURE_WITH= icu |
41 |
ICU_LIB_DEPENDS= libicuuc.so:${PORTSDIR}/devel/icu |
42 |
|
21 |
WRKSRC= ${WRKDIR}/open-vm-tools-${RELEASE_VER}-${BUILD_VER} |
43 |
WRKSRC= ${WRKDIR}/open-vm-tools-${RELEASE_VER}-${BUILD_VER} |
22 |
GNU_CONFIGURE= yes |
44 |
GNU_CONFIGURE= yes |
23 |
USES= pkgconfig kmod |
45 |
USES= pkgconfig kmod |
Lines 29-81
Link Here
|
29 |
SSP_UNSAFE= kernel module does not support ssp |
52 |
SSP_UNSAFE= kernel module does not support ssp |
30 |
|
53 |
|
31 |
CONFIGURE_ARGS+= --without-procps --sysconfdir=${LOCALBASE}/etc |
54 |
CONFIGURE_ARGS+= --without-procps --sysconfdir=${LOCALBASE}/etc |
32 |
.if defined(WITHOUT_X11) |
|
|
33 |
CONFIGURE_ARGS+= --without-x --without-gtk2 --without-gtkmm |
34 |
PLIST_SUB+= X11="@comment " |
35 |
CONFLICTS= open-vm-tools-[0-9]* |
36 |
.else |
37 |
.if !defined(WITHOUT_LIBNOTIFY) |
38 |
LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify |
39 |
.endif |
40 |
.if defined(WITH_UNITY) |
41 |
CONFIGURE_ENV+= CUSTOM_URIPARSER_CPPFLAGS="-I${LOCALBASE}/include/uriparser" |
42 |
LIB_DEPENDS+= liburiparser.so:${PORTSDIR}/net/uriparser |
43 |
.else |
44 |
CONFIGURE_ARGS+= --disable-unity |
45 |
.endif |
46 |
CONFIGURE_ARGS+= --with-x |
47 |
LDFLAGS+= -L${LOCALBASE}/lib |
48 |
USE_XORG= x11 ice sm xext xineramaproto xinerama xrandr xrender \ |
49 |
xtst |
50 |
USE_GNOME+= gtk20 gtkmm24 |
51 |
PLIST_SUB+= X11="" |
52 |
CONFLICTS= open-vm-tools-nox11-[0-9]* |
53 |
.endif |
54 |
|
55 |
|
55 |
.if !defined(WITHOUT_FUSE) |
|
|
56 |
USES+= fuse |
57 |
PLIST_SUB+= FUSE="" |
58 |
.else |
59 |
PLIST_SUB+= FUSE="@comment " |
60 |
.endif |
61 |
|
62 |
CONFLICTS+= vmware-guestd[0-9]* vmware-tools[0-9]* |
56 |
CONFLICTS+= vmware-guestd[0-9]* vmware-tools[0-9]* |
63 |
SUB_FILES= pkg-message |
57 |
SUB_FILES= pkg-message |
64 |
|
58 |
|
65 |
.if defined(WITHOUT_DNET) |
59 |
USE_RC_SUBR= vmware-guestd vmware-kmod |
66 |
CONFIGURE_ARGS+= --without-dnet |
|
|
67 |
.else |
68 |
LIB_DEPENDS+= libdnet.so:${PORTSDIR}/net/libdnet |
69 |
.endif |
70 |
|
60 |
|
71 |
.if defined(WITHOUT_ICU) |
61 |
.include <bsd.port.options.mk> |
72 |
CONFIGURE_ARGS+= --without-icu |
62 |
|
|
|
63 |
.if ${PORT_OPTIONS:MX11} |
64 |
CONFLICTS= open-vm-tools-nox11-[0-9]* |
73 |
.else |
65 |
.else |
74 |
LIB_DEPENDS+= libicuuc.so:${PORTSDIR}/devel/icu |
66 |
CONFLICTS= open-vm-tools-[0-9]* |
75 |
.endif |
67 |
.endif |
76 |
|
68 |
|
77 |
USE_RC_SUBR= vmware-guestd vmware-kmod |
|
|
78 |
|
79 |
.include <bsd.port.pre.mk> |
69 |
.include <bsd.port.pre.mk> |
80 |
|
70 |
|
81 |
.if ${ARCH} == "sparc64" |
71 |
.if ${ARCH} == "sparc64" |
Lines 83-89
Link Here
|
83 |
.endif |
73 |
.endif |
84 |
|
74 |
|
85 |
post-build: |
75 |
post-build: |
86 |
(cd ${WRKSRC}/modules && env ${MAKE_ENV} ${MAKE} ${MAKE_ARGS}) |
76 |
cd ${WRKSRC}/modules && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} |
87 |
|
77 |
|
88 |
post-install: |
78 |
post-install: |
89 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers |
79 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers |