annotate src/eigen.mk @ 3048:5ef49fb3299d

treat gcc and binutils as build tools use a separate target for building the cmake toolchain file don't unpack gcc or binutils if we are using the system compiler
author John W. Eaton <jwe@octave.org>
date Fri, 14 Jun 2013 16:51:29 -0400
parents 4d0f3a9da57e
children 13be64f9f16d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2329
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
2027
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
3
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
4 PKG := eigen
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2177
46ff01670040 Fixed checksum of package eigen
Volker Grabsch <vog@notjusthosting.com>
parents: 2169
diff changeset
6 $(PKG)_CHECKSUM := 7e1674420a8eef7e90e1875ef5b9e828fb9db381
2182
a30157a3ce8e package eigen: fixed subdir
Mark Brand <mabrand@mabrand.nl>
parents: 2178
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$(PKG)-b23437e61a07
2031
42ea60937f81 package eigen: fix filename
Mark Brand <mabrand@mabrand.nl>
parents: 2028
diff changeset
8 $(PKG)_FILE := $($(PKG)_VERSION).tar.gz
2178
44e3d954a3ad Fixed download URL of package eigen: HTTP redirects to HTTPS, so we should use the HTTPS URL directly
Volker Grabsch <vog@notjusthosting.com>
parents: 2177
diff changeset
9 $(PKG)_URL := https://bitbucket.org/$(PKG)/$(PKG)/get/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
10 $(PKG)_DEPS :=
2027
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
11
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://eigen.tuxfamily.org/index.php?title=Main_Page#Download' | \
2027
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
14 grep 'eigen/get/' | \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
15 $(SED) -n 's,.*eigen/get/\(2[^>]*\)\.tar.*,\1,p' | \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
16 head -1
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
17 endef
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
18
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
19 define $(PKG)_BUILD
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
20 cd '$(1)' && \
2329
466e77a78672 Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents: 2182
diff changeset
21 cmake . -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'
2027
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
22 $(MAKE) -C '$(1)' -j '$(JOBS)' install
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
23 endef