Mercurial > mxe-octave
view src/gsl.mk @ 4853:2ee6a02e6f28
check for ccache; don't attempt to use ccache if it is missing (bug #54746)
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 10 Oct 2018 14:31:19 -0400 |
parents | 07e793613a5b |
children | 8364de978bfd |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := gsl $(PKG)_IGNORE := $(PKG)_VERSION := 2.5 $(PKG)_CHECKSUM := 9b3a32ba4f4e79fc6164fdc62e56003ae6e991e5 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) $(PKG)_DEPS := define $(PKG)_UPDATE $(WGET) -q -O- 'https://ftp.gnu.org/gnu/$(PKG)/' | \ $(SED) -n 's,.*<a href="gsl-\([0-9.]\+\).tar.gz".*,\1,p' | \ $(SORT) -V | \ tail -1 endef ifeq ($(MXE_SYSTEM),msvc) $(PKG)_EXTRA_CONFIGURE_OPTIONS := \ ac_cv_func_memcpy=yes \ ac_cv_c_inline=no endif define $(PKG)_BUILD if [ $(MXE_SYSTEM) = msvc ]; then \ cd '$(1)' && autoreconf -i -f -v; \ fi cd '$(1)' && ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --enable-maintainer-mode \ --prefix='$(HOST_PREFIX)' \ $(ENABLE_SHARED_OR_STATIC) \ $($(PKG)_EXTRA_CONFIGURE_OPTIONS) \ && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install endef