Obsolete golang-120
[oi-userland.git] / components / sysutils / open-vm-tools / Makefile
blobdc83c35800ac0b07d20c1a681987cd73e97b35f1
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2016 Adam Stevko
13 # Copyright 2017 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
14 # Copyright 2019 Michal Nowak
17 BUILD_BITS= 64
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= open-vm-tools
22 COMPONENT_VERSION= 11.0.5
23 COMPONENT_REVISION= 1
24 COMPONENT_SUMMARY= open-vm-tools is a set of services and modules that enable several features in VMware products for better management of, and seamless user interactions with, guests.
25 COMPONENT_PROJECT_URL= https://github.com/vmware/open-vm-tools
26 COMPONENT_FMRI= system/virtualization/open-vm-tools
27 COMPONENT_CLASSIFICATION= Applications/System Utilities
28 COMPONENT_SRC= $(COMPONENT_NAME)-stable-$(COMPONENT_VERSION)
29 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
30 COMPONENT_ARCHIVE_URL= https://github.com/vmware/$(COMPONENT_NAME)/archive/stable-$(COMPONENT_VERSION).tar.gz
31 COMPONENT_ARCHIVE_HASH= sha256:f4300d8ccf665a3ff435476bc372a3f189a98c2b830730608d4286226802bd97
32 COMPONENT_LICENSE= LGPLv2.1
33 COMPONENT_LICENSE_FILE= $(COMPONENT_NAME).license
35 TEST_TARGET= $(NO_TESTS)
37 include $(WS_MAKE_RULES)/common.mk
39 COMPONENT_POST_UNPACK_ACTION = \
40 ($(MV) $(SOURCE_DIR)/open-vm-tools/* $(SOURCE_DIR) && \
41 $(RM) -r $(SOURCE_DIR)/open-vm-tools)
43 COMPONENT_PREP_ACTION = ( cd $(@D) && autoreconf -v -i -f )
45 COMPONENT_PRE_CONFIGURE_ACTION = \
46 ($(CLONEY) $(SOURCE_DIR) $(@D) )
48 CFLAGS += -std=gnu99
50 # This package need defines in CPPFLAGS so they apply to
51 # C++ compiles as well as C.
52 CPPFLAGS += -D__EXTENSIONS__
53 CPPFLAGS += -D_XOPEN_SOURCE=600
54 CPPFLAGS += -D__SOLARIS__=1
55 # open-vm-tools have if defined(sun) all over (should be __sun)
56 CPPFLAGS += -Dsun
57 # and this one means S11 or later (not S10, S9)
58 CPPFLAGS += -DSOL11
60 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
62 CFLAGS += -Wno-deprecated-declarations
63 CFLAGS += -Wno-unused-local-typedefs
64 CFLAGS += -Wno-unused-variable
66 LDFLAGS += -lnsl
68 CONFIGURE_OPTIONS += --disable-multimon
69 CONFIGURE_OPTIONS += --disable-static
70 CONFIGURE_OPTIONS += --disable-tests
71 CONFIGURE_OPTIONS += --enable-deploypkg=no
72 CONFIGURE_OPTIONS += --with-gtk3
73 CONFIGURE_OPTIONS += --with-gtkmm3
74 CONFIGURE_OPTIONS += --without-icu
75 CONFIGURE_OPTIONS += --without-kernel-modules
76 CONFIGURE_OPTIONS += --without-xerces
77 CONFIGURE_OPTIONS += --sysconfdir=/etc
79 # Need C++ compatible xdr headers
80 CONFIGURE_OPTIONS += RPCGENFLAGS="-C"
82 # Build dependencies
83 REQUIRED_PACKAGES += developer/documentation-tool/doxygen
85 # Not found automatically
86 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
87 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
89 # Auto-generated dependencies
90 REQUIRED_PACKAGES += library/c++/glibmm
91 REQUIRED_PACKAGES += library/c++/sigcpp
92 REQUIRED_PACKAGES += library/desktop/c++/atkmm
93 REQUIRED_PACKAGES += library/desktop/c++/cairomm
94 REQUIRED_PACKAGES += library/desktop/c++/gtkmm3
95 REQUIRED_PACKAGES += library/desktop/gtk3
96 REQUIRED_PACKAGES += library/glib2
97 REQUIRED_PACKAGES += library/libfuse
98 REQUIRED_PACKAGES += SUNWcs
99 REQUIRED_PACKAGES += system/library
100 REQUIRED_PACKAGES += system/library/libdnet
101 REQUIRED_PACKAGES += x11/library/libice
102 REQUIRED_PACKAGES += x11/library/libsm
103 REQUIRED_PACKAGES += x11/library/libx11
104 REQUIRED_PACKAGES += x11/library/libxext
105 REQUIRED_PACKAGES += x11/library/libxi
106 REQUIRED_PACKAGES += x11/library/libxrandr
107 REQUIRED_PACKAGES += x11/library/libxtst