view src/gsl.mk @ 838:d11f82bd2ef5

small corrections for package gsl (by Mark Brand)
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 10 Apr 2010 05:08:25 +0200
parents ff7c924750f8
children db4ac7cade9b
line wrap: on
line source

# This file is part of mingw-cross-env.
# See doc/index.html for further information.

# GSL
PKG             := gsl
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 1.14
$(PKG)_CHECKSUM := e1a600e4fe359692e6f0e28b7e12a96681efbe52
$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE  := http://www.gnu.org/software/gsl/
$(PKG)_URL      := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc

define $(PKG)_UPDATE
    wget -q -O- 'http://www.gnu.org/software/gsl' | \
    grep -o "GSL-[0-9.]*" | \
    $(SED) -e s/GSL-//g -e s/'.$'//g | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --prefix='$(PREFIX)/$(TARGET)' \
        --disable-shared \
        --enable-static
    $(MAKE) -C '$(1)' -j '$(JOBS)'
    $(MAKE) -C '$(1)' -j 1 install
endef