Mercurial > mxe-octave
annotate src/suitesparse.mk @ 4618:de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
* Makefile.in: add handling for packages with no update rule
* src/gtk2.mk, src/gtk3.mk, src/libvpx.mk, src/taglib.mk,
src/hunspell.mk, src/vala.mk : use github tags for version info
* src/llvm.mk: add '?' to update url
* src/openscenegraph.mk: update SED rule for version extraction
* src/pthread-stubs.mk, src/qt5.mk, src/renderproto.mk,
src/sm.mk, src/s2tc.mk, src/util-macros.mk: added dummy PKG_UPDATE rule
* src/qscintilla.mk: change search name for version extraction
* src/qtbase.mk: use short pkg version in update path
* src/suitesparse.mk: update change in main url/version url
* src/tre.mk: update download page link
* src/vmime.mk: update download and update url
* src/wget.mk, src/xapian-core.mk: update url, sed rule
* src/wt.mk: update to use github download/update
* src/src-msys-libcrypt.mk: update sed rule
author | John Donoghue |
---|---|
date | Fri, 09 Mar 2018 11:46:42 -0500 |
parents | 0db33a326eec |
children | af2966900462 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2240
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. |
1371
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
3 |
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
4 PKG := suitesparse |
3553
c27b154dab6c
suitesparse: fix typo, update to 4.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
3551
diff
changeset
|
5 $(PKG)_VERSION := 4.2.1 |
3551
1f81856eba40
suitesparse: update to 4.1.2
John Donoghue <john.donoghue@ieee.org>
parents:
3545
diff
changeset
|
6 $(PKG)_CHECKSUM := 2fec3bf93314bd14cbb7470c0a2c294988096ed6 |
1371
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := SuiteSparse |
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_FILE := SuiteSparse-$($(PKG)_VERSION).tar.gz |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4304
diff
changeset
|
9 $(PKG)_URL := http://faculty.cse.tamu.edu/davis/SuiteSparse/$($(PKG)_FILE) |
2738
3b14416f4c51
package suitesparse: add secondary url
Tony Theodore <tonyt@logyst.com>
parents:
2726
diff
changeset
|
10 $(PKG)_URL_2 := https://distfiles.macports.org/SuiteSparse/$($(PKG)_FILE) |
3545
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3480
diff
changeset
|
11 $(PKG)_DEPS := blas lapack |
3069
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
12 |
3671 | 13 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
14 $(PKG)_DESTDIR := | |
15 else | |
16 $(PKG)_DESTDIR := $(3) | |
17 endif | |
1372
4c3f4e0e3194
improvements for packages: metis suitesparse
Tony Theodore <tonyt@logyst.com>
parents:
1371
diff
changeset
|
18 |
1371
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
19 define $(PKG)_UPDATE |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
4304
diff
changeset
|
20 $(WGET) -q -O- 'http://faculty.cse.tamu.edu/davis/suitesparse.html' | \ |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1377
diff
changeset
|
21 $(SED) -n 's,.*SuiteSparse-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
1371
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
22 head -1 |
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
23 endef |
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
24 |
2887 | 25 $(PKG)_STATICLIBS_1 := \ |
26 SuiteSparse_config/libsuitesparseconfig.a \ | |
27 SuiteSparse_config/xerbla/libcerbla.a \ | |
28 AMD/Lib/libamd.a \ | |
29 CAMD/Lib/libcamd.a \ | |
30 COLAMD/Lib/libcolamd.a \ | |
31 CCOLAMD/Lib/libccolamd.a \ | |
32 CSparse/Lib/libcsparse.a \ | |
33 CXSparse/Lib/libcxsparse.a \ | |
3114
fcf98b1d15f1
[MSVC] enable SuiteSparse compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3078
diff
changeset
|
34 CHOLMOD/Lib/libcholmod.a \ |
2887 | 35 SPQR/Lib/libspqr.a \ |
36 BTF/Lib/libbtf.a \ | |
37 LDL/Lib/libldl.a \ | |
38 KLU/Lib/libklu.a \ | |
39 RBio/Lib/librbio.a \ | |
40 UMFPACK/Lib/libumfpack.a | |
41 | |
3477
6a36441bfafd
suitesparse.mk: Add -DLONGBLAS to CPPFLAGS for --enable-64 Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3469
diff
changeset
|
42 $(PKG)_CPPFLAGS := -DNTIMER |
6a36441bfafd
suitesparse.mk: Add -DLONGBLAS to CPPFLAGS for --enable-64 Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3469
diff
changeset
|
43 |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
3691
diff
changeset
|
44 ifeq ($(ENABLE_FORTRAN_INT64),yes) |
3691
c734f4d39243
suitesparse: set LONGBLAS for --enable-64 on non windows systems
John W. Eaton <jwe@octave.org>
parents:
3671
diff
changeset
|
45 ifeq ($(MXE_WINDOWS_BUILD),yes) |
3477
6a36441bfafd
suitesparse.mk: Add -DLONGBLAS to CPPFLAGS for --enable-64 Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3469
diff
changeset
|
46 $(PKG)_CPPFLAGS += -DLONGBLAS='long long' |
3691
c734f4d39243
suitesparse: set LONGBLAS for --enable-64 on non windows systems
John W. Eaton <jwe@octave.org>
parents:
3671
diff
changeset
|
47 else |
c734f4d39243
suitesparse: set LONGBLAS for --enable-64 on non windows systems
John W. Eaton <jwe@octave.org>
parents:
3671
diff
changeset
|
48 $(PKG)_CPPFLAGS += -DLONGBLAS='long' |
3477
6a36441bfafd
suitesparse.mk: Add -DLONGBLAS to CPPFLAGS for --enable-64 Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3469
diff
changeset
|
49 endif |
6a36441bfafd
suitesparse.mk: Add -DLONGBLAS to CPPFLAGS for --enable-64 Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3469
diff
changeset
|
50 endif |
6a36441bfafd
suitesparse.mk: Add -DLONGBLAS to CPPFLAGS for --enable-64 Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3469
diff
changeset
|
51 |
1371
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
52 define $(PKG)_BUILD |
1386
0f61e783e13a
fix build issues of packages: lapack suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1385
diff
changeset
|
53 # exclude demos |
0f61e783e13a
fix build issues of packages: lapack suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1385
diff
changeset
|
54 find '$(1)' -name 'Makefile' \ |
0f61e783e13a
fix build issues of packages: lapack suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1385
diff
changeset
|
55 -exec $(SED) -i 's,( cd Demo,#( cd Demo,' {} \; |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1377
diff
changeset
|
56 |
3114
fcf98b1d15f1
[MSVC] enable SuiteSparse compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3078
diff
changeset
|
57 if test $(MXE_SYSTEM) = msvc; then \ |
fcf98b1d15f1
[MSVC] enable SuiteSparse compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3078
diff
changeset
|
58 (cd '$(1)'; \ |
fcf98b1d15f1
[MSVC] enable SuiteSparse compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3078
diff
changeset
|
59 (cd CXSparse_newfiles && tar cfz ../CXSparse_newfiles.tar.gz .); \ |
fcf98b1d15f1
[MSVC] enable SuiteSparse compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3078
diff
changeset
|
60 ./CSparse_to_CXSparse CSparse CXSparse CXSparse_newfiles.tar.gz) \ |
fcf98b1d15f1
[MSVC] enable SuiteSparse compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3078
diff
changeset
|
61 fi |
fcf98b1d15f1
[MSVC] enable SuiteSparse compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3078
diff
changeset
|
62 |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1377
diff
changeset
|
63 # build all |
1439
b505b699c280
cleanup package: suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1390
diff
changeset
|
64 $(MAKE) -C '$(1)' -j '$(JOBS)' \ |
3477
6a36441bfafd
suitesparse.mk: Add -DLONGBLAS to CPPFLAGS for --enable-64 Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3469
diff
changeset
|
65 CPPFLAGS="$($(PKG)_CPPFLAGS)" \ |
2997 | 66 CC='$(MXE_CC)' \ |
67 CXX='$(MXE_CXX)' \ | |
68 CPLUSPLUS='$(MXE_CXX)' \ | |
69 F77='$(MXE_F77)' \ | |
70 FFLAGS='$(MXE_FFLAGS)' \ | |
71 CFLAGS='$(MXE_CFLAGS)' \ | |
72 CXXFLAGS='$(MXE_CXXFLAGS)' \ | |
73 AR='$(MXE_AR)' \ | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
74 RANLIB='$(MXE_RANLIB)' \ |
3671 | 75 BLAS='-lblas -lgfortran -lgfortranbegin' \ |
1440
30fed101654f
remove package metis because it is not (yet) Free Software
Volker Grabsch <vog@notjusthosting.com>
parents:
1439
diff
changeset
|
76 CHOLMOD_CONFIG='-DNPARTITION' |
1372
4c3f4e0e3194
improvements for packages: metis suitesparse
Tony Theodore <tonyt@logyst.com>
parents:
1371
diff
changeset
|
77 |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1377
diff
changeset
|
78 # install library files |
3671 | 79 $(INSTALL) -d '$($(PKG)_DESTDIR)$(HOST_LIBDIR)' |
2887 | 80 |
81 for f in $(addprefix $(1)/, $($(PKG)_STATICLIBS_1)); do \ | |
2868
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
82 if [ $(BUILD_SHARED) = yes ]; then \ |
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
83 lib=`basename $$f .a`; \ |
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
84 dir=`dirname $$f`; \ |
2887 | 85 echo "building and installing shared libraries for $$lib"; \ |
86 deplibs=""; \ | |
2868
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
87 case $$lib in \ |
2887 | 88 libcholmod) \ |
3671 | 89 deplibs="-lamd -lcamd -lcolamd -lccolamd -lsuitesparseconfig -llapack -lblas"; \ |
2887 | 90 ;; \ |
91 libklu) \ | |
92 deplibs="-lbtf -lamd -lcolamd -lsuitesparseconfig"; \ | |
93 ;; \ | |
2868
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
94 librbio) \ |
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
95 deplibs="-lsuitesparseconfig"; \ |
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
96 ;; \ |
2887 | 97 libspqr) \ |
3671 | 98 deplibs="-lcholmod -lsuitesparseconfig -llapack -lblas"; \ |
2887 | 99 ;; \ |
2868
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
100 libumfpack) \ |
3671 | 101 deplibs="-lcholmod -lamd -lsuitesparseconfig -lblas"; \ |
2868
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
102 ;; \ |
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
103 esac; \ |
2887 | 104 if [ -n "$deplibs" ]; then \ |
105 echo " deplibs = $$deplibs"; \ | |
106 fi; \ | |
3671 | 107 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CXX)' $$f --install '$(INSTALL)' --libdir '$($(PKG)_DESTDIR)$(HOST_LIBDIR)' --bindir '$($(PKG)_DESTDIR)$(HOST_BINDIR)' $$deplibs; \ |
2868
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
108 fi; \ |
1c18d3bb1829
Include suitesparse as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2738
diff
changeset
|
109 done |
1376
896bc60de2a9
improvements for packages: cblas lapack suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
1375
diff
changeset
|
110 |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1377
diff
changeset
|
111 # install include files |
3671 | 112 $(INSTALL) -d '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' |
113 $(INSTALL) -m644 '$(1)/SuiteSparse_config/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
114 $(INSTALL) -m644 '$(1)/AMD/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
115 $(INSTALL) -m644 '$(1)/BTF/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
116 $(INSTALL) -m644 '$(1)/CAMD/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
117 $(INSTALL) -m644 '$(1)/CCOLAMD/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
118 $(INSTALL) -m644 '$(1)/CHOLMOD/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
119 $(INSTALL) -m644 '$(1)/COLAMD/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
120 $(INSTALL) -m644 '$(1)/CSparse/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
121 $(INSTALL) -m644 '$(1)/CXSparse/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
122 $(INSTALL) -m644 '$(1)/KLU/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
123 $(INSTALL) -m644 '$(1)/LDL/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
124 $(INSTALL) -m644 '$(1)/SPQR/Include/'* '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
125 $(INSTALL) -m644 '$(1)/UMFPACK/Include/'*.h '$($(PKG)_DESTDIR)$(HOST_INCDIR)/suitesparse/' | |
1371
c9905856c931
new packages: metis suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
126 endef |