PORTNAME= open-vm-tools PORTVERSION= 12.3.5 DISTVERSIONPREFIX= stable- PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= emulators MAINTAINER= garga@FreeBSD.org COMMENT= Open VMware tools for FreeBSD VMware guests ${${FLAVOR}_COMMENT} WWW= https://github.com/vmware/open-vm-tools LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING ONLY_FOR_ARCHS= aarch64 amd64 i386 LIB_DEPENDS= libdnet.so:net/libdnet FLAVORS= default nox11 default_CONFLICTS_INSTALL= open-vm-tools-nox11 nox11_PKGNAMESUFFIX= -nox11 nox11_CONFLICTS_INSTALL= open-vm-tools nox11_COMMENT= (without X11) USES= autoreconf gettext-runtime gnome kmod libtool localbase \ pathfix pkgconfig USE_GITHUB= yes GH_ACCOUNT= vmware USE_GNOME= glib20 USE_LDCONFIG= yes USE_RC_SUBR= vmware-guestd vmware-kmod GNU_CONFIGURE= yes CONFIGURE_ARGS+=--disable-vgauth \ --enable-containerinfo=no \ --sysconfdir=${PREFIX}/etc \ --without-icu CONFIGURE_ENV+= SYSDIR=${SRC_BASE}/sys INSTALL_TARGET= install-strip CPPFLAGS+= -Wno-deprecated-declarations SSP_UNSAFE= kernel module does not support ssp WRKSRC_SUBDIR= open-vm-tools PORTDOCS= * OPTIONS_DEFINE= DOCS DEPLOYPKG FUSE LIBNOTIFY OPENSSL X11 OPTIONS_DEFAULT=DOCS FUSE LIBNOTIFY OPENSSL X11 .if ${FLAVOR:U} == nox11 OPTIONS_EXCLUDE:= LIBNOTIFY X11 .endif OPTIONS_SUB= DEPLOYPKG_DESC= DeployPkg plugin LIBNOTIFY_DESC= Desktop notification support DEPLOYPKG_LIB_DEPENDS= libmspack.so:archivers/libmspack DEPLOYPKG_CONFIGURE_ENABLE= deploypkg DOCS_BUILD_DEPENDS= doxygen:devel/doxygen DOCS_CONFIGURE_ENABLE= docs FUSE_USES= fuse LIBNOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify OPENSSL_CONFIGURE_WITH= ssl X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz X11_USES= desktop-file-utils xorg X11_USE= GNOME=gdkpixbuf2,gdkpixbuf2xlib,gtk30,gtkmm30 \ XORG=ice,sm,x11,xext,xi,xinerama,xorgproto,xrandr,xrender,xtst X11_CONFIGURE_WITH= gtk3 gtkmm3 x post-patch: @${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@"\ ${WRKSRC}/lib/guestApp/guestApp.c post-build: cd ${WRKSRC}/modules && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/input ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko \ ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko \ ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/tools.conf \ ${STAGEDIR}${DATADIR}/tools.conf.sample ${MKDIR} ${STAGEDIR}${PREFIX}/share/open-vm-tools/scripts/vmware/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/open-vm-tools/tests/ .include