Makefile revision 6035
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# All components using gobject-introspection must be built with gcc as
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# gobject-introspection 1.46 causes the build to fail when using Studio.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Override PATH set in shared-macros.mk by setting the GNU PATH as default.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH= sha256:d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= https://github.com/lathiat/avahi/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Depends on a Python module from Desktop that is only available 32-bit in S11.
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterCONFIGURE_SBINDIR.64 = $(CONFIGURE_BINDIR.64)
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterCONFIGURE_OPTIONS += --with-avahi-user=daemon
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/avahi
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater# xmltoman is not available
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterCONFIGURE_OPTIONS.64 += --enable-doxygen-man
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterCONFIGURE_OPTIONS.32 += --disable-doxygen-man
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# stack-protector breaks build with gcc 5.3 if not explicitly disabled until
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater# fix for 23185183 is available on all build machines (s12_99 or later)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
a1ad6695ed6f988406cf155aa26376f84f73bcb9Automatic UpdaterCONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
a1ad6695ed6f988406cf155aa26376f84f73bcb9Automatic Updater# NOCONFIGURE=yes -> do not execute "configure" directly from "autogen.sh" (/wo CONFIGURE_OPTIONS...)
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater# running of configure /wo CONFIGURE_OPTIONS + ENV -> configure will fail (on --with-distro=none is missing)
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater# because "sunos" is not among the distros known to avahi.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ( cd $(@D) ; set NOCONFIGURE=yes $(CONFIG_SHELL) autogen.sh )
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater# g-i-r-scanner also need to have PATH to cc
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterCOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(BUILD_32_and_64): PATH = $(SPRO_VROOT)/bin:$(GNUBIN):$(USRBINDIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ( $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) )
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater# Enable ASLR for this component
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater# build standalone sub-components only
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterSUBDIRS = avahi-common avahi-core avahi-client avahi-glib avahi-gobject avahi-ui
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews$(BUILD_32): COMPONENT_BUILD_TARGETS += SUBDIRS="$(SUBDIRS)"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(INSTALL_32): COMPONENT_INSTALL_TARGETS += SUBDIRS="$(SUBDIRS)"
507151045be68c671ffd4e2f37e17cdfa0376fc4Automatic Updater# gobject-introspection tools are used to build, not a runtime dependency
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection