Mercurial > mxe-octave
annotate src/qhull.mk @ 6161:8fcac4d6d983 release
of-queueing: Fix syntax error with Octave 7 (bug #62314).
* src/of-queueing-1-octave7.patch: Add new file.
* dist-files.mk: Include new patch.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 14 Apr 2022 19:27:13 +0200 |
parents | d52c26fc0820 |
children | 5c46967d43cc |
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 := |
5629
8279e6b94a0b
* src/qhull.mk: update to v2020.2
John Donoghue <john.donoghue@ieee.org>
parents:
5571
diff
changeset
|
6 $(PKG)_VERSION := 2020.2 |
8279e6b94a0b
* src/qhull.mk: update to v2020.2
John Donoghue <john.donoghue@ieee.org>
parents:
5571
diff
changeset
|
7 $(PKG)_CHECKSUM := 739346b5d6b3fe3675243b156c7ffe55f60cc3c9 |
2890
152e3e693568
Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
152e3e693568
Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 $(PKG)_FILE := qhull-$($(PKG)_VERSION).tar.gz |
4874 | 10 $(PKG)_URL := https://github.com/qhull/$(PKG)/archive/$($(PKG)_VERSION).tar.gz |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
11 $(PKG)_DEPS := |
2890
152e3e693568
Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 |
4874 | 13 $(PKG)_CMAKE_OPTS := |
14 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) | |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5474
diff
changeset
|
15 ifeq ($(MXE_SYSTEM),mingw) |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5474
diff
changeset
|
16 $(PKG)_CMAKE_OPTS := -G "MSYS Makefiles" |
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5474
diff
changeset
|
17 endif |
3887
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
18 endif |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
19 |
2890
152e3e693568
Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 define $(PKG)_UPDATE |
4874 | 21 $(WGET) -q -O- 'https://github.com/qhull/qhull/tags' | \ |
22 $(SED) -n 's|.*releases/tag/\([0-9][^"]*\).*|\1|p' | $(SORT) -V | \ | |
23 tail -1 | |
2890
152e3e693568
Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 endef |
152e3e693568
Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 |
5653
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
26 # FIXME: Building and installing the deprecated target "libqhull" can be |
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
27 # removed when Octave switches to using "libqhull_r" (see bug #60016). |
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
28 |
2890
152e3e693568
Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 define $(PKG)_BUILD |
4874 | 30 mkdir '$(1)/../.build' |
31 cd '$(1)/../.build' && cmake \ | |
32 $($(PKG)_CMAKE_OPTS) \ | |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5474
diff
changeset
|
33 $(CMAKE_CCACHE_FLAGS) \ |
5571
b19fb3ed330c
use cmake command line to set build shared/static options (bug #59373)
John W. Eaton <jwe@octave.org>
parents:
5541
diff
changeset
|
34 $(CMAKE_BUILD_SHARED_OR_STATIC) \ |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5474
diff
changeset
|
35 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
4954
c105cddd23d5
* src/qhull.mk: redirect doc install path so doesnt install docs
John Donoghue
parents:
4874
diff
changeset
|
36 -DDOC_INSTALL_DIR='$(1)' \ |
4874 | 37 ../$($(PKG)_SUBDIR) |
38 make -C $(1)/../.build -j $(JOBS) | |
5653
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
39 make -C $(1)/../.build libqhull -j $(JOBS) |
4874 | 40 make -C $(1)/../.build -j 1 install DESTDIR=$(3) |
5653
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
41 if [ x$(MXE_WINDOWS_BUILD) == xyes ]; then \ |
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
42 $(INSTALL) '$(1)/../.build/libqhull.dll.a' '$(3)$(HOST_LIBDIR)/'; \ |
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
43 $(INSTALL) '$(1)/../.build/libqhull.dll' '$(3)$(HOST_BINDIR)/'; \ |
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
44 else \ |
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
45 $(INSTALL) $(1)/../.build/libqhull.so* '$(3)$(HOST_LIBDIR)/'; \ |
d52c26fc0820
Qhull: Build and install non-reentrant libqhull (bug #60016).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5629
diff
changeset
|
46 fi |
2890
152e3e693568
Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 endef |