2018-01-05 21:09:07 +00:00
|
|
|
modules-$(CONFIG_GPG2) += gpg2
|
|
|
|
|
2023-03-24 02:33:16 +00:00
|
|
|
gpg2_version := 2.4.0
|
2018-01-05 21:09:07 +00:00
|
|
|
gpg2_dir := gnupg-$(gpg2_version)
|
|
|
|
gpg2_tar := gnupg-$(gpg2_version).tar.bz2
|
|
|
|
gpg2_url := https://www.gnupg.org/ftp/gcrypt/gnupg/$(gpg2_tar)
|
2023-03-24 02:33:16 +00:00
|
|
|
gpg2_hash := 1d79158dd01d992431dd2e3facb89fdac97127f89784ea2cb610c600fb0c1483
|
2024-01-10 22:46:28 +00:00
|
|
|
gpg2_depends := libgpg-error libgcrypt libksba libassuan npth libusb $(musl_dep)
|
2018-01-05 21:09:07 +00:00
|
|
|
|
|
|
|
# For reproducibility reasons we have to override the exec_prefix
|
|
|
|
# and datarootdir on the configure line so that the Makefiles will
|
|
|
|
# be generated with the correct paths, but then re-write them when
|
|
|
|
# we use the install target so that they will be copied to the correct
|
|
|
|
# location.
|
2023-03-01 16:12:46 +00:00
|
|
|
gpg2_configure := \
|
2018-01-05 21:09:07 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2023-03-01 16:12:46 +00:00
|
|
|
CFLAGS="-Os" \
|
|
|
|
./configure \
|
2018-09-18 09:12:47 +00:00
|
|
|
CPPFLAGS="-I$(INSTALL)/include/libusb-1.0" \
|
2021-07-18 17:34:20 +00:00
|
|
|
--host $(MUSL_ARCH)-linux-musl \
|
2018-01-05 21:09:07 +00:00
|
|
|
--with-libusb="$(INSTALL)" \
|
2020-10-26 14:19:57 +00:00
|
|
|
--with-gpg-error-prefix="$(INSTALL)" \
|
2018-01-05 21:09:07 +00:00
|
|
|
--with-libgcrypt-prefix="$(INSTALL)" \
|
|
|
|
--with-libassuan-prefix="$(INSTALL)" \
|
|
|
|
--with-ksba-prefix="$(INSTALL)" \
|
|
|
|
--with-npth-prefix="$(INSTALL)" \
|
|
|
|
--prefix "/" \
|
2018-10-17 21:42:43 +00:00
|
|
|
--libexecdir "/bin" \
|
2018-01-05 21:09:07 +00:00
|
|
|
--enable-scdaemon \
|
|
|
|
--enable-ccid-driver \
|
|
|
|
--disable-tofu \
|
|
|
|
--disable-rpath \
|
2024-01-09 17:53:20 +00:00
|
|
|
--disable-regex \
|
|
|
|
--disable-doc \
|
2018-01-05 21:09:07 +00:00
|
|
|
--disable-bzip2 \
|
|
|
|
--disable-exec \
|
|
|
|
--disable-photo-viewers \
|
|
|
|
--disable-ldap \
|
|
|
|
--disable-regex \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-all-tests \
|
|
|
|
--disable-wks-tools \
|
|
|
|
--disable-gnutls \
|
2018-09-19 10:33:18 +00:00
|
|
|
--disable-dirmngr \
|
2023-03-24 02:33:16 +00:00
|
|
|
--disable-ntbtls \
|
2023-06-26 12:45:21 +00:00
|
|
|
--disable-libdns \
|
2020-10-26 14:19:57 +00:00
|
|
|
--disable-zip \
|
|
|
|
--disable-sqlite \
|
|
|
|
--disable-gpgsm \
|
2018-01-05 21:09:07 +00:00
|
|
|
|
|
|
|
# Run one build to generate the executables with the pre-defined
|
|
|
|
# exec_prefix and datarootdir, then a second make to install the binaries
|
|
|
|
# into our actual target location
|
|
|
|
gpg2_target := $(MAKE_JOBS) \
|
|
|
|
&& $(MAKE) -C $(build)/$(gpg2_dir) \
|
|
|
|
DESTDIR="$(INSTALL)" \
|
|
|
|
install
|
|
|
|
|
2023-06-26 12:45:21 +00:00
|
|
|
gpg2_output := g10/gpg agent/gpg-agent scd/scdaemon
|