6674N/A#
6674N/A# CDDL HEADER START
6674N/A#
6674N/A# The contents of this file are subject to the terms of the
6674N/A# Common Development and Distribution License (the "License").
6674N/A# You may not use this file except in compliance with the License.
6674N/A#
6674N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6674N/A# or http://www.opensolaris.org/os/licensing.
6674N/A# See the License for the specific language governing permissions
6674N/A# and limitations under the License.
6674N/A#
6674N/A# When distributing Covered Code, include this CDDL HEADER in each
6674N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6674N/A# If applicable, add the following below this CDDL HEADER, with the
6674N/A# fields enclosed by brackets "[]" replaced with your own identifying
6674N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6674N/A#
6674N/A# CDDL HEADER END
6674N/A#
6674N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
6674N/A#
6674N/A
6674N/ABUILD_BITS = 64_and_32
6674N/A# All components using gobject-introspection must be built with gcc as
6674N/A# gobject-introspection does not produce correct results when using Studio.
6674N/A# Additionally, colord requires support for __attribute__(cleanup), which
6674N/A# Studio does not yet support until 12.5 (ER 17630845).
6674N/ACOMPILER = gcc
6674N/Ainclude ../../../make-rules/shared-macros.mk
6674N/A
6674N/ACOMPONENT_NAME= colord
6674N/ACOMPONENT_VERSION= 1.1.8
6674N/ACOMPONENT_PROJECT_URL= http://www.freedesktop.org/software/colord/
6674N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
6674N/ACOMPONENT_ARCHIVE_HASH= \
6674N/A sha256:f03e951641f39c2cea6ce7a6435608dd2bc0bd2c98e901ae331193f95f3e8907
6674N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE)
6674N/ACOMPONENT_BUGDB= gnome/libraries
6674N/A
6674N/ATPNO= 25612
6674N/A
6674N/ATEST_TARGET = $(NO_TESTS)
6674N/A
6674N/A# Needs gobject-introspection, not available on S11.
6674N/Ainclude $(WS_MAKE_RULES)/no-evaluation.mk
6674N/A
6674N/Ainclude $(WS_MAKE_RULES)/gnome-component.mk
6674N/A
6674N/A# Requires fpclassify (c99).
6674N/ACFLAGS += -std=gnu99
6674N/A
6674N/A# Required due to patches.
6674N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv; intltoolize --force);
6674N/A
6674N/A# Make sure we haven't broken the SMF manifest formatting
6674N/ACOMPONENT_PREP_ACTION += \
6674N/A ( /usr/sbin/svccfg validate $(COMPONENT_DIR)/files/colord.xml );
6674N/A
6674N/A# Requires external package (https://bash-completion.alioth.debian.org) that we
6674N/A# don't currently have in Solaris.
6674N/ACONFIGURE_OPTIONS += --disable-bash-completion
6674N/A# gusb appears to be an abandoned project.
6674N/ACONFIGURE_OPTIONS += --disable-gusb
6674N/ACONFIGURE_OPTIONS += --enable-polkit
6674N/ACONFIGURE_OPTIONS += --disable-static
6674N/A# Linux-specific.
6674N/ACONFIGURE_OPTIONS += --disable-systemd-login
6674N/A# Linux-specific.
6674N/ACONFIGURE_OPTIONS += --disable-udev
6674N/ACONFIGURE_OPTIONS += --enable-gtk-doc
6674N/A# Required for other components.
6674N/ACONFIGURE_OPTIONS += --enable-introspection
6674N/ACONFIGURE_OPTIONS += --enable-shared
6674N/A# Required for other components.
6674N/ACONFIGURE_OPTIONS += --enable-vala
6674N/A# may need tweaking to give colord user sufficient rights
6674N/ACONFIGURE_OPTIONS += --with-daemon-user=daemon
6674N/ACONFIGURE_OPTIONS += --with-pic
6674N/A# Mostly a placebo value; udev support is disabled above, but it still delivers
6674N/A# 'rule' files for udev (omitted from package manifest).
6674N/ACONFIGURE_OPTIONS += --with-udevrulesdir=/etc/udev/rules.d
6674N/A
6674N/A# Assumes GNU xgettext and tail in PATH
6674N/ACOMPONENT_BUILD_ENV += PATH=$(GNUBIN):$(PATH)
6674N/ACONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
6674N/A
6674N/A# Tell g-ir-scanner not to cache results in homedir of user running the build
6674N/ACOMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
6674N/A
6674N/AREQUIRED_PACKAGES += database/sqlite-3
6674N/AREQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
6674N/AREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
6674N/AREQUIRED_PACKAGES += library/glib2
6674N/AREQUIRED_PACKAGES += library/lcms2
6674N/AREQUIRED_PACKAGES += shell/ksh93
6674N/AREQUIRED_PACKAGES += system/core-os
6674N/AREQUIRED_PACKAGES += system/library/dbus
6674N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
6674N/AREQUIRED_PACKAGES += system/library/math
6674N/AREQUIRED_PACKAGES += system/library/polkit