comparison src/armadillo.mk @ 2720:82d1044a4434

added armadillo 3.4.0 with test
author Christian Frisson <christian.frisson@gmail.com>
date Sun, 09 Sep 2012 17:01:46 +0200
parents
children c09c51105bf3
comparison
equal deleted inserted replaced
2718:c38f62ba10b1 2720:82d1044a4434
1 # This file is part of MXE.
2 # See index.html for further information.
3
4 # armadillo
5 PKG := armadillo
6 $(PKG)_IGNORE :=
7 $(PKG)_CHECKSUM := e7fdb6518172aabaa28c84412b52db7d86ef37a5
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/arma/$($(PKG)_FILE)
11 $(PKG)_DEPS := gcc boost blas lapack
12
13 define $(PKG)_UPDATE
14 wget -q -O- 'http://sourceforge.net/projects/arma/files/' | \
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
16 head -1
17 endef
18
19 define $(PKG)_BUILD
20 cd '$(1)' && \
21 cmake . -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'
22 $(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1
23
24 # note: don't use -Werror with GCC 4.7.0 and .1
25 '$(TARGET)-g++' \
26 -W -Wall \
27 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-armadillo.exe' \
28 -larmadillo -llapack -lblas -lgfortran
29 -lboost_serialization-mt -lboost_thread_win32-mt -lboost_system-mt
30 endef