mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-15 20:20:30 +00:00
65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com)
|
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="open-vm-tools"
|
|
PKG_VERSION="12.4.0"
|
|
PKG_SHA256="ba091c58f0d61c2896418c7d04506a7ea44c7594401209928270576fa018c23a"
|
|
PKG_ARCH="x86_64"
|
|
[ "${DISTRO}" = "Lakka" ] && PKG_ARCH+=" i386" || true
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://github.com/vmware/open-vm-tools"
|
|
PKG_URL="https://github.com/vmware/open-vm-tools/archive/stable-${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain fuse3 glib libdnet libtirpc"
|
|
PKG_LONGDESC="open-vm-tools: open source implementation of VMware Tools"
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-docs \
|
|
--disable-tests \
|
|
--disable-containerinfo \
|
|
--disable-deploypkg \
|
|
--without-pam \
|
|
--without-gtk2 \
|
|
--without-gtkmm \
|
|
--without-ssl \
|
|
--without-x \
|
|
--without-xerces \
|
|
--without-icu \
|
|
--without-kernel-modules \
|
|
--with-fuse=fuse3 \
|
|
--with-udev-rules-dir=/usr/lib/udev/rules.d/ \
|
|
--with-sysroot=${SYSROOT_PREFIX}"
|
|
|
|
configure_package() {
|
|
PKG_CONFIGURE_SCRIPT="${PKG_BUILD}/open-vm-tools/configure"
|
|
}
|
|
|
|
post_unpack() {
|
|
# Hack to allow package to be bumped without linking against old libraries
|
|
rm -f ${SYSROOT_PREFIX}/usr/lib/libvmtools*
|
|
}
|
|
|
|
pre_configure_target() {
|
|
export LIBS="-ldnet -ltirpc"
|
|
}
|
|
|
|
post_configure_target() {
|
|
libtool_remove_rpath libtool
|
|
}
|
|
|
|
post_makeinstall_target() {
|
|
rm -rf ${INSTALL}/sbin
|
|
rm -rf ${INSTALL}/usr/share
|
|
rm -rf ${INSTALL}/etc/vmware-tools/scripts/vmware/network
|
|
|
|
chmod -x ${INSTALL}/usr/lib/udev/rules.d/*.rules
|
|
|
|
find ${INSTALL}/etc/vmware-tools/ -type f | xargs sed -i '/.*expr.*/d'
|
|
}
|
|
|
|
post_install() {
|
|
enable_service vmtoolsd.service
|
|
enable_service vmware-vmblock-fuse.service
|
|
}
|