Mercurial > mxe-octave
view src/libgcrypt.mk @ 4462:8b731cde3aaa
sundials-ida: build against the SuiteSparse KLU library
* src/sundials-ida.mk: Depend on suitesparse, add cmake options to enable
linking with KLU.
* src/sundials-ida-1.patch: New file.
* dist-files.mk (SRC_FILES_1): Include it in the list.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Fri, 01 Sep 2017 18:04:27 -0700 |
parents | 5eef82cc581c |
children | e5efd844c4c8 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := libgcrypt $(PKG)_IGNORE := $(PKG)_VERSION := 1.7.6 $(PKG)_CHECKSUM := d2b9e0f413064cfc67188f80d3cbda887c755a62 $(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION) $(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/$($(PKG)_FILE) $(PKG)_DEPS := libgpg_error 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 ifeq ($(TARGET),x86_64-w64-mingw32) $(PKG)_TARGET_CONFIGURE_OPTIONS := ac_cv_sys_symbol_underscore=no else $(PKG)_TARGET_CONFIGURE_OPTIONS := endif define $(PKG)_BUILD sed -i -e '/^ *;/d' -e '/^ *$$/d' '$(1)/src/libgcrypt.def' cd '$(1)' && ./configure \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' \ --with-gpg-error-prefix='$(HOST_PREFIX)' \ $($(PKG)_TARGET_CONFIGURE_OPTIONS) && $(CONFIGURE_POST_HOOK) $(if $(filter msvc,$(MXE_SYSTEM)), \ $(SED) -i -e '/^LTCPPASCOMPILE/ {s/$$(LIBTOOL)/& --tag=CC/;}' '$(1)/mpi/Makefile') $(MAKE) -C '$(1)' -j '$(JOBS)' all bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)' $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)' if [ $(MXE_NATIVE_BUILD) = no ]; then \ $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/libgcrypt-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config'; \ fi endef