|
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) 2016, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 |
|
24 BUILD_BITS = 64_and_32 |
|
25 # Also, 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= polkit |
|
31 COMPONENT_VERSION= 0.113 |
|
32 COMPONENT_PROJECT_URL= http://www.freedesktop.org/wiki/Software/polkit/ |
|
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
34 COMPONENT_ARCHIVE_HASH= \ |
|
35 sha256:e1c095093c654951f78f8618d427faf91cf62abdefed98de40ff65eca6413c81 |
|
36 COMPONENT_ARCHIVE_URL= http://www.freedesktop.org/software/polkit/releases/$(COMPONENT_ARCHIVE) |
|
37 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).sign |
|
38 COMPONENT_BUGDB= gnome/security |
|
39 |
|
40 TPNO= 27381 |
|
41 |
|
42 # Test don't work on Solaris |
|
43 TEST_TARGET = $(SKIP_TEST) |
|
44 |
|
45 # Needs gobject-introspection, not available on S11. |
|
46 ifeq ($(BUILD_TYPE), evaluation) |
|
47 BUILD_32_and_64= |
|
48 INSTALL_32_and_64= |
|
49 PUBLISH_STAMP= |
|
50 endif |
|
51 |
|
52 include $(WS_MAKE_RULES)/common.mk |
|
53 |
|
54 # Regenerate configure after patches/02-duktape.patch modifies configure.ac |
|
55 COMPONENT_PREP_ACTION += ( cd $(@D); autoreconf -fiv); |
|
56 # Make sure we haven't broken the SMF manifest formatting |
|
57 COMPONENT_PREP_ACTION += \ |
|
58 ( /usr/sbin/svccfg validate $(COMPONENT_DIR)/files/polkit.xml ); |
|
59 |
|
60 # Need C99 or later to get fpclassify() & isfinite() in <math.h> |
|
61 CFLAGS += -ggdb |
|
62 CFLAGS.gcc += -std=gnu11 |
|
63 CFLAGS.studio += -std=c11 -xlang=c11 |
|
64 |
|
65 # Solaris doesn't have a defined authpriv facility in syslog, so map it to |
|
66 # an unused one for now |
|
67 CPPFLAGS += -DLOG_AUTHPRIV='(10<<3)' |
|
68 |
|
69 CONFIGURE_OPTIONS += --disable-static |
|
70 CONFIGURE_OPTIONS += --enable-gtk-doc |
|
71 CONFIGURE_OPTIONS += --enable-man-pages |
|
72 CONFIGURE_OPTIONS += --enable-shared |
|
73 CONFIGURE_OPTIONS += --with-pic |
|
74 CONFIGURE_OPTIONS += --with-authfw=pam |
|
75 CONFIGURE_OPTIONS += --with-polkitd-user=_polkitd |
|
76 CONFIGURE_OPTIONS += --with-os-type=solaris |
|
77 CONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)" |
|
78 |
|
79 # Largefile support breaks use of <procfs.h> when build environment is older |
|
80 # than s12_84 due to Solaris bug 21833491 |
|
81 ifeq ($(OS_VERSION), 5.11) |
|
82 CONFIGURE_OPTIONS += --disable-largefile |
|
83 endif |
|
84 |
|
85 # Assumes GNU xgettext in 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 # SMF manifest & method |
|
92 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
93 |
|
94 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection |
|
95 REQUIRED_PACKAGES += library/expat |
|
96 REQUIRED_PACKAGES += library/glib2 |
|
97 REQUIRED_PACKAGES += system/core-os |
|
98 REQUIRED_PACKAGES += system/library/dbus |
|
99 REQUIRED_PACKAGES += system/library/math |