1 #############################################################
5 #############################################################
7 GNUPG_SOURCE
:=gnupg_
$(GNUPG_VERSION
).orig.
tar.gz
8 GNUPG_PATCH
:=gnupg_
$(GNUPG_VERSION
)-2.1.diff.gz
9 GNUPG_SITE
:=$(BR2_DEBIAN_MIRROR
)/debian
/pool
/main
/g
/gnupg
10 GNUPG_DIR
:=$(BUILD_DIR
)/gnupg-
$(GNUPG_VERSION
)
13 GNUPG_TARGET_BINARY
:=usr
/bin
/gpg
15 $(DL_DIR
)/$(GNUPG_SOURCE
):
16 $(WGET
) -P
$(DL_DIR
) $(GNUPG_SITE
)/$(GNUPG_SOURCE
)
18 $(DL_DIR
)/$(GNUPG_PATCH
):
19 $(WGET
) -P
$(DL_DIR
) $(GNUPG_SITE
)/$(GNUPG_PATCH
)
21 $(GNUPG_DIR
)/.unpacked
: $(DL_DIR
)/$(GNUPG_SOURCE
) $(DL_DIR
)/$(GNUPG_PATCH
)
22 $(GNUPG_CAT
) $(DL_DIR
)/$(GNUPG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
23 toolchain
/patch-kernel.sh
$(GNUPG_DIR
) package
/gnupg
/ gnupg\
*.patch
24 ifneq ($(GNUPG_PATCH
),)
25 (cd
$(GNUPG_DIR
) && $(GNUPG_CAT
) $(DL_DIR
)/$(GNUPG_PATCH
) | patch
-p1
)
26 if
[ -d
$(GNUPG_DIR
)/debian
/patches
]; then \
27 toolchain
/patch-kernel.sh
$(GNUPG_DIR
) $(GNUPG_DIR
)/debian
/patches \
*.dpatch
; \
30 $(CONFIG_UPDATE
) $(@D
)
31 $(SED
) 's/-O2//g' $(@D
)/configure
34 $(GNUPG_DIR
)/.configured
: $(GNUPG_DIR
)/.unpacked
35 (cd
$(GNUPG_DIR
); rm -rf config.cache
; \
36 ac_cv_sys_symbol_underscore
=no \
37 $(AUTO_CONFIGURE_TARGET
) \
39 $(DISABLE_LARGEFILE
) \
49 $(GNUPG_DIR
)/$(GNUPG_BINARY
): $(GNUPG_DIR
)/.configured
50 $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(GNUPG_DIR
)
52 $(TARGET_DIR
)/$(GNUPG_TARGET_BINARY
): $(GNUPG_DIR
)/$(GNUPG_BINARY
)
53 $(INSTALL
) -D
-m0755
$(GNUPG_DIR
)/$(GNUPG_BINARY
) $@
54 $(INSTALL
) -D
-m0755
$(GNUPG_DIR
)/$(GNUPG_BINARY
)v
$(@D
)/
55 $(STRIPCMD
) $(STRIP_STRIP_ALL
) $@
$@v
57 gnupg
: uclibc
$(TARGET_DIR
)/$(GNUPG_TARGET_BINARY
)
59 gnupg-source
: $(DL_DIR
)/$(GNUPG_SOURCE
) $(DL_DIR
)/$(GNUPG_PATCH
)
62 -$(MAKE
) -C
$(GNUPG_DIR
) clean
63 rm -f
$(TARGET_DIR
)/$(GNUPG_TARGET_BINARY
)*
67 #############################################################
69 # Toplevel Makefile options
71 #############################################################
72 ifeq ($(BR2_PACKAGE_GNUPG
),y
)