json-glib: update to 1.10.6
[oi-userland.git] / components / library / p11-kit / Makefile
blob20d2bf5c84c92e721f7646f1414ba4abdf58b1d6
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
25 # Copyright (c) 2021, Andreas Wacknitz
28 BUILD_BITS= 64
29 USE_DEFAULT_TEST_TRANSFORMS= yes
30 include ../../../make-rules/shared-macros.mk
32 COMPONENT_NAME= p11-kit
33 COMPONENT_VERSION= 0.25.5
34 COMPONENT_FMRI= library/desktop/p11-kit
35 COMPONENT_SUMMARY= p11-kit provides a way to load and enumerate PKCS\#11 modules
36 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
37 COMPONENT_PROJECT_URL= https://p11-glue.github.io/p11-glue/p11-kit.html
38 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
39 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
40 COMPONENT_ARCHIVE_HASH= sha256:04d0a86450cdb1be018f26af6699857171a188ac6d5b8c90786a60854e1198e5
41 COMPONENT_ARCHIVE_URL= https://github.com/p11-glue/p11-kit/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
42 COMPONENT_LICENSE= BSD-3-Clause
43 COMPONENT_LICENSE_FILE= COPYING
45 include $(WS_MAKE_RULES)/common.mk
47 PATH= $(PATH.gnu)
49 CFLAGS += $(XPG7MODE)
50 CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
51 LDFLAGS += -lsocket -lnsl
53 # Needed due to patch to automake-related files.
54 COMPONENT_PREP_ACTION += (cd $(@D); PATH="$(PATH)" autoreconf -fiv);
56 CONFIGURE_OPTIONS += --enable-doc
57 CONFIGURE_OPTIONS += --disable-doc-html
58 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
59 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
60 CONFIGURE_OPTIONS += --with-module-path=/usr/lib/security/$(MACH64)
61 CONFIGURE_OPTIONS += --with-trust-paths=/etc/certs/ca-certificates.crt
63 COMPONENT_BUILD_ENV += PATH=$(PATH)
64 COMPONENT_TEST_ENV += PATH=$(PATH)
66 COMPONENT_TEST_TRANSFORMS += \
67 '-e "/^ *CC/d" ' \
68 '-e "/is up to date/d" ' \
69 '-e "/ok/p" '
71 # bash-completion is needed to get the following two files installed into proto area:
72 # - usr/share/bash-completion/completions/p11-kit
73 # - usr/share/bash-completion/completions/trust
74 REQUIRED_PACKAGES += utility/bash-completion
76 # Auto-generated dependencies
77 REQUIRED_PACKAGES += library/libffi
78 REQUIRED_PACKAGES += library/libtasn1
79 REQUIRED_PACKAGES += shell/ksh93
80 REQUIRED_PACKAGES += system/library