5255N/A#
5255N/A# CDDL HEADER START
5255N/A#
5255N/A# The contents of this file are subject to the terms of the
5255N/A# Common Development and Distribution License (the "License").
5255N/A# You may not use this file except in compliance with the License.
5255N/A#
5255N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5255N/A# or http://www.opensolaris.org/os/licensing.
5255N/A# See the License for the specific language governing permissions
5255N/A# and limitations under the License.
5255N/A#
5255N/A# When distributing Covered Code, include this CDDL HEADER in each
5255N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5255N/A# If applicable, add the following below this CDDL HEADER, with the
5255N/A# fields enclosed by brackets "[]" replaced with your own identifying
5255N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5255N/A#
5255N/A# CDDL HEADER END
5255N/A#
5255N/A
5255N/A#
5255N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5255N/A#
5680N/ABUILD_BITS= 64_and_32
6035N/A# All components using gobject-introspection must be built with gcc as
6035N/A# gobject-introspection 1.46 causes the build to fail when using Studio.
6035N/ACOMPILER = gcc
5255N/Ainclude ../../make-rules/shared-macros.mk
5255N/A# Override PATH set in shared-macros.mk by setting the GNU PATH as default.
5680N/APATH=$(GNUBIN):$(USRBINDIR)
5255N/A
5255N/ACOMPONENT_NAME= avahi
5837N/ACOMPONENT_VERSION= 0.6.32
5837N/ATPNO= 27473
5837N/ACOMPONENT_ARCHIVE_HASH= sha256:d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454
5837N/ACOMPONENT_ARCHIVE_URL= https://github.com/lathiat/avahi/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
5255N/ACOMPONENT_PROJECT_URL= http://www.avahi.org/
5255N/ACOMPONENT_BUGDB= library/avahi
5255N/A
5384N/A# Depends on a Python module from Desktop that is only available 32-bit in S11.
5384N/Aifeq ($(BUILD_TYPE), evaluation)
5384N/ABUILD_32_and_64=
5384N/AINSTALL_32_and_64=
5384N/APUBLISH_STAMP=
5384N/Aendif
5384N/A
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5255N/A
5680N/ACONFIGURE_SBINDIR.64 = $(CONFIGURE_BINDIR.64)
5255N/ACONFIGURE_OPTIONS += --enable-shared
5255N/ACONFIGURE_OPTIONS += --disable-static
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
5255N/ACONFIGURE_OPTIONS += --with-avahi-user=daemon
5255N/ACONFIGURE_OPTIONS += --with-avahi-group=other
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/avahi
5255N/ACONFIGURE_OPTIONS += --with-distro=none
5255N/ACONFIGURE_OPTIONS += --disable-gtk3
5332N/ACONFIGURE_OPTIONS += --disable-pygtk
5255N/ACONFIGURE_OPTIONS += --disable-qt3
5255N/ACONFIGURE_OPTIONS += --disable-qt4
5255N/ACONFIGURE_OPTIONS += --disable-mono
5255N/ACONFIGURE_OPTIONS += --disable-monodoc
5255N/ACONFIGURE_OPTIONS += --enable-tests
5255N/ACONFIGURE_OPTIONS += --disable-autoipd
5255N/ACONFIGURE_OPTIONS += --disable-gdbm
5255N/ACONFIGURE_OPTIONS += --enable-dbm
5255N/A# xmltoman is not available
5255N/ACONFIGURE_OPTIONS += --disable-manpages
5255N/ACONFIGURE_OPTIONS.64 += --enable-doxygen-man
5255N/ACONFIGURE_OPTIONS.32 += --disable-doxygen-man
6035N/A# stack-protector breaks build with gcc 5.3 if not explicitly disabled until
6035N/A# fix for 23185183 is available on all build machines (s12_99 or later)
6035N/ACONFIGURE_OPTIONS += --disable-stack-protector
5255N/ACONFIGURE_OPTIONS += CPP="$(CC) -E"
5255N/ALDFLAGS += -ldns_sd
5255N/ACONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION))
5255N/ACONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
5255N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
5255N/A
5255N/A# NOCONFIGURE=yes -> do not execute "configure" directly from "autogen.sh" (/wo CONFIGURE_OPTIONS...)
5255N/A# running of configure /wo CONFIGURE_OPTIONS + ENV -> configure will fail (on --with-distro=none is missing)
5255N/A# because "sunos" is not among the distros known to avahi.
5255N/ACOMPONENT_PREP_ACTION += \
5255N/A ( cd $(@D) ; set NOCONFIGURE=yes $(CONFIG_SHELL) autogen.sh )
5255N/A# g-i-r-scanner also need to have PATH to cc
5255N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
5255N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
5255N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
5680N/A$(BUILD_32_and_64): PATH = $(SPRO_VROOT)/bin:$(GNUBIN):$(USRBINDIR)
5255N/ACOMPONENT_POST_INSTALL_ACTION += \
5255N/A ( $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) )
5255N/A
5255N/A# build standalone sub-components only
5255N/ASUBDIRS = avahi-common avahi-core avahi-client avahi-glib avahi-gobject avahi-ui
5255N/A$(BUILD_32): COMPONENT_BUILD_TARGETS += SUBDIRS="$(SUBDIRS)"
5255N/A$(INSTALL_32): COMPONENT_INSTALL_TARGETS += SUBDIRS="$(SUBDIRS)"
5255N/A
6035N/A# gobject-introspection tools are used to build, not a runtime dependency
6035N/AREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
5255N/AREQUIRED_PACKAGES += library/desktop/gtk2
5255N/AREQUIRED_PACKAGES += library/expat
5255N/AREQUIRED_PACKAGES += library/glib2
5255N/AREQUIRED_PACKAGES += library/libdaemon
5255N/AREQUIRED_PACKAGES += runtime/python-27
5255N/AREQUIRED_PACKAGES += service/network/dns/mdns
5255N/AREQUIRED_PACKAGES += shell/ksh93
5255N/AREQUIRED_PACKAGES += system/core-os
5255N/AREQUIRED_PACKAGES += system/library/dbus
6035N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
5255N/AREQUIRED_PACKAGES += system/library/libdbus