6329N/A#
6329N/A# CDDL HEADER START
6329N/A#
6329N/A# The contents of this file are subject to the terms of the
6329N/A# Common Development and Distribution License (the "License").
6329N/A# You may not use this file except in compliance with the License.
6329N/A#
6329N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6329N/A# or http://www.opensolaris.org/os/licensing.
6329N/A# See the License for the specific language governing permissions
6329N/A# and limitations under the License.
6329N/A#
6329N/A# When distributing Covered Code, include this CDDL HEADER in each
6329N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6329N/A# If applicable, add the following below this CDDL HEADER, with the
6329N/A# fields enclosed by brackets "[]" replaced with your own identifying
6329N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6329N/A#
6329N/A# CDDL HEADER END
6329N/A#
6329N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6329N/A#
6329N/A
6329N/ABUILD_BITS = 64_and_32
6329N/A# All components using gobject-introspection must be built with gcc as
6329N/A# gobject-introspection does not produce correct results when using Studio.
6329N/ACOMPILER = gcc
6329N/Ainclude ../../../make-rules/shared-macros.mk
6329N/A
6329N/ACOMPONENT_NAME= accountsservice
6329N/ACOMPONENT_VERSION= 0.6.40
6329N/ACOMPONENT_PROJECT_URL= http://freedesktop.org/wiki/Software/AccountsService/
6329N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6329N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
6329N/ACOMPONENT_ARCHIVE_HASH= \
6329N/A sha256:f04f756600cbab558671658ab8e77212de2a000c07bc0469e7b51541871fcb2b
6329N/ACOMPONENT_ARCHIVE_URL= http://freedesktop.org/software/accountsservice/$(COMPONENT_ARCHIVE)
6329N/ACOMPONENT_BUGDB= gnome/libraries
6329N/A
6329N/ATPNO= 25838
6329N/A
6329N/ATEST_TARGET = $(NO_TESTS)
6329N/A
6329N/A# Needs updated glib2, not available on S11.
6329N/Aifeq ($(BUILD_TYPE), evaluation)
6329N/ABUILD_32_and_64=
6329N/AINSTALL_32_and_64=
6329N/APUBLISH_STAMP=
6329N/Aendif
6329N/A
6329N/Ainclude $(WS_MAKE_RULES)/common.mk
6329N/A
6329N/A# Assumes GNU xgettext in PATH
6329N/ACOMPONENT_BUILD_ENV += PATH=$(GNUBIN):$(PATH)
6329N/ACONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
6329N/A
6329N/A# Make sure we haven't broken the SMF manifest formatting
6329N/ACOMPONENT_PREP_ACTION += \
6329N/A ( /usr/sbin/svccfg validate $(COMPONENT_DIR)/files/accountsservice.xml );
6329N/A
6329N/A# Solaris doesn't have a defined authpriv facility in syslog, so map it to
6329N/A# an unused one for now
6329N/ACPPFLAGS += -DLOG_AUTHPRIV='(10<<3)'
6329N/A
6329N/ACONFIGURE_OPTIONS += --enable-docbook-docs
6329N/ACONFIGURE_OPTIONS += --enable-gtk-doc
6329N/ACONFIGURE_OPTIONS += --enable-shared
6329N/ACONFIGURE_OPTIONS += --disable-static
6329N/ACONFIGURE_OPTIONS += --disable-systemd
6329N/ACONFIGURE_OPTIONS += --with-pic
6329N/ACONFIGURE_OPTIONS += --libexecdir="$(USRLIBDIR)"
6329N/ACONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)"
6329N/A
6329N/A# Solaris reserves uids < 100 for system accounts
6329N/ACONFIGURE_OPTIONS += --with-minimum-uid=100
6329N/A
6329N/A# Solaris does not have a wheel group, so we use the "sysadmin" group to
6329N/A# determine which accounts should be ACT_USER_ACCOUNT_TYPE_ADMINISTRATOR
6329N/ACONFIGURE_OPTIONS += --enable-admin-group=sysadmin
6329N/A
6329N/A# Tell g-ir-scanner not to cache results in homedir of user running the build
6329N/ACOMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
6329N/A
6329N/A# Only need to install library from 32-bit builds, everything else overlaps
6329N/A# with 64-bit builds
6329N/ACOMPONENT_INSTALL_ARGS.32 += SUBDIRS=src/libaccountsservice
6329N/ACOMPONENT_INSTALL_ARGS += $(COMPONENT_INSTALL_ARGS.$(BITS))
6329N/A
6329N/A# SMF manifest & method
6329N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
6329N/A
6329N/AREQUIRED_PACKAGES += developer/documentation-tool/xmlto
6329N/AREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
6329N/AREQUIRED_PACKAGES += library/glib2
6329N/AREQUIRED_PACKAGES += library/libxslt
6329N/AREQUIRED_PACKAGES += system/core-os
6329N/AREQUIRED_PACKAGES += system/library/dbus
6329N/AREQUIRED_PACKAGES += system/library/polkit