2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2008-11-08 18:46:27 +00:00
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := libgpg_error
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.gnupg.org/related_software/libgpg-error/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := libgpg-error
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2020-08-25 12:18:07 +01:00
|
|
|
$(PKG)_VERSION := 1.39
|
|
|
|
$(PKG)_CHECKSUM := 4a836edcae592094ef1c5a4834908f44986ab2b82e0824a0344b49df8cdb298f
|
2009-04-05 13:00:17 +01:00
|
|
|
$(PKG)_SUBDIR := libgpg-error-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := libgpg-error-$($(PKG)_VERSION).tar.bz2
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL := https://gnupg.org/ftp/gcrypt/libgpg-error/$($(PKG)_FILE)
|
|
|
|
$(PKG)_URL_2 := https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libgpg-error/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc gettext
|
2008-11-08 18:46:27 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-05 03:41:39 +00:00
|
|
|
$(WGET) -q -O- 'https://gnupg.org/ftp/gcrypt/libgpg-error/' | \
|
2010-12-08 11:03:33 +00:00
|
|
|
$(SED) -n 's,.*libgpg-error-\([1-9]\.[1-9][0-9][^>]*\)\.tar.*,\1,p' | \
|
2018-04-04 20:15:07 +01:00
|
|
|
head -1
|
2008-11-08 18:46:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2019-04-24 14:25:24 +01:00
|
|
|
cd '$(SOURCE_DIR)/src/syscfg' && ln -s lock-obj-pub.mingw32.h lock-obj-pub.mingw32.$(call merge,.,$(call rest,$(call split,.,$(TARGET)))).h
|
2019-04-24 14:25:59 +01:00
|
|
|
cd '$(SOURCE_DIR)' && autoreconf -fi
|
2019-04-24 14:25:24 +01:00
|
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
2014-02-09 12:29:51 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2010-09-18 20:15:38 +01:00
|
|
|
--disable-nls \
|
2010-12-12 13:03:35 +00:00
|
|
|
--disable-languages
|
2019-04-24 14:25:24 +01:00
|
|
|
$(SED) -i 's/host_os = mingw32.*/host_os = mingw32/' '$(BUILD_DIR)/src/Makefile'
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)/src' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
|
|
|
$(SED) -i 's/-lgpg-error/-lgpg-error -lintl -liconv -lws2_32/;' '$(BUILD_DIR)/src/gpg-error-config'
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)/src' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
2013-08-07 12:47:14 +01:00
|
|
|
ln -sf '$(PREFIX)/$(TARGET)/bin/gpg-error-config' '$(PREFIX)/bin/$(TARGET)-gpg-error-config'
|
2008-11-08 18:46:27 +00:00
|
|
|
endef
|