view src/eigen.mk @ 2182:a30157a3ce8e

package eigen: fixed subdir
author Mark Brand <mabrand@mabrand.nl>
date Thu, 22 Dec 2011 09:58:03 +0100
parents 44e3d954a3ad
children 466e77a78672
line wrap: on
line source

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

# eigen
PKG             := eigen
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 2.0.17
$(PKG)_CHECKSUM := 7e1674420a8eef7e90e1875ef5b9e828fb9db381
$(PKG)_SUBDIR   := $(PKG)-$(PKG)-b23437e61a07
$(PKG)_FILE     := $($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE  := http://eigen.tuxfamily.org/
$(PKG)_URL      := https://bitbucket.org/$(PKG)/$(PKG)/get/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc

define $(PKG)_UPDATE
    wget -q -O- 'http://eigen.tuxfamily.org/index.php?title=Main_Page#Download' | \
    grep 'eigen/get/' | \
    $(SED) -n 's,.*eigen/get/\(2[^>]*\)\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && \
    cmake . -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' 
    $(MAKE) -C '$(1)' -j '$(JOBS)' install
endef