mxe/src/eigen.mk

34 lines
1.1 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2011-10-21 23:24:34 +01:00
PKG := eigen
$(PKG)_IGNORE :=
2014-04-14 16:55:36 +01:00
$(PKG)_VERSION := 3.2.1
$(PKG)_CHECKSUM := 17aca570d647b25cb3d9dac54b480cfecf402ed9
$(PKG)_SUBDIR := $(PKG)-$(PKG)-6b38706d90a9
$(PKG)_FILE := $($(PKG)_VERSION).tar.bz2
$(PKG)_URL := https://bitbucket.org/$(PKG)/$(PKG)/get/$($(PKG)_FILE)
2011-10-21 23:24:34 +01:00
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://eigen.tuxfamily.org/index.php?title=Main_Page#Download' | \
2011-10-21 23:24:34 +01:00
grep 'eigen/get/' | \
$(SED) -n 's,.*eigen/get/\(3[^>]*\)\.tar.*,\1,p' | \
2011-10-21 23:24:34 +01:00
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && mkdir build && cd build && cmake .. \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DCMAKE_BUILD_TYPE=Release \
-DEIGEN_BUILD_PKGCONFIG=ON \
-Drun_res=1 -Drun_res__TRYRUN_OUTPUT=""
$(MAKE) -C '$(1)'/build -j '$(JOBS)' install VERBOSE=1
'$(TARGET)-g++' -W -Wall '$(2).cpp' -o \
'$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
2014-04-28 09:26:27 +01:00
`'$(TARGET)-pkg-config' --cflags --libs eigen3`
2011-10-21 23:24:34 +01:00
endef
$(PKG)_BUILD_SHARED =