components/desktop/colord/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 23 Aug 2016 18:13:17 -0700
changeset 6676 447ee8f869db
child 7293 a449e2e641be
permissions -rw-r--r--
23245618 Deliver colord 1.1.8 in Solaris PSARC/2016/378 colord
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6676
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     1
#
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     3
#
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     7
#
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    12
#
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    18
#
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    20
#
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    22
#
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    23
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    24
BUILD_BITS =            64_and_32
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    25
# All components using gobject-introspection must be built with gcc as
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    26
# gobject-introspection does not produce correct results when using Studio.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    27
# Additionally, colord requires support for __attribute__(cleanup), which
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    28
# Studio does not yet support until 12.5 (ER 17630845).
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    29
COMPILER =              gcc
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    30
include ../../../make-rules/shared-macros.mk
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    31
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_NAME=		colord
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_VERSION=	1.1.8
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=	http://www.freedesktop.org/software/colord/
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_HASH= \
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    37
	sha256:f03e951641f39c2cea6ce7a6435608dd2bc0bd2c98e901ae331193f95f3e8907
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE)
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    39
COMPONENT_BUGDB=	gnome/libraries
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    40
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
TPNO=			25612
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    42
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    43
TEST_TARGET = $(NO_TESTS)
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    44
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    45
# Needs gobject-introspection, not available on S11.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    46
include $(WS_MAKE_RULES)/no-evaluation.mk
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    47
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    48
include $(WS_MAKE_RULES)/gnome-component.mk
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    49
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    50
# Requires fpclassify (c99).
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    51
CFLAGS += -std=gnu99
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    52
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    53
# Required due to patches.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    54
COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv; intltoolize --force);
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    55
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    56
# Make sure we haven't broken the SMF manifest formatting
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    57
COMPONENT_PREP_ACTION += \
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    58
    ( /usr/sbin/svccfg validate $(COMPONENT_DIR)/files/colord.xml );
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    59
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    60
# Requires external package (https://bash-completion.alioth.debian.org) that we
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    61
# don't currently have in Solaris.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    62
CONFIGURE_OPTIONS += --disable-bash-completion
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    63
# gusb appears to be an abandoned project.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    64
CONFIGURE_OPTIONS += --disable-gusb
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    65
CONFIGURE_OPTIONS += --enable-polkit
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    66
CONFIGURE_OPTIONS += --disable-static
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    67
# Linux-specific.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --disable-systemd-login
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    69
# Linux-specific.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --disable-udev
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-gtk-doc
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    72
# Required for other components.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    73
CONFIGURE_OPTIONS += --enable-introspection
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    74
CONFIGURE_OPTIONS += --enable-shared
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    75
# Required for other components.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    76
CONFIGURE_OPTIONS += --enable-vala
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    77
# may need tweaking to give colord user sufficient rights
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    78
CONFIGURE_OPTIONS += --with-daemon-user=daemon
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    79
CONFIGURE_OPTIONS += --with-pic
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    80
# Mostly a placebo value; udev support is disabled above, but it still delivers
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    81
# 'rule' files for udev (omitted from package manifest).
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    82
CONFIGURE_OPTIONS += --with-udevrulesdir=/etc/udev/rules.d
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    83
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    84
# Assumes GNU xgettext and tail in PATH
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    85
COMPONENT_BUILD_ENV += PATH=$(GNUBIN):$(PATH)
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    86
CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    87
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    88
# Tell g-ir-scanner not to cache results in homedir of user running the build
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    89
COMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    90
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    91
# Temporary until lcms2 with fix for 24494517 is installed on build machines
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    92
# Allows running binaries during build to process profiles without bus errors
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    93
LCMS2_LIB_DIR = $(WS_COMPONENTS)/lcms2/build/prototype/$(MACH)$(USRLIB)
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    94
COMPONENT_BUILD_ENV += LD_LIBRARY_PATH="$(LCMS2_LIB_DIR)"
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    95
# End temporary workaround section
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    96
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    97
REQUIRED_PACKAGES += database/sqlite-3
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    98
REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    99
REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   100
REQUIRED_PACKAGES += library/glib2
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   101
REQUIRED_PACKAGES += library/lcms2
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   102
REQUIRED_PACKAGES += shell/ksh93
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   103
REQUIRED_PACKAGES += system/core-os
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   104
REQUIRED_PACKAGES += system/library/dbus
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   105
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   106
REQUIRED_PACKAGES += system/library/math
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   107
REQUIRED_PACKAGES += system/library/polkit