annotate src/glpk.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 4f9b72cf7ee7
children bcc26ffe9a0f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2871
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := glpk
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 35e16d3167389b6bc75eb51b4b48590db59f789c
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_FILE := glpk-$($(PKG)_VERSION).tar.gz
2928
1e4ad8a5461a fix download url for glpk
John W. Eaton <jwe@octave.org>
parents: 2882
diff changeset
9 $(PKG)_URL := ftp://ftp.gnu.org/gnu/glpk/$($(PKG)_FILE)
2871
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 echo 'Warning: Updates are temporarily disabled for package glpk.' >&2;
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 echo $(glpk_VERSION)
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 endef
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 define $(PKG)_BUILD
2948
5a02aaaff885 update libtool usage for glpk
John W. Eaton <jwe@octave.org>
parents: 2928
diff changeset
18 cd '$(1)' && aclocal && libtoolize && autoreconf
2871
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 mkdir '$(1)/.build'
b7c77abd9273 Include glpk 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: 2948
diff changeset
21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
2871
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 --host='$(TARGET)' \
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 --build="`config.guess`" \
2948
5a02aaaff885 update libtool usage for glpk
John W. Eaton <jwe@octave.org>
parents: 2928
diff changeset
24 $(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
25 --prefix='$(HOST_PREFIX)'
2871
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 endef