annotate src/glpk.mk @ 3293:cf6f40cededb

Support file list generation in packages. For the following modules: - arpack - blas - build-autoconf - build-automake - build-cmake - build-gperf - build-libtool - build-msvctools - build-pkg-config - build-texinfo - bzip2 - curl - dbus - expat - fftw - fltk - fontconfig - freetype - gettext - glpk - gmp - gnuplot - gnutls - graphicsmagick - hdf5 - jasper - jpeg - lapack - lcms - libgcrypt - libgpg_error - libiconv - libidn - libpng - libssh2 - libxml2 - ncurses - nettle - openssl - pcre - pstoedit - zlib - qhull - qrupdate - qscintilla - qt - readline - suitesparse - texinfo - tiff
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 09 Nov 2013 23:28:04 -0500
parents 7ecd056f09a6
children 13be64f9f16d
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 :=
3270
7ecd056f09a6 Update glpk to 4.52.1
John Donoghue <john.donoghue@ieee.org>
parents: 3092
diff changeset
6 $(PKG)_CHECKSUM := 63fd6788f95adb52789767b19e38cfb58dda331e
2871
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)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
10 $(PKG)_DEPS :=
2871
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) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2948
5a02aaaff885 update libtool usage for glpk
John W. Eaton <jwe@octave.org>
parents: 2928
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
3092
b299bc8e349a [MSVC] enable GLPK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
24 --prefix='$(HOST_PREFIX)' && $(CONFIGURE_POST_HOOK)
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3270
diff changeset
25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'
2871
b7c77abd9273 Include glpk as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 endef