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