Marcel Telka
2022-01-31 b7ef23180b8258d99f0990e953e0eddbaaab32a5
commit | author | age
16a24b 1 #
AP 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
22 #
23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
bb3dbd 24 # Copyright (c) 2019, Michal Nowak
16a24b 25 #
AP 26
27 include ../../../make-rules/shared-macros.mk
28
29 COMPONENT_NAME=        gcr
bb3dbd 30 COMPONENT_VERSION=    3.28.1
d18dbb 31 COMPONENT_REVISION=    1
bb3dbd 32 COMPONENT_PROJECT_URL=    https://gitlab.gnome.org/GNOME/gcr/
16a24b 33 COMPONENT_SUMMARY=    A GNOME library for displaying certificates and crypto UI
AP 34 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
36 COMPONENT_ARCHIVE_HASH= \
bb3dbd 37     sha256:95204aa2111c301778ebfbe60975ce3ed698c958430ffcc2a785ac5e593d168b
16a24b 38 COMPONENT_ARCHIVE_URL= \
b7ef23 39   https://download.gnome.org/sources/$(COMPONENT_NAME)/3.28/$(COMPONENT_ARCHIVE)
bb3dbd 40 COMPONENT_PROJECT_URL=    https://github.com/GNOME/gcr
MN 41 COMPONENT_FMRI=        library/gnome/gcr
42 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
43 COMPONENT_LICENSE=    GPLv2
44 COMPONENT_LICENSE_FILE=    COPYING
16a24b 45
AP 46 include $(WS_MAKE_RULES)/prep.mk
47 include $(WS_MAKE_RULES)/configure.mk
48 include $(WS_MAKE_RULES)/ips.mk
49
50 CONFIGURE_OPTIONS += --libexecdir="$(USRLIBDIR.$(BITS))"
51 CONFIGURE_OPTIONS += --localstatedir="$(VARDIR)"
52 CONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)"
53
54 # Assumes GNU xgettext in PATH.
55 CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
56
57 # Requires a reconf due to patch to autoconf and automake-related files.
58 COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
59
60 # Not available on Solaris.
61 CONFIGURE_OPTIONS += --disable-valgrind
62 # Required for other components.
d18dbb 63 CONFIGURE_OPTIONS.64 += --enable-introspection
16a24b 64 # Required for other components.
d18dbb 65 CONFIGURE_OPTIONS.64 += --enable-vala
16a24b 66 # Fix 64-bit builds.
AP 67 CONFIGURE_OPTIONS.64 += ac_cv_path_LIBGCRYPT_CONFIG=$(USRBINDIR64)/libgcrypt-config
68
287b72 69 LDFLAGS += -lsocket
MN 70 LIBS    += -lsocket
71
16a24b 72 # gobject-introspection
AP 73 COMPONENT_BUILD_ENV += CC="$(CC)"
74 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
75
76 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
77 COMPONENT_TEST_ARGS =   -k -i
78 COMPONENT_TEST_TRANSFORMS += \
79         '-n ' \
80         '-e "/TOTAL:/p" ' \
81         '-e "/SKIP:/p" ' \
82         '-e "/PASS:/p" ' \
83         '-e "/FAIL:/p" ' \
84         '-e "/ERROR:/p" '
85
86 $(INSTALL_32):    $(INSTALL_64)
87
287b72 88 build:        $(BUILD_32_and_64)
16a24b 89
AP 90 install:    $(INSTALL_32_and_64)
91
287b72 92 test:        $(TEST_32_and_64)
16a24b 93
287b72 94 # Build dependencies
16a24b 95 REQUIRED_PACKAGES += crypto/gnupg
AP 96 REQUIRED_PACKAGES += developer/documentation-tool/doxygen
97 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
98 REQUIRED_PACKAGES += developer/vala
287b72 99 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
MN 100 REQUIRED_PACKAGES += library/security/libgpg-error
101 # Auto-generated dependencies
16a24b 102 REQUIRED_PACKAGES += library/desktop/cairo
AP 103 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
104 REQUIRED_PACKAGES += library/desktop/gtk3
105 REQUIRED_PACKAGES += library/desktop/p11-kit
106 REQUIRED_PACKAGES += library/desktop/pango
107 REQUIRED_PACKAGES += library/glib2
287b72 108 REQUIRED_PACKAGES += system/library
16a24b 109 REQUIRED_PACKAGES += system/library/security/libgcrypt