2007-07-17 20:11:55 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# 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
|
2007-11-28 09:57:00 +01:00
|
|
|
LIBGPG_ERROR_DESTDIR:=usr/lib
|
2007-07-17 20:11:55 +02:00
|
|
|
LIBGPG_ERROR_TARGET_LIBRARY=$(LIBGPG_ERROR_DESTDIR)/libgpg-error.so
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBGPG_ERROR_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LIBGPG_ERROR_SITE),$(LIBGPG_ERROR_SOURCE))
|
2007-07-17 20:11:55 +02:00
|
|
|
|
|
|
|
$(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
|
2007-08-11 23:47:28 +02:00
|
|
|
$(CONFIG_UPDATE) $(LIBGPG_ERROR_DIR)
|
2007-07-17 20:11:55 +02:00
|
|
|
touch $(LIBGPG_ERROR_DIR)/.source
|
|
|
|
|
|
|
|
$(LIBGPG_ERROR_DIR)/.configured: $(LIBGPG_ERROR_DIR)/.source
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(LIBGPG_ERROR_DIR); rm -f config.cache; \
|
2007-07-17 20:11:55 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2007-09-19 12:26:11 +02:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-11-28 09:57:00 +01:00
|
|
|
--libdir=/usr/lib \
|
2007-09-19 12:26:11 +02:00
|
|
|
--libexecdir=/$(LIBGPG_ERROR_DESTDIR) \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
$(DISABLE_NLS) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
|
|
|
touch $(LIBGPG_ERROR_DIR)/.configured
|
2007-07-17 20:11:55 +02:00
|
|
|
|
|
|
|
$(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
|
2007-11-28 09:57:00 +01:00
|
|
|
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libgpg-error.la
|
2007-07-17 20:11:55 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY): $(STAGING_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY)
|
2007-08-22 14:35:41 +02:00
|
|
|
cp -dpf $<* $(TARGET_DIR)/$(LIBGPG_ERROR_DESTDIR)
|
2007-07-17 20:11:55 +02:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
libgpg-error: $(TARGET_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY)
|
2007-07-17 20:11:55 +02:00
|
|
|
|
|
|
|
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
|
2007-11-28 09:57:00 +01:00
|
|
|
rm -f $(STAGING_DIR)/$(LIBGPG_ERROR_TARGET_LIBRARY)\*
|
2007-07-17 20:11:55 +02:00
|
|
|
|
|
|
|
libgpg-error-dirclean:
|
|
|
|
rm -rf $(LIBGPG_ERROR_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGPG_ERROR),y)
|
2007-07-17 20:11:55 +02:00
|
|
|
TARGETS+=libgpg-error
|
|
|
|
endif
|