annotate src/blas.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 5ef49fb3299d
children 13be64f9f16d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1765
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
3
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
4 PKG := blas
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
1765
b7d33ba09080 update package: blas
Volker Grabsch <vog@notjusthosting.com>
parents: 1735
diff changeset
6 $(PKG)_CHECKSUM := a643b737c30a0a5b823e11e33c9d46a605122c61
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := BLAS
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1374
diff changeset
8 $(PKG)_FILE := $(PKG).tgz
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1374
diff changeset
9 $(PKG)_URL := http://www.netlib.org/$(PKG)/$($(PKG)_FILE)
1735
0066ab1bad44 improved download URLs of packages: blas cblas gcc-mpc lapack
Volker Grabsch <vog@notjusthosting.com>
parents: 1390
diff changeset
10 $(PKG)_URL_2 := ftp://ftp.eq.uc.pt/pub/software/math/netlib/$(PKG)/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3021
diff changeset
11 $(PKG)_DEPS :=
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
12
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
13 ifeq ($(ENABLE_64),yes)
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
14 $(PKG)_DEFAULT_INTEGER_8_FLAG := -fdefault-integer-8
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
15 endif
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
16
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
17 define $(PKG)_UPDATE
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1374
diff changeset
18 echo 1
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
19 endef
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
20
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
21 define $(PKG)_BUILD
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
22 $(SED) -i 's,$$(FORTRAN),$(MXE_F77) $(MXE_F77_PICFLAG) $($(PKG)_DEFAULT_INTEGER_8_FLAG),g' '$(1)/Makefile'
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1374
diff changeset
23 $(MAKE) -C '$(1)' -j '$(JOBS)'
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2876
diff changeset
24 cd '$(1)' && $(MXE_AR) cr libblas.a *.o
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
25
2860
c2976176699e Generate shared libraries for blas.
John W. Eaton <jwe@octave.org>
parents: 2365
diff changeset
26 if [ $(BUILD_SHARED) = yes ]; then \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
27 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libblas.a' --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)'; \
2860
c2976176699e Generate shared libraries for blas.
John W. Eaton <jwe@octave.org>
parents: 2365
diff changeset
28 fi
3021
6ea3d6ad4f44 Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents: 3015
diff changeset
29
6ea3d6ad4f44 Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents: 3015
diff changeset
30 if [ $(BUILD_STATIC) = yes ]; then \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
31 $(INSTALL) -d '$(3)$(HOST_LIBDIR)'; \
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
32 $(INSTALL) '$(1)/libblas.a' '$(3)$(HOST_LIBDIR)/'; \
3021
6ea3d6ad4f44 Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents: 3015
diff changeset
33 fi
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
34 endef