Mercurial > mxe-octave
annotate src/glpk.mk @ 2928:1e4ad8a5461a
fix download url for glpk
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 19 Dec 2012 11:53:26 -0500 |
parents | d6ba1539596d |
children | 5a02aaaff885 |
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 | 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 |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 # build GCC and support libraries |
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' \ |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 --host='$(TARGET)' \ |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 --build="`config.guess`" \ |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 --disable-shared \ |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 --prefix='$(PREFIX)/$(TARGET)' |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 if [ $(BUILD_SHARED) = yes ]; then \ |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(PREFIX)/$(TARGET)/lib/libglpk.a'; \ |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \ |
2876
c766e4afd493
Delete installed .la files. Install .dll and .dll.a files with mode 755.
John W. Eaton <jwe@octave.org>
parents:
2871
diff
changeset
|
30 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libglpk.dll.a' '$(PREFIX)/$(TARGET)/lib/libglpk.dll.a'; \ |
c766e4afd493
Delete installed .la files. Install .dll and .dll.a files with mode 755.
John W. Eaton <jwe@octave.org>
parents:
2871
diff
changeset
|
31 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libglpk.dll' '$(PREFIX)/$(TARGET)/bin/libglpk.dll'; \ |
2871
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 rm -f '$(PREFIX)/$(TARGET)/lib/libglpk.dll'; \ |
2882
d6ba1539596d
remove installed .la file for glpk
John W. Eaton <jwe@octave.org>
parents:
2876
diff
changeset
|
33 rm -f '$(PREFIX)/$(TARGET)/lib/libglpk.la'; \ |
2871
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 fi |
b7c77abd9273
Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 endef |