annotate src/qhull.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 bcc26ffe9a0f
children ee6f302d0659
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2890
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := qhull
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 108d59efa60b2ebaf94b121414c8f8b7b76a7409
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_FILE := qhull-$($(PKG)_VERSION).tar.gz
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_URL := http://download.savannah.gnu.org/releases/qhull/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
10 $(PKG)_DEPS :=
2890
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 echo 'Warning: Updates are temporarily disabled for package qhull.' >&2;
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 echo $(qhull_VERSION)
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 endef
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 define $(PKG)_BUILD
2947
e18f5b46e77c update libtool usage for qhull
John W. Eaton <jwe@octave.org>
parents: 2901
diff changeset
18 cd '$(1)' && aclocal && libtoolize && autoreconf
2890
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 mkdir '$(1)/.build'
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 cd '$(1)/.build' && '$(1)/configure' \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2947
diff changeset
21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2947
e18f5b46e77c update libtool usage for qhull
John W. Eaton <jwe@octave.org>
parents: 2901
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
24 --prefix='$(HOST_PREFIX)'
2890
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 endef