Makefile revision 5332
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#
5255N/A
5255N/Ainclude ../../make-rules/shared-macros.mk
5255N/A# Override PATH set in shared-macros.mk by setting the GNU PATH as default.
5255N/APATH=/usr/gnu/bin:/usr/bin
5255N/A
5255N/ACOMPONENT_NAME= avahi
5255N/ACOMPONENT_VERSION= 0.6.30
5255N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5255N/ACOMPONENT_PROJECT_URL= http://www.avahi.org/
5255N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5255N/ACOMPONENT_ARCHIVE_HASH= \
5255N/A sha256:f9e4316c2339d0020726edd846d01bee0c39980906db0c247479e5807457ff1f
5255N/ACOMPONENT_ARCHIVE_URL= http://www.avahi.org/download/$(COMPONENT_ARCHIVE)
5255N/ACOMPONENT_BUGDB= library/avahi
5255N/A
5255N/ATPNO= 7879
5255N/A
5255N/Ainclude $(WS_MAKE_RULES)/prep.mk
5255N/Ainclude $(WS_MAKE_RULES)/configure.mk
5255N/Ainclude $(WS_MAKE_RULES)/ips.mk
5255N/A
5255N/A# Set the pkg... path to search files in ./files/ dir (mainly the SMF manifests are there)
5255N/APKG_PROTO_DIRS += $(COMPONENT_DIR)
5255N/A
5255N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
5255N/ACONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/bin
5255N/ACONFIGURE_OPTIONS += --enable-shared
5255N/ACONFIGURE_OPTIONS += --disable-static
5255N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
5255N/ACONFIGURE_OPTIONS += --with-avahi-user=daemon
5255N/ACONFIGURE_OPTIONS += --with-avahi-group=other
5255N/ACONFIGURE_OPTIONS += --localstatedir=/var/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
5255N/ACONFIGURE_OPTIONS += CPP="$(CC) -E"
5255N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5255N/ALDFLAGS += -ldns_sd
5255N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
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)"
5255N/A$(BUILD_32_and_64): PATH = $(SPRO_VROOT)/bin:/usr/gnu/bin:/usr/bin
5255N/ACOMPONENT_POST_INSTALL_ACTION += \
5255N/A ( $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) )
5255N/A
5255N/A# Enable ASLR for this component
5255N/AASLR_MODE = $(ASLR_ENABLE)
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
5255N/A# common targets
5255N/Aconfigure: $(CONFIGURE_32_and_64)
5255N/A
5255N/Abuild: $(BUILD_32_and_64)
5255N/A
5255N/Ainstall: $(INSTALL_32_and_64)
5255N/A
5255N/Atest: $(NO_TESTS)
5255N/A
5255N/Asystem-test: $(NO_TESTS)
5255N/A
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
5255N/AREQUIRED_PACKAGES += system/library/dbus
5255N/AREQUIRED_PACKAGES += system/library/libdbus