annotate src/qhull.mk @ 2901:71294b7ce782 stable

create qhull shared library with gcc, not g++
author John W. Eaton <jwe@octave.org>
date Tue, 04 Dec 2012 17:59:31 -0500
parents 81e4b37912bf
children e18f5b46e77c
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)
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
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
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 # build GCC and support libraries
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' \
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 --host='$(TARGET)' \
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 --build="`config.guess`" \
2897
81e4b37912bf build shared libs from static for qhull
John W. Eaton <jwe@octave.org>
parents: 2890
diff changeset
23 --enable-static --disable-shared \
2890
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 --prefix='$(PREFIX)/$(TARGET)'
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
2897
81e4b37912bf build shared libs from static for qhull
John W. Eaton <jwe@octave.org>
parents: 2890
diff changeset
27 if [ $(BUILD_SHARED) = yes ]; then \
81e4b37912bf build shared libs from static for qhull
John W. Eaton <jwe@octave.org>
parents: 2890
diff changeset
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \
2901
71294b7ce782 create qhull shared library with gcc, not g++
John W. Eaton <jwe@octave.org>
parents: 2897
diff changeset
29 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(PREFIX)/$(TARGET)/lib/libqhull.a'; \
2897
81e4b37912bf build shared libs from static for qhull
John W. Eaton <jwe@octave.org>
parents: 2890
diff changeset
30 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libqhull.dll.a' '$(PREFIX)/$(TARGET)/lib/libqhull.dll.a'; \
81e4b37912bf build shared libs from static for qhull
John W. Eaton <jwe@octave.org>
parents: 2890
diff changeset
31 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libqhull.dll' '$(PREFIX)/$(TARGET)/bin/libqhull.dll'; \
81e4b37912bf build shared libs from static for qhull
John W. Eaton <jwe@octave.org>
parents: 2890
diff changeset
32 rm -f '$(PREFIX)/$(TARGET)/lib/libqhull.dll'; \
81e4b37912bf build shared libs from static for qhull
John W. Eaton <jwe@octave.org>
parents: 2890
diff changeset
33 rm -f '$(PREFIX)/$(TARGET)/lib/libqhull.la'; \
81e4b37912bf build shared libs from static for qhull
John W. Eaton <jwe@octave.org>
parents: 2890
diff changeset
34 fi
2890
152e3e693568 Include qhull as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 endef