Mercurial > mxe-octave
view src/libgcrypt.mk @ 3027:316b79f1a41b
Update libgcrypt for native mingw build
* src/libgcrypt.mk: add -with-gpg-error-prefix= to find gpg-error when compiling under native mingw.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 08 Jun 2013 18:50:44 -0400 |
parents | b6c7244a2f66 |
children | 951da75fd09c |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := libgcrypt $(PKG)_IGNORE := $(PKG)_CHECKSUM := 3e776d44375dc1a710560b98ae8437d5da6e32cf $(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION) $(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/$($(PKG)_FILE) $(PKG)_DEPS := gcc libgpg_error ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) $(PKG)_CONFIG_OPTS := --with-gpg-error-prefix='$(HOST_PREFIX)' endif define $(PKG)_UPDATE $(WGET) -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/' | \ $(SED) -n 's,.*libgcrypt-\([0-9][^>]*\)\.tar.*,\1,p' | \ grep -v '^1\.4\.' | \ tail -1 endef define $(PKG)_BUILD cd '$(1)' && autoreconf && ./configure \ $($(PKG)_CONFIG_OPTS) \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= $(LN_SF) '$(HOST_BINDIR)/libgcrypt-config' '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-libgcrypt-config' endef