2020-11-05 10:07:25 +01:00
|
|
|
# $NetBSD: Makefile,v 1.99 2020/11/05 09:09:10 ryoon Exp $
|
2007-10-17 23:35:53 +02:00
|
|
|
|
2018-09-20 23:41:16 +02:00
|
|
|
OVTVER= 10.3.0
|
|
|
|
DISTNAME= open-vm-tools-${OVTVER}-8931395
|
2018-01-01 07:58:15 +01:00
|
|
|
PKGNAME= open-vm-tools-${OVTVER}
|
2020-11-05 10:07:25 +01:00
|
|
|
PKGREVISION= 12
|
2007-10-17 23:35:53 +02:00
|
|
|
CATEGORIES= sysutils
|
2017-10-08 18:01:30 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=vmware/}
|
2007-10-17 23:35:53 +02:00
|
|
|
|
|
|
|
MAINTAINER= agc@NetBSD.org
|
2016-10-09 05:41:56 +02:00
|
|
|
HOMEPAGE= https://github.com/vmware/open-vm-tools
|
2007-10-17 23:35:53 +02:00
|
|
|
COMMENT= Open source VMware tools
|
2016-10-09 05:41:56 +02:00
|
|
|
LICENSE= gnu-lgpl-v2.1
|
2007-10-17 23:35:53 +02:00
|
|
|
|
2018-01-01 07:56:01 +01:00
|
|
|
GITHUB_PROJECT= open-vm-tools
|
|
|
|
GITHUB_RELEASE= stable-${OVTVER}
|
|
|
|
#WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}/${GITHUB_PROJECT}
|
2017-10-08 18:01:30 +02:00
|
|
|
|
2018-09-20 23:41:16 +02:00
|
|
|
EXTRACT_USING= bsdtar
|
|
|
|
|
2008-01-12 12:28:28 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64
|
2007-11-11 12:02:11 +01:00
|
|
|
|
2016-10-17 22:55:49 +02:00
|
|
|
GCC_REQD+= 4.8
|
2016-10-09 05:41:56 +02:00
|
|
|
BUILDLINK_TRANSFORM.NetBSD+= rm:-Werror
|
|
|
|
|
2017-10-08 18:01:30 +02:00
|
|
|
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}
|
2008-08-31 08:36:47 +02:00
|
|
|
|
2017-10-08 18:01:30 +02:00
|
|
|
INSTALLATION_DIRS+= share/examples/vmware-tools
|
2008-08-31 08:36:47 +02:00
|
|
|
|
2017-10-08 18:01:30 +02:00
|
|
|
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
|
2008-08-31 08:36:47 +02:00
|
|
|
|
2016-10-17 22:55:49 +02:00
|
|
|
SUBST_CLASSES+= fix-etc-path
|
|
|
|
SUBST_STAGE.fix-etc-path= pre-configure
|
2016-12-23 05:11:03 +01:00
|
|
|
SUBST_MESSAGE.fix-etc-path= Fixing PREFIX
|
2016-10-17 22:55:49 +02:00
|
|
|
SUBST_FILES.fix-etc-path+= lib/guestApp/guestApp.c
|
2016-12-23 05:11:03 +01:00
|
|
|
SUBST_FILES.fix-etc-path+= lib/procMgr/procMgrPosix.c
|
2016-10-17 22:55:49 +02:00
|
|
|
SUBST_VARS.fix-etc-path+= PREFIX
|
|
|
|
|
2013-04-01 14:25:16 +02:00
|
|
|
pre-configure:
|
2017-10-08 18:01:30 +02:00
|
|
|
cd ${WRKSRC} && autoreconf -f -i
|
2008-08-31 08:36:47 +02:00
|
|
|
|
2014-09-22 14:02:05 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
|
|
_WRAP_EXTRA_ARGS.CC+= -Wno-error=unused-local-typedef
|
2014-12-01 13:39:16 +01:00
|
|
|
CWRAPPERS_APPEND.cc+= -Wno-error=unused-local-typedef
|
2016-05-25 17:35:32 +02:00
|
|
|
.elif !empty(PKGSRC_COMPILER:Mgcc) && empty(CC_VERSION:U:Mgcc-[1-3].*) && empty(CC_VERSION:U:Mgcc-4.[0-7]*)
|
2016-05-07 12:10:09 +02:00
|
|
|
_WRAP_EXTRA_ARGS.CC+= -Wno-error=unused-local-typedefs -Wno-error=unused-but-set-variable
|
|
|
|
CWRAPPERS_APPEND.cc+= -Wno-error=unused-local-typedefs -Wno-error=unused-but-set-variable
|
2014-09-22 14:02:05 +02:00
|
|
|
.endif
|
|
|
|
|
2017-10-08 18:01:30 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2016-10-09 05:41:56 +02:00
|
|
|
.include "../../archivers/libmspack/buildlink3.mk"
|
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
2008-08-31 08:36:47 +02:00
|
|
|
.include "../../net/libdnet/buildlink3.mk"
|
2007-10-17 23:35:53 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2016-10-09 05:41:56 +02:00
|
|
|
.include "../../security/xml-security-c/buildlink3.mk"
|
2017-10-08 18:01:30 +02:00
|
|
|
.include "../../mk/fuse.buildlink3.mk"
|
|
|
|
.include "../../mk/pam.buildlink3.mk"
|
2007-10-17 23:35:53 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|