|
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 COMPILER = gcc |
|
28 include ../../../make-rules/shared-macros.mk |
|
29 |
|
30 COMPONENT_NAME= colord-gtk |
|
31 COMPONENT_VERSION= 0.1.26 |
|
32 COMPONENT_PROJECT_URL= http://www.freedesktop.org/software/colord/ |
|
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
|
34 COMPONENT_ARCHIVE_HASH= \ |
|
35 sha256:28d00b7f157ea3e2ea5315387b2660fde82faba16674861c50465e55d61a3e45 |
|
36 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE) |
|
37 COMPONENT_BUGDB= gnome/libraries |
|
38 |
|
39 TPNO= 25613 |
|
40 |
|
41 TEST_TARGET = $(NO_TESTS) |
|
42 |
|
43 # Needs gobject-introspection, not available on S11. |
|
44 include $(WS_MAKE_RULES)/no-evaluation.mk |
|
45 |
|
46 include $(WS_MAKE_RULES)/common.mk |
|
47 |
|
48 # Assumes GNU xgettext in PATH |
|
49 CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH) |
|
50 |
|
51 # We should only need gtk3 support. |
|
52 CONFIGURE_OPTIONS += --disable-gtk2 |
|
53 # Documentation target is busted; also requires docbook2man. |
|
54 CONFIGURE_OPTIONS += --disable-gtk-doc |
|
55 CONFIGURE_OPTIONS += --disable-schemas-compile |
|
56 CONFIGURE_OPTIONS += --disable-static |
|
57 # Required for other components. |
|
58 CONFIGURE_OPTIONS += --enable-introspection |
|
59 CONFIGURE_OPTIONS += --enable-shared |
|
60 # Required for other components. |
|
61 CONFIGURE_OPTIONS += --enable-vala |
|
62 CONFIGURE_OPTIONS += --with-pic |
|
63 |
|
64 # Delete this when build servers are installed with an updated colord |
|
65 COLORD_BASE = $(WS_COMPONENTS)/desktop/colord/build/prototype/$(MACH) |
|
66 PKG_CONFIG_PATHS.32 += $(COLORD_BASE)/usr/lib/pkgconfig/ |
|
67 PKG_CONFIG_PATHS.64 += $(COLORD_BASE)/usr/lib/$(MACH64)/pkgconfig/ |
|
68 PKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS)) |
|
69 |
|
70 LD_OPTIONS.32 += -L $(COLORD_BASE)/usr/lib |
|
71 LD_OPTIONS.64 += -L $(COLORD_BASE)/usr/lib/$(MACH64) |
|
72 LD_OPTIONS += $(LD_OPTIONS.$(BITS)) |
|
73 |
|
74 COMPONENT_BUILD_ENV += \ |
|
75 libdir=$(COLORD_BASE)/usr/lib |
|
76 |
|
77 COMPONENT_BUILD_ENV += \ |
|
78 XDG_DATA_DIRS="$(COLORD_BASE)/usr/share:/usr/share" |
|
79 |
|
80 CPPFLAGS += -I$(COLORD_BASE)/usr/include/colord-1 |
|
81 |
|
82 COMPONENT_BUILD_ENV += LD_LIBRARY_PATH_32="$(BUILD_DIR_32)/libcolord-gtk/.libs:$(COLORD_BASE)$(USRLIB.$(BITS))" |
|
83 COMPONENT_BUILD_ENV += LD_LIBRARY_PATH_64="$(BUILD_DIR_64)/libcolord-gtk/.libs:$(COLORD_BASE)$(USRLIB.$(BITS))" |
|
84 |
|
85 # The dependency isn't installed, so add it manually since pkgdepend |
|
86 # can't resolve them yet: 15708323 |
|
87 DEPENDED += $(WS_TOP)/components/desktop/colord/build/manifest-$(MACH)-colord.depend |
|
88 |
|
89 # Temporary until dependencies are all on build machines |
|
90 REQUIRED_PACKAGES += $(shell $(GSED) -n 's/REQUIRED_PACKAGES +=//p' ../colord/Makefile) |
|
91 #end Delete |
|
92 |
|
93 |
|
94 REQUIRED_PACKAGES += developer/vala |
|
95 REQUIRED_PACKAGES += library/desktop/cairo |
|
96 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection |
|
97 REQUIRED_PACKAGES += library/desktop/gtk3 |
|
98 REQUIRED_PACKAGES += library/glib2 |
|
99 REQUIRED_PACKAGES += service/image/colord |