]> git.pld-linux.org Git - packages/CHOLMOD.git/blob - CHOLMOD-ufconfig.patch
e68f4bd7a40654ad9290cc6424321aafcec91d96
[packages/CHOLMOD.git] / CHOLMOD-ufconfig.patch
1 diff -ur CHOLMOD/Demo/Makefile CHOLMOD-uf/Demo/Makefile
2 --- CHOLMOD/Demo/Makefile       2007-05-05 16:37:46.000000000 +0200
3 +++ CHOLMOD-uf/Demo/Makefile    2007-12-02 17:10:39.000000000 +0100
4 @@ -7,7 +7,7 @@
5  
6  default: all
7  
8 -include ../../SuiteSparse_config/SuiteSparse_config.mk
9 +include /usr/share/misc/SuiteSparse_config.mk
10  
11  #-------------------------------------------------------------------------------
12  # With METIS, CCOLAMD, CAMD, and the Partition Module:
13 @@ -64,7 +64,7 @@
14  #      ( cd ../../COLAMD ; $(MAKE) )
15  #-------------------------------------------------------------------------------
16  
17 -I = -I../Include -I../../SuiteSparse_config
18 +I = -I../Include
19  
20  cholmod_demo: library cholmod_demo.c cholmod_demo.h
21         $(C) -o cholmod_demo $(I) cholmod_demo.c $(LIB2)
22 diff -ur CHOLMOD/Doc/Makefile CHOLMOD-uf/Doc/Makefile
23 --- CHOLMOD/Doc/Makefile        2007-05-03 23:32:54.000000000 +0200
24 +++ CHOLMOD-uf/Doc/Makefile     2007-12-02 17:10:52.000000000 +0100
25 @@ -1,6 +1,6 @@
26  default: all
27  
28 -include ../../SuiteSparse_config/SuiteSparse_config.mk
29 +include /usr/share/misc/SuiteSparse_config.mk
30  
31  all: UserGuide.pdf
32  
33 --- CHOLMOD/Include/cholmod.h.orig      2012-05-29 18:45:58.000000000 +0200
34 +++ CHOLMOD/Include/cholmod.h   2012-06-27 18:02:23.815293493 +0200
35 @@ -83,7 +83,7 @@
36  /* assume large file support.  If problems occur, compile with -DNLARGEFILE */
37  #include "cholmod_io64.h"
38  
39 -#include "SuiteSparse_config.h"
40 +#include <SuiteSparse_config.h>
41  
42  #include "cholmod_config.h"
43  
44 diff -ur CHOLMOD/Include/cholmod_internal.h CHOLMOD-uf/Include/cholmod_internal.h
45 --- CHOLMOD/Include/cholmod_internal.h  2007-09-28 20:31:04.000000000 +0200
46 +++ CHOLMOD-uf/Include/cholmod_internal.h       2007-12-02 17:13:05.000000000 +0100
47 @@ -201,7 +201,7 @@
48   * It can also be redefined for other platforms, by modifying SuiteSparse_config.h.
49   */
50  
51 -#include "SuiteSparse_config.h"
52 +#include <SuiteSparse_config.h>
53  
54  /* -------------------------------------------------------------------------- */
55  /* Size_max: the largest value of size_t */
56 --- CHOLMOD/Lib/Makefile.orig   2012-06-21 07:35:19.000000000 +0200
57 +++ CHOLMOD/Lib/Makefile        2012-08-28 19:15:04.193753493 +0200
58 @@ -6,7 +6,7 @@
59  
60  ccode: all
61  
62 -include ../../SuiteSparse_config/SuiteSparse_config.mk
63 +include /usr/share/misc/SuiteSparse_config.mk
64  
65  #-------------------------------------------------------------------------------
66  # the optional Partition module requires METIS, CAMD, and CCOLAMD
67 @@ -15,24 +15,19 @@
68  CONFIG = -DNPARTITION
69  # check if METIS is requested and available
70  ifeq (,$(findstring -DNPARTITION, $(CHOLMOD_CONFIG)))
71 -    # METIS is requested.  See if it is available
72 -    ifeq ($(METIS_PATH), $(wildcard $(METIS_PATH)))
73 -        ifeq (../../CAMD, $(wildcard ../../CAMD))
74 -            ifeq (../../CCOLAMD, $(wildcard ../../CCOLAMD))
75 +    # METIS is requested.
76 +    ifeq ($(WITH_METIS), 1)
77                  # METIS, CAMD, and CCOLAMD are available
78 -                LIB_WITH_PARTITION = $(METIS) ../../CCOLAMD/Lib/libccolamd.a \
79 -                    ../../CAMD/Lib/libcamd.a
80 -                I_WITH_PARTITION = -I$(METIS_PATH)/Lib \
81 -                    -I../../CCOLAMD/Include -I../../CAMD/Include
82 +                LIB_WITH_PARTITION = -lmetis -lccolamd -lcamd
83 +                I_WITH_PARTITION = -I/usr/include/metis \
84 +                    -I/usr/include/ccolamd -I/usr/include/camd
85                  CONFIG =
86 -            endif
87 -        endif
88      endif
89  endif
90  #-------------------------------------------------------------------------------
91  
92 -I = -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include \
93 -       $(I_WITH_PARTITION) -I../Include -I../../SuiteSparse_config
94 +I = -I/usr/include/amd -I/usr/include/colamd \
95 +       $(I_WITH_PARTITION) -I../Include
96  
97  #-------------------------------------------------------------------------------
98  
99 diff -ur CHOLMOD/Makefile CHOLMOD-uf/Makefile
100 --- CHOLMOD/Makefile    2006-11-30 17:40:08.000000000 +0100
101 +++ CHOLMOD-uf/Makefile 2007-12-02 17:12:17.000000000 +0100
102 @@ -7,7 +7,7 @@
103  
104  default: all
105  
106 -include ../SuiteSparse_config/SuiteSparse_config.mk
107 +include /usr/share/misc/SuiteSparse_config.mk
108  
109  # Compile the C-callable libraries and the Demo programs.
110  all:
111 diff -ur CHOLMOD/MATLAB/cholmod_matlab.h CHOLMOD-uf/MATLAB/cholmod_matlab.h
112 --- CHOLMOD/MATLAB/cholmod_matlab.h     2007-06-14 19:52:47.000000000 +0200
113 +++ CHOLMOD-uf/MATLAB/cholmod_matlab.h  2007-12-02 17:13:28.000000000 +0100
114 @@ -4,7 +4,7 @@
115  
116  /* Shared prototypes and definitions for CHOLMOD mexFunctions */
117  
118 -#include "SuiteSparse_config.h"
119 +#include <SuiteSparse_config.h>
120  #ifndef DLONG
121  #define DLONG
122  #endif
123 diff -ur CHOLMOD/Tcov/Makefile CHOLMOD-uf/Tcov/Makefile
124 --- CHOLMOD/Tcov/Makefile       2007-05-05 19:12:46.000000000 +0200
125 +++ CHOLMOD-uf/Tcov/Makefile    2007-12-02 17:11:45.000000000 +0100
126 @@ -5,7 +5,7 @@
127  # If you compile CHOLMOD with -DNPARTITION, then you do not need METIS,
128  # CCOLAMD, or the Partition module.
129  
130 -include ../../SuiteSparse_config/SuiteSparse_config.mk
131 +include /usr/share/misc/SuiteSparse_config.mk
132  include Make.inc
133  
134  # Tcov requires gcc
135 @@ -31,7 +31,7 @@
136  
137  I = -I../../AMD/Include -I../../COLAMD/Include \
138         -I$(METIS_PATH)/Lib -I../../CCOLAMD/Include -I../../CAMD/Include \
139 -       -I../Include -I../../SuiteSparse_config
140 +       -I../Include
141  
142  default: cm cl z_demo l_demo cmread clread
143  
This page took 0.118883 seconds and 2 git commands to generate.