67 lines
2.4 KiB
Makefile
67 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.105 2022/04/18 19:12:07 adam Exp $
|
|
|
|
OVTVER= 11.3.5
|
|
DISTNAME= open-vm-tools-${OVTVER}-18557794
|
|
PKGNAME= open-vm-tools-${OVTVER}
|
|
PKGREVISION= 3
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=vmware/}
|
|
GITHUB_RELEASE= stable-${OVTVER}
|
|
|
|
MAINTAINER= agc@NetBSD.org
|
|
HOMEPAGE= https://github.com/vmware/open-vm-tools
|
|
COMMENT= Open source VMware tools
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64
|
|
|
|
GCC_REQD+= 4.8
|
|
|
|
# Workaround for glib2-2.68.0 c++ fallout.
|
|
CXXFLAGS+= -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_66
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror
|
|
|
|
USE_LANGUAGES= c gnu++11
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= autoconf automake pkg-config
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-docs # Requires doxygen
|
|
CONFIGURE_ARGS+= --disable-grabbitmqproxy
|
|
CONFIGURE_ARGS+= --disable-unity
|
|
CONFIGURE_ARGS+= --disable-vgauth
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
INSTALLATION_DIRS+= share/examples/vmware-tools
|
|
|
|
PKG_SYSCONFSUBDIR= vmware-tools
|
|
EGDIR= ${PREFIX}/share/examples/vmware-tools
|
|
CONF_FILES_PERMS+= ${EGDIR}/poweroff-vm-default ${PKG_SYSCONFDIR}/poweroff-vm-default ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
CONF_FILES_PERMS+= ${EGDIR}/poweron-vm-default ${PKG_SYSCONFDIR}/poweron-vm-default ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
CONF_FILES_PERMS+= ${EGDIR}/resume-vm-default ${PKG_SYSCONFDIR}/resume-vm-default ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
CONF_FILES_PERMS+= ${EGDIR}/statechange.subr ${PKG_SYSCONFDIR}/statechange.subr ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
CONF_FILES_PERMS+= ${EGDIR}/suspend-vm-default ${PKG_SYSCONFDIR}/suspend-vm-default ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
|
|
RCD_SCRIPTS= vmtools
|
|
|
|
SUBST_CLASSES+= fix-etc-path
|
|
SUBST_STAGE.fix-etc-path= pre-configure
|
|
SUBST_MESSAGE.fix-etc-path= Fixing PREFIX
|
|
SUBST_FILES.fix-etc-path+= lib/guestApp/guestApp.c
|
|
SUBST_FILES.fix-etc-path+= lib/procMgr/procMgrPosix.c
|
|
SUBST_VARS.fix-etc-path+= PREFIX
|
|
|
|
CHECK_PORTABILITY_SKIP+= scripts/solaris/network
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoreconf -f -i
|
|
|
|
.include "options.mk"
|
|
.include "../../archivers/libmspack/buildlink3.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../net/libdnet/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../security/xml-security-c/buildlink3.mk"
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
.include "../../mk/fuse.buildlink3.mk"
|
|
.include "../../mk/pam.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|