Makefile revision 5384
970N/A#
970N/A# CDDL HEADER START
970N/A#
970N/A# The contents of this file are subject to the terms of the
1356N/A# Common Development and Distribution License (the "License").
970N/A# You may not use this file except in compliance with the License.
970N/A#
970N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970N/A# or http://www.opensolaris.org/os/licensing.
970N/A# See the License for the specific language governing permissions
970N/A# and limitations under the License.
970N/A#
970N/A# When distributing Covered Code, include this CDDL HEADER in each
970N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
970N/A# If applicable, add the following below this CDDL HEADER, with the
970N/A# fields enclosed by brackets "[]" replaced with your own identifying
970N/A# information: Portions Copyright [yyyy] [name of copyright owner]
970N/A#
970N/A# CDDL HEADER END
970N/A#
970N/A
970N/A#
970N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
970N/A#
970N/A
970N/Ainclude ../../make-rules/shared-macros.mk
970N/A# Override PATH set in shared-macros.mk by setting the GNU PATH as default.
970N/APATH=/usr/gnu/bin:/usr/bin
970N/A
970N/ACOMPONENT_NAME= avahi
970N/ACOMPONENT_VERSION= 0.6.30
970N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
970N/ACOMPONENT_PROJECT_URL= http://www.avahi.org/
970N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
970N/ACOMPONENT_ARCHIVE_HASH= \
970N/A sha256:f9e4316c2339d0020726edd846d01bee0c39980906db0c247479e5807457ff1f
970N/ACOMPONENT_ARCHIVE_URL= http://www.avahi.org/download/$(COMPONENT_ARCHIVE)
970N/ACOMPONENT_BUGDB= library/avahi
970N/A
970N/ATPNO= 7879
970N/A
970N/Ainclude $(WS_MAKE_RULES)/prep.mk
970N/Ainclude $(WS_MAKE_RULES)/configure.mk
1105N/A
970N/A# Depends on a Python module from Desktop that is only available 32-bit in S11.
970N/Aifeq ($(BUILD_TYPE), evaluation)
970N/ABUILD_32_and_64=
970N/AINSTALL_32_and_64=
970N/APUBLISH_STAMP=
970N/Aendif
970N/A
970N/Ainclude $(WS_MAKE_RULES)/ips.mk
970N/A
970N/A# Set the pkg... path to search files in ./files/ dir (mainly the SMF manifests are there)
970N/APKG_PROTO_DIRS += $(COMPONENT_DIR)
970N/A
970N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
970N/ACONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/bin
970N/ACONFIGURE_OPTIONS += --enable-shared
970N/ACONFIGURE_OPTIONS += --disable-static
970N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
970N/ACONFIGURE_OPTIONS += --with-avahi-user=daemon
970N/ACONFIGURE_OPTIONS += --with-avahi-group=other
970N/ACONFIGURE_OPTIONS += --localstatedir=/var/avahi
970N/ACONFIGURE_OPTIONS += --with-distro=none
970N/ACONFIGURE_OPTIONS += --disable-gtk3
970N/ACONFIGURE_OPTIONS += --disable-pygtk
970N/ACONFIGURE_OPTIONS += --disable-qt3
970N/ACONFIGURE_OPTIONS += --disable-qt4
1130N/ACONFIGURE_OPTIONS += --disable-mono
970N/ACONFIGURE_OPTIONS += --disable-monodoc
970N/ACONFIGURE_OPTIONS += --enable-tests
970N/ACONFIGURE_OPTIONS += --disable-autoipd
970N/ACONFIGURE_OPTIONS += --disable-gdbm
970N/ACONFIGURE_OPTIONS += --enable-dbm
970N/A# xmltoman is not available
970N/ACONFIGURE_OPTIONS += --disable-manpages
970N/ACONFIGURE_OPTIONS.64 += --enable-doxygen-man
970N/ACONFIGURE_OPTIONS.32 += --disable-doxygen-man
970N/ACONFIGURE_OPTIONS += CPP="$(CC) -E"
970N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
970N/ALDFLAGS += -ldns_sd
970N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
970N/ACONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION))
970N/ACONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
970N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
970N/A
970N/A# NOCONFIGURE=yes -> do not execute "configure" directly from "autogen.sh" (/wo CONFIGURE_OPTIONS...)
970N/A# running of configure /wo CONFIGURE_OPTIONS + ENV -> configure will fail (on --with-distro=none is missing)
970N/A# because "sunos" is not among the distros known to avahi.
970N/ACOMPONENT_PREP_ACTION += \
970N/A ( cd $(@D) ; set NOCONFIGURE=yes $(CONFIG_SHELL) autogen.sh )
970N/A# g-i-r-scanner also need to have PATH to cc
970N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
970N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
970N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
970N/A$(BUILD_32_and_64): PATH = $(SPRO_VROOT)/bin:/usr/gnu/bin:/usr/bin
970N/ACOMPONENT_POST_INSTALL_ACTION += \
1105N/A ( $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) )
1105N/A
970N/A# Enable ASLR for this component
1105N/AASLR_MODE = $(ASLR_ENABLE)
970N/A
970N/A# build standalone sub-components only
970N/ASUBDIRS = avahi-common avahi-core avahi-client avahi-glib avahi-gobject avahi-ui
970N/A$(BUILD_32): COMPONENT_BUILD_TARGETS += SUBDIRS="$(SUBDIRS)"
970N/A$(INSTALL_32): COMPONENT_INSTALL_TARGETS += SUBDIRS="$(SUBDIRS)"
970N/A
1154N/A# common targets
1152N/Aconfigure: $(CONFIGURE_32_and_64)
970N/A
1172N/Abuild: $(BUILD_32_and_64)
1172N/A
1172N/Ainstall: $(INSTALL_32_and_64)
970N/A
1105N/Atest: $(NO_TESTS)
970N/A
970N/Asystem-test: $(NO_TESTS)
1105N/A
970N/AREQUIRED_PACKAGES += library/desktop/gtk2
970N/AREQUIRED_PACKAGES += library/expat
1120N/AREQUIRED_PACKAGES += library/glib2
1120N/AREQUIRED_PACKAGES += library/libdaemon
1120N/AREQUIRED_PACKAGES += runtime/python-27
970N/AREQUIRED_PACKAGES += service/network/dns/mdns
1172N/AREQUIRED_PACKAGES += shell/ksh93
1172N/AREQUIRED_PACKAGES += system/core-os
970N/AREQUIRED_PACKAGES += system/library
1172N/AREQUIRED_PACKAGES += system/library/dbus
1172N/AREQUIRED_PACKAGES += system/library/libdbus
1172N/A