components/desktop/colord/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Sun, 26 Mar 2017 13:26:42 -0700
changeset 7803 bab5480f2396
parent 7687 1093e2a9adbd
permissions -rw-r--r--
23209384 Restore developer docs for gdk-pixbuf
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
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7293
diff changeset
    21
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
6676
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
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7293
diff changeset
    40
COMPONENT_ANITYA_ID=	10190
6676
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    42
TPNO=			25612
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    43
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    44
TEST_TARGET = $(NO_TESTS)
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    45
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    46
# 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
    47
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
    48
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    49
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
    50
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    51
# Requires fpclassify (c99).
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    52
CFLAGS += -std=gnu99
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    53
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    54
# Required due to patches.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    55
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
    56
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    57
# 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
    58
COMPONENT_PREP_ACTION += \
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    59
    ( /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
    60
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    61
# 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
    62
# don't currently have in Solaris.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    63
CONFIGURE_OPTIONS += --disable-bash-completion
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    64
# 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
    65
CONFIGURE_OPTIONS += --disable-gusb
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    66
CONFIGURE_OPTIONS += --enable-polkit
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    67
CONFIGURE_OPTIONS += --disable-static
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    68
# Linux-specific.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    69
CONFIGURE_OPTIONS += --disable-systemd-login
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    70
# Linux-specific.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --disable-udev
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    72
CONFIGURE_OPTIONS += --enable-gtk-doc
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    73
# Required for other components.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    74
CONFIGURE_OPTIONS += --enable-introspection
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    75
CONFIGURE_OPTIONS += --enable-shared
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    76
# Required for other components.
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    77
CONFIGURE_OPTIONS += --enable-vala
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    78
# 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
    79
CONFIGURE_OPTIONS += --with-daemon-user=daemon
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    80
CONFIGURE_OPTIONS += --with-pic
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    81
# 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
    82
# '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
    83
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
    84
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    85
# 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
    86
COMPONENT_BUILD_ENV += PATH=$(GNUBIN):$(PATH)
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    87
CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    88
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    89
# 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
    90
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
    91
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    92
REQUIRED_PACKAGES += database/sqlite-3
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    93
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
    94
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
    95
REQUIRED_PACKAGES += library/glib2
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    96
REQUIRED_PACKAGES += library/lcms2
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    97
REQUIRED_PACKAGES += shell/ksh93
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    98
REQUIRED_PACKAGES += system/core-os
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    99
REQUIRED_PACKAGES += system/library/dbus
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   100
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
   101
REQUIRED_PACKAGES += system/library/math
447ee8f869db 23245618 Deliver colord 1.1.8 in Solaris
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   102
REQUIRED_PACKAGES += system/library/polkit