Mercurial > mxe-octave
diff src/qhull.mk @ 2890:152e3e693568
Include qhull as a dependency of Octave
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 29 Nov 2012 12:22:19 -0500 |
parents | |
children | 81e4b37912bf |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/qhull.mk Thu Nov 29 12:22:19 2012 -0500 @@ -0,0 +1,28 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := qhull +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := 108d59efa60b2ebaf94b121414c8f8b7b76a7409 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := qhull-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://download.savannah.gnu.org/releases/qhull/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + echo 'Warning: Updates are temporarily disabled for package qhull.' >&2; + echo $(qhull_VERSION) +endef + +define $(PKG)_BUILD + # build GCC and support libraries + mkdir '$(1)/.build' + cd '$(1)/.build' && '$(1)/configure' \ + --host='$(TARGET)' \ + --build="`config.guess`" \ + $(ENABLE_SHARED_DISABLE_STATIC) \ + --prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install + + rm -f $(PREFIX)/$(TARGET)/lib/libqhull.la +endef