6215N/A#
6215N/A# CDDL HEADER START
6215N/A#
6215N/A# The contents of this file are subject to the terms of the
6215N/A# Common Development and Distribution License (the "License").
6215N/A# You may not use this file except in compliance with the License.
6215N/A#
6215N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6215N/A# or http://www.opensolaris.org/os/licensing.
6215N/A# See the License for the specific language governing permissions
6215N/A# and limitations under the License.
6215N/A#
6215N/A# When distributing Covered Code, include this CDDL HEADER in each
6215N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6215N/A# If applicable, add the following below this CDDL HEADER, with the
6215N/A# fields enclosed by brackets "[]" replaced with your own identifying
6215N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6215N/A#
6215N/A# CDDL HEADER END
6215N/A#
6215N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6215N/A#
6215N/A
7102N/A# parfait is a bit unhappy (24796481)
7102N/Aexport PARFAIT_BUILD=no
7102N/A
6215N/ABUILD_BITS = 64_and_32
6215N/A# Also, all components using gobject-introspection must be built with gcc as
6215N/A# gobject-introspection does not produce correct results when using Studio.
6215N/ACOMPILER = gcc
6215N/Ainclude ../../../make-rules/shared-macros.mk
6215N/A
6215N/ACOMPONENT_NAME= polkit
6215N/ACOMPONENT_VERSION= 0.113
6215N/ACOMPONENT_PROJECT_URL= http://www.freedesktop.org/wiki/Software/polkit/
6215N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6215N/ACOMPONENT_ARCHIVE_HASH= \
6215N/A sha256:e1c095093c654951f78f8618d427faf91cf62abdefed98de40ff65eca6413c81
6215N/ACOMPONENT_ARCHIVE_URL= http://www.freedesktop.org/software/polkit/releases/$(COMPONENT_ARCHIVE)
6215N/ACOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).sign
6215N/ACOMPONENT_BUGDB= gnome/security
6215N/A
6215N/ATPNO= 27381
6215N/A
6215N/A# Test don't work on Solaris
6215N/ATEST_TARGET = $(SKIP_TEST)
6215N/A
6215N/A# Needs gobject-introspection, not available on S11.
6215N/Aifeq ($(BUILD_TYPE), evaluation)
6215N/ABUILD_32_and_64=
6215N/AINSTALL_32_and_64=
6215N/APUBLISH_STAMP=
6215N/Aendif
6215N/A
6215N/Ainclude $(WS_MAKE_RULES)/common.mk
6215N/A
6215N/A# Regenerate configure after patches/02-duktape.patch modifies configure.ac
6215N/ACOMPONENT_PREP_ACTION += ( cd $(@D); autoreconf -fiv);
6215N/A# Make sure we haven't broken the SMF manifest formatting
6215N/ACOMPONENT_PREP_ACTION += \
6215N/A ( /usr/sbin/svccfg validate $(COMPONENT_DIR)/files/polkit.xml );
6215N/A
6215N/A# Need C99 or later to get fpclassify() & isfinite() in <math.h>
6215N/ACFLAGS += -ggdb
6215N/ACFLAGS.gcc += -std=gnu11
6215N/ACFLAGS.studio += -std=c11 -xlang=c11
6215N/A
6215N/A# Solaris doesn't have a defined authpriv facility in syslog, so map it to
6215N/A# an unused one for now
6215N/ACPPFLAGS += -DLOG_AUTHPRIV='(10<<3)'
6215N/A
6215N/ACONFIGURE_OPTIONS += --disable-static
6215N/ACONFIGURE_OPTIONS += --enable-gtk-doc
6215N/ACONFIGURE_OPTIONS += --enable-man-pages
6215N/ACONFIGURE_OPTIONS += --enable-shared
6215N/ACONFIGURE_OPTIONS += --with-pic
6215N/ACONFIGURE_OPTIONS += --with-authfw=pam
6215N/ACONFIGURE_OPTIONS += --with-polkitd-user=_polkitd
6215N/ACONFIGURE_OPTIONS += --with-os-type=solaris
6215N/ACONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)"
6215N/A
6215N/A# Largefile support breaks use of <procfs.h> when build environment is older
6215N/A# than s12_84 due to Solaris bug 21833491
6215N/Aifeq ($(OS_VERSION), 5.11)
6215N/A CONFIGURE_OPTIONS += --disable-largefile
6215N/Aendif
6215N/A
6215N/A# Assumes GNU xgettext in PATH
6215N/ACONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
6215N/A
6215N/A# Tell g-ir-scanner not to cache results in homedir of user running the build
6215N/ACOMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
6215N/A
6215N/A# SMF manifest & method
6215N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
6215N/A
6215N/AREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
6215N/AREQUIRED_PACKAGES += library/expat
6215N/AREQUIRED_PACKAGES += library/glib2
6215N/AREQUIRED_PACKAGES += system/core-os
6215N/AREQUIRED_PACKAGES += system/library/dbus
6215N/AREQUIRED_PACKAGES += system/library/math