view src/build-bison.mk @ 5025:0cbc51911dd0

Update sundials to 4.1.0 while keeping version 2.7.0 * src/sundials-27-ida.mk, src/sundials-27-ida-1.patch: Rename files. * src/sundials-ida.mk: Update version and checksum. * src/default-octave.mk: Add suitesparse headers to CPPFLAGS. * stable-octave.mk, release-octave.mk: Depend on older version of Sundials IDA. * index.html: Add item for Sundials IDA at version 2.7.0. * dist-files.mk: Add and rename files.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 16 Mar 2019 18:23:21 +0100
parents 96591d1483cb
children a3133716bcaf
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := build-bison
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 3.3.2
$(PKG)_CHECKSUM := 6a09cd588f7a0f985839fc8cecdc80da948f7de7
$(PKG)_SUBDIR   := bison-$($(PKG)_VERSION)
$(PKG)_FILE     := bison-$($(PKG)_VERSION).tar.xz
$(PKG)_URL      := ftp://ftp.gnu.org/pub/gnu/bison/$($(PKG)_FILE)
$(PKG)_DEPS     := build-xz

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://ftp.gnu.org/gnu/bison/?C=M;O=D' | \
    $(SED) -n 's,.*<a href="bison-\([0-9\.]*\)\.tar.*,\1,p' | \
    $(SORT) -V | \
    tail -1
endef

define $(PKG)_BUILD
    mkdir '$(1).build'
    cd    '$(1).build' && '$(1)/configure' \
        --prefix='$(BUILD_TOOLS_PREFIX)'
    $(MAKE) -C '$(1).build' -j '$(JOBS)'
    $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)'
endef