Mercurial > mxe-octave
comparison src/qhull.mk @ 4874:c4e929fb081d
Update qhull to 2015.2
* dist-files.mk: remove ref to qhull-2-fixes.patch
* src/qhull-2-fixes.patch: removed
* src/qhull-1-fixes.patch: update patch
* src/qhull.mk: update version,checksum, update and build rule
author | John Donoghue |
---|---|
date | Tue, 30 Oct 2018 16:29:41 -0400 |
parents | 0641ed0cbc53 |
children | c105cddd23d5 |
comparison
equal
deleted
inserted
replaced
4873:5454d33ef781 | 4874:c4e929fb081d |
---|---|
1 # This file is part of MXE. | 1 # This file is part of MXE. |
2 # See index.html for further information. | 2 # See index.html for further information. |
3 | 3 |
4 PKG := qhull | 4 PKG := qhull |
5 $(PKG)_IGNORE := | 5 $(PKG)_IGNORE := |
6 $(PKG)_VERSION := 2009.1 | 6 $(PKG)_VERSION := 2015.2 |
7 $(PKG)_CHECKSUM := 108d59efa60b2ebaf94b121414c8f8b7b76a7409 | 7 $(PKG)_CHECKSUM := 0dd03e0232124c81c696fac60db71ca7327eb16e |
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := qhull-$($(PKG)_VERSION).tar.gz | 9 $(PKG)_FILE := qhull-$($(PKG)_VERSION).tar.gz |
10 $(PKG)_URL := http://download.savannah.gnu.org/releases/qhull/$($(PKG)_FILE) | 10 $(PKG)_URL := https://github.com/qhull/$(PKG)/archive/$($(PKG)_VERSION).tar.gz |
11 $(PKG)_DEPS := | 11 $(PKG)_DEPS := |
12 | 12 |
13 ifeq ($(ENABLE_QHULL_NO_STRICT_ALIASING_FLAG),yes) | 13 $(PKG)_CMAKE_OPTS := |
14 $(PKG)_CONFIGURE_CFLAGS := CFLAGS="-O2 -g -fno-strict-aliasing" | 14 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
15 ifeq ($(MXE_SYSTEM),mingw) | |
16 $(PKG)_CMAKE_OPTS := -G "MSYS Makefiles" | |
17 endif | |
15 endif | 18 endif |
16 | 19 |
17 define $(PKG)_UPDATE | 20 define $(PKG)_UPDATE |
18 echo 'Warning: Updates are temporarily disabled for package qhull.' >&2; | 21 $(WGET) -q -O- 'https://github.com/qhull/qhull/tags' | \ |
19 echo $(qhull_VERSION) | 22 $(SED) -n 's|.*releases/tag/\([0-9][^"]*\).*|\1|p' | $(SORT) -V | \ |
23 tail -1 | |
20 endef | 24 endef |
21 | 25 |
22 define $(PKG)_BUILD | 26 define $(PKG)_BUILD |
23 cd '$(1)' && aclocal && libtoolize && autoreconf | 27 mkdir '$(1)/../.build' |
24 mkdir '$(1)/.build' | 28 cd '$(1)/../.build' && cmake \ |
25 cd '$(1)/.build' && '$(1)/configure' \ | 29 $($(PKG)_CMAKE_OPTS) \ |
26 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | 30 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
27 $($(PKG)_CONFIGURE_CFLAGS) \ | 31 ../$($(PKG)_SUBDIR) |
28 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | 32 make -C $(1)/../.build -j $(JOBS) |
29 $(ENABLE_SHARED_OR_STATIC) \ | 33 make -C $(1)/../.build -j 1 install DESTDIR=$(3) |
30 --prefix='$(HOST_PREFIX)' && $(CONFIGURE_POST_HOOK) | |
31 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' $(MXE_DISABLE_DOCS) | |
32 endef | 34 endef |