Add gpg-error package
This commit is contained in:
parent
630dec28c2
commit
92bca2efe7
package/libgpg-error
8
package/libgpg-error/Config.in
Normal file
8
package/libgpg-error/Config.in
Normal file
@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_LIBGPG_ERROR
|
||||
bool "libgpg-error"
|
||||
default n
|
||||
help
|
||||
Libgpg-error is a small library with error codes and
|
||||
descriptions shared by most GnuPG related software.
|
||||
|
||||
ftp://gd.tuwien.ac.at/privacy/gnupg/libgpg-error
|
74
package/libgpg-error/libgpg-error.mk
Normal file
74
package/libgpg-error/libgpg-error.mk
Normal file
@ -0,0 +1,74 @@
|
||||
#############################################################
|
||||
#
|
||||
# libgpg-error
|
||||
#
|
||||
#############################################################
|
||||
LIBGPG_ERROR_VERSION:=1.5
|
||||
LIBGPG_ERROR_SOURCE:=libgpg-error-$(LIBGPG_ERROR_VERSION).tar.bz2
|
||||
LIBGPG_ERROR_SITE:=ftp://gd.tuwien.ac.at/privacy/gnupg/libgpg-error
|
||||
LIBGPG_ERROR_DIR:=$(BUILD_DIR)/libgpg-error-$(LIBGPG_ERROR_VERSION)
|
||||
LIBGPG_ERROR_LIBRARY:=src/libgpg-error.la
|
||||
LIBGPG_ERROR_DESTDIR:=lib
|
||||
LIBGPG_ERROR_TARGET_LIBRARY=$(LIBGPG_ERROR_DESTDIR)/libgpg-error.so
|
||||
|
||||
$(DL_DIR)/$(LIBGPG_ERROR_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LIBGPG_ERROR_SITE)/$(LIBGPG_ERROR_SOURCE)
|
||||
|
||||
$(LIBGPG_ERROR_DIR)/.source: $(DL_DIR)/$(LIBGPG_ERROR_SOURCE)
|
||||
$(BZCAT) $(DL_DIR)/$(LIBGPG_ERROR_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
toolchain/patch-kernel.sh $(LIBGPG_ERROR_DIR) package/libgpg-error/ libgpg-error\*.patch
|
||||
touch $(LIBGPG_ERROR_DIR)/.source
|
||||
|
||||
$(LIBGPG_ERROR_DIR)/.configured: $(LIBGPG_ERROR_DIR)/.source
|
||||
(cd $(LIBGPG_ERROR_DIR); \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libdir=/lib \
|
||||
--libexecdir=/$(LIBGPG_ERROR_DESTDIR) \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--includedir=/include \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
);
|
||||
touch $(LIBGPG_ERROR_DIR)/.configured;
|
||||
|
||||
$(LIBGPG_ERROR_DIR)/$(LIBGPG_ERROR_LIBRARY): $(LIBGPG_ERROR_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(LIBGPG_ERROR_DIR)
|
||||
|
||||
$(STAGING_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY): $(LIBGPG_ERROR_DIR)/$(LIBGPG_ERROR_LIBRARY)
|
||||
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBGPG_ERROR_DIR) install
|
||||
|
||||
|
||||
$(TARGET_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY): $(STAGING_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY)
|
||||
cp -dpf $<* $(TARGET_DIR)/$(LIBGPG_ERROR_DESTDIR)
|
||||
|
||||
libgpg-error: uclibc $(TARGET_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY)
|
||||
|
||||
libgpg-error-source: $(DL_DIR)/$(LIBGPG_ERROR_SOURCE)
|
||||
|
||||
libgpg-error-clean:
|
||||
rm -f $(TARGET_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY)*
|
||||
-$(MAKE) -C $(LIBGPG_ERROR_DIR) clean
|
||||
|
||||
libgpg-error-dirclean:
|
||||
rm -rf $(LIBGPG_ERROR_DIR)
|
||||
|
||||
.PHONY: libgpg-error
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(strip $(BR2_PACKAGE_LIBGPG_ERROR)),y)
|
||||
TARGETS+=libgpg-error
|
||||
endif
|
Loading…
Reference in New Issue
Block a user