mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
be35ffec8d
PR: 258754 Reported by: John Wolfe <jwolfe@vmware.com> Sponsored by: Rubicon Communications, LLC ("Netgate")
92 lines
2.5 KiB
Makefile
92 lines
2.5 KiB
Makefile
# Created by: mbr@FreeBSD.org
|
|
|
|
PORTNAME= open-vm-tools
|
|
PORTVERSION= 11.3.5
|
|
DISTVERSIONPREFIX= stable-
|
|
PORTEPOCH= 2
|
|
CATEGORIES= emulators
|
|
|
|
MAINTAINER= garga@FreeBSD.org
|
|
COMMENT= Open VMware tools for FreeBSD VMware guests ${${FLAVOR}_COMMENT}
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
ONLY_FOR_ARCHS= amd64 aarch64 i386
|
|
|
|
LIB_DEPENDS= libdnet.so:net/libdnet \
|
|
libmspack.so:archivers/libmspack
|
|
|
|
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 \
|
|
--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 FUSE LIBNOTIFY OPENSSL X11
|
|
OPTIONS_DEFAULT=DOCS FUSE LIBNOTIFY OPENSSL X11
|
|
.if ${FLAVOR:U} == nox11
|
|
OPTIONS_EXCLUDE:= LIBNOTIFY X11
|
|
.endif
|
|
OPTIONS_SUB=
|
|
|
|
LIBNOTIFY_DESC= Desktop notification support
|
|
|
|
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
|
|
X11_USES= xorg
|
|
X11_USE= GNOME=gdkpixbuf2,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 <bsd.port.mk>
|