blob: 8d7d66a124f93ca0a7b648ab28aac64188930991 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libgpg_error
$(PKG)_WEBSITE := ftp://ftp.gnupg.org/gcrypt/libgpg-error/
$(PKG)_DESCR := libgpg-error
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.26
$(PKG)_CHECKSUM := 4c4bcbc90116932e3acd37b37812d8653b1b189c1904985898e860af818aee69
$(PKG)_SUBDIR := libgpg-error-$($(PKG)_VERSION)
$(PKG)_FILE := libgpg-error-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://mirrors.dotsrc.org/gcrypt/libgpg-error/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.gnupg.org/gcrypt/libgpg-error/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gettext
define $(PKG)_UPDATE
$(WGET) -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/' | \
$(SED) -n 's,.*libgpg-error-\([1-9]\.[1-9][0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)/src/syscfg' && ln -s lock-obj-pub.mingw32.h lock-obj-pub.mingw32.static.h
cd '$(1)/src/syscfg' && ln -s lock-obj-pub.mingw32.h lock-obj-pub.mingw32.shared.h
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-nls \
--disable-languages
$(SED) -i 's/-lgpg-error/-lgpg-error -lintl -liconv/;' '$(1)/src/gpg-error-config'
$(SED) -i 's/host_os = mingw32.*/host_os = mingw32/' '$(1)/src/Makefile'
$(MAKE) -C '$(1)/src' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)/src' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
ln -sf '$(PREFIX)/$(TARGET)/bin/gpg-error-config' '$(PREFIX)/bin/$(TARGET)-gpg-error-config'
endef
|