1
0
mirror of https://github.com/containers/skopeo.git synced 2025-05-04 14:06:54 +00:00

Rebase against master and improve comment about gpgme-config

This commit is contained in:
Mateusz Kwiatkowski 2021-01-29 14:19:34 +01:00
parent 77a2e08eb2
commit 6c8b8c20f5

View File

@ -5,14 +5,15 @@ PREFIX ?= /usr/local
ifeq ($(shell uname),Darwin)
DARWIN_BUILD_TAG=
# On macOS, (brew install gpgme) installs it within /usr/local, but /usr/local/include is not in the default search path.
# Rather than hard-code this directory, use gpgme-config. Sadly that must be done at the top-level user
# instead of locally in the gpgme subpackage, because cgo supports only pkg-config, not general shell scripts,
# and gpgme does not install a pkg-config file.
endif
# On some plaforms (eg. macOS, FreeBSD) gpgme is installed in /usr/local/ but /usr/local/include/ is
# not in the default search path. Rather than hard-code this directory, use gpgme-config.
# Sadly that must be done at the top-level user instead of locally in the gpgme subpackage, because cgo
# supports only pkg-config, not general shell scripts, and gpgme does not install a pkg-config file.
# If gpgme is not installed or gpgme-config cant be found for other reasons, the error is silently ignored
# (and the user will probably find out because the cgo compilation will fail).
GPGME_ENV := CGO_CFLAGS="$(shell gpgme-config --cflags 2>/dev/null)" CGO_LDFLAGS="$(shell gpgme-config --libs 2>/dev/null)"
endif
CONTAINERSCONFDIR=/etc/containers
REGISTRIESDDIR=${CONTAINERSCONFDIR}/registries.d