~ubuntu-branches/ubuntu/wily/freefem++/wily

« back to all changes in this revision

Viewing changes to download/metis/Makefile

  • Committer: Package Import Robot
  • Author(s): Dimitrios Eftaxiopoulos, Dimitrios Eftaxiopoulos, Christophe Trophime
  • Date: 2013-09-12 00:02:58 UTC
  • mfrom: (1.2.1) (11.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130912000258-aclq2zfa1svt0p3x
Tags: 3.25-1
[ Dimitrios Eftaxiopoulos ]
* Imported Upstream version 3.25 (Closes: #701161 #706714)
* Change installation directory of header-like *.idp files
  from /usr/lib/freefem++ to /usr/include/freefem++, in order
  to fix a lintian warning
* Update patch to examples++-load/Makefile.am in order to enable
  functioning of load *.so and include *.idp commands in *.edp
  scripts
* Delete patches to src/Graphics/sansgraph.cpp and
  src/Graphics/xglrgraph.cpp because they are not needed any more
* Fix lintian warning about missing LDFLAGS
* Override dh_auto_test in debian/rules, such that in case it is 
  used, it completes executing all *.edp example files, regardless
  of aborting on some of them
* Add libmetis-dev to build-deps in d/control
* Remove libparmetis-dev from build deps
* Add --parallel option to dh $@ in debian/rules
* Add hardening compilation flags to mpic++
* Allow testing of compiling and running the example files after build

[ Christophe Trophime ]
* update C. Trophime email
* add support for nlopt, ipopt - simplify debian/rules
* upload CT changes to 3.20
* add patch for configure
* add patch for examples++-mpi
* fix bamg install
* add corrected scripts to build plugins
* add patch for properly build examples++-load
* add lintian overrides for libfreefem++
* add some missing files
* update patches
* update rules
* reorder BuildDepends - comment out unsupported libs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Downloading and compiling extra libraries
2
 
# -----------------------------------------
3
 
 
4
 
# $Id$
5
 
include Makefile.in
6
 
 
7
 
all-local: metis
8
 
 
9
 
# Downloading and compiling Tetgen
10
 
# ------------------------------
11
 
# http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-4.0.tar.gz
12
 
# Metis information
13
 
DIRPKG=../pkg
14
 
SRCDIR=metis-$(metis_VERSION)
15
 
PACKAGE=$(DIRPKG)/metis-$(metis_VERSION).tar.gz
16
 
SERVER=http://www.netlib.org/linalg/
17
 
#//http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD
18
 
INSTALL=../..
19
 
metis_VERSION=4.0
20
 
 
21
 
metis: FAIRE
22
 
 
23
 
 
24
 
$(SRCDIR)/FAIT:
25
 
        $(MAKE) install
26
 
        touch $(SRCDIR)/FAIT
27
 
 
28
 
install:$(SRCDIR)/tag-compile
29
 
        cd $(SRCDIR)/Programs ;$(MAKE) 
30
 
        -mkdir -p ../include/metis
31
 
        cp $(SRCDIR)/Lib/*.h ../include/metis
32
 
 
33
 
 
34
 
FAIRE: $(SRCDIR)/FAIT 
35
 
        $(MAKE) WHERE
36
 
        touch FAIRE
37
 
 
38
 
Makefile.in: ../../config.status Makefile-metis.in
39
 
        ../../config.status  --file="Makefile.in:Makefile-metis.in"
40
 
 
41
 
$(SRCDIR)/tag-compile: $(SRCDIR)/tags
42
 
        cp Makefile.in $(SRCDIR)
43
 
        cd $(SRCDIR)/Lib;make
44
 
        -cd $(SRCDIR)/Programs;make 
45
 
        touch $(SRCDIR)/tag-compile
46
 
 
47
 
 
48
 
 
49
 
WHERE: 
50
 
        -if [ -f $(SRCDIR)/FAIT ] ; then \
51
 
        echo metis LD -L@DIR@/lib -lmetis  >$(SRCDIR)/$(INSTALL)/lib/WHERE.metis ;\
52
 
        echo metis INCLUDE -I@DIR@/include/metis>> $(SRCDIR)/$(INSTALL)/lib/WHERE.metis ;\
53
 
        fi
54
 
 
55
 
 
56
 
 
57
 
 
58
 
$(SRCDIR)/tags: $(PACKAGE)
59
 
        tar xvzf $(PACKAGE)
60
 
        patch -p0  <patch-metis
61
 
        mv  $(SRCDIR)/Programs/Makefile $(SRCDIR)/Programs/Makefile-orig
62
 
        sed -e 's;BINDIR = ..;BINDIR = ../$(INSTALL)/bin;' \
63
 
            -e 's;../libmetis.a;../$(INSTALL)/lib/libmetis.a;' \
64
 
            -e 's;-L[.][.];-L../$(INSTALL)/lib;' \
65
 
          <$(SRCDIR)/Programs/Makefile-orig \
66
 
          >$(SRCDIR)/Programs/Makefile
67
 
        mv $(SRCDIR)/Lib/Makefile $(SRCDIR)/Lib/Makefile-orig
68
 
        sed   -e 's;../libmetis.a;../$(INSTALL)/lib/libmetis.a;' \
69
 
          <$(SRCDIR)/Lib/Makefile-orig \
70
 
          >$(SRCDIR)/Lib/Makefile
71
 
        touch $(SRCDIR)/tags
72
 
 
73
 
$(PACKAGE):
74
 
        cd $(DIRPKG);$(WGET)   $(SERVER)/`basename $(PACKAGE)`
75
 
 
76
 
 
77
 
 
78
 
clean-local:
79
 
        -cd $(SRCDIR) && $(MAKE) realclean  -C $(SRCDIR)
80
 
        -rm -rf metis*
81
 
clean: clean-local
82
 
        -rm $(SRCDIR)/$(INSTALL)/lib/libmetis.a
83
 
        -rm $(SRCDIR)/$(INSTALL)/include/metis.h
84
 
        -rm -rf $(SRCDIR)
85
 
        -rm FAIRE FAIT 
 
 
b'\\ No newline at end of file'
 
1
# Downloading and compiling extra libraries
 
2
# -----------------------------------------
 
3
 
 
4
# $Id$
 
5
include Makefile.in
 
6
 
 
7
all-local: metis
 
8
 
 
9
# Downloading and compiling Tetgen
 
10
# ------------------------------
 
11
# http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-4.0.tar.gz
 
12
# Metis information
 
13
DIRPKG=../pkg
 
14
SRCDIR=metis-$(metis_VERSION)
 
15
PACKAGE=$(DIRPKG)/metis-$(metis_VERSION).tar.gz
 
16
SERVER=http://www.netlib.org/linalg/
 
17
#//http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD
 
18
INSTALL=../..
 
19
 
 
20
# FFCS - 14/11/11 - version 4.0.3 is not available from netlib anymore
 
21
metis_VERSION=4.0
 
22
 
 
23
metis: FAIRE
 
24
 
 
25
 
 
26
$(SRCDIR)/FAIT:
 
27
        $(MAKE) install
 
28
        touch $(SRCDIR)/FAIT
 
29
 
 
30
install:$(SRCDIR)/tag-compile
 
31
        cd $(SRCDIR)/Programs ;$(MAKE) 
 
32
        -mkdir -p ../include/metis
 
33
        cp $(SRCDIR)/Lib/*.h ../include/metis
 
34
 
 
35
 
 
36
FAIRE: $(SRCDIR)/FAIT 
 
37
        $(MAKE) WHERE
 
38
        touch FAIRE
 
39
 
 
40
Makefile.in: ../../config.status Makefile-metis.in
 
41
        ../../config.status  --file="Makefile.in:Makefile-metis.in"
 
42
 
 
43
$(SRCDIR)/tag-compile: $(SRCDIR)/tags
 
44
        cp Makefile.in $(SRCDIR)
 
45
        -mkdir -p ../lib/metis
 
46
        cd $(SRCDIR)/Lib;make
 
47
        -cd $(SRCDIR)/Programs;make 
 
48
        touch $(SRCDIR)/tag-compile
 
49
 
 
50
 
 
51
 
 
52
WHERE: 
 
53
        -if [ -f $(SRCDIR)/FAIT ] ; then \
 
54
        echo metis LD -L@DIR@/lib/metis -lmetis  >$(SRCDIR)/$(INSTALL)/lib/WHERE.metis ;\
 
55
        echo metis INCLUDE -I@DIR@/include/metis>> $(SRCDIR)/$(INSTALL)/lib/WHERE.metis ;\
 
56
        fi
 
57
 
 
58
 
 
59
 
 
60
 
 
61
# FFCS: patch is necessary for metis 4.0, but not for 4.0.3
 
62
$(SRCDIR)/tags: $(PACKAGE)
 
63
        tar xvzf $(PACKAGE)
 
64
        patch -p0  <patch-metis
 
65
        patch -p0  <metis-4.0_main_return.patch
 
66
        mv  $(SRCDIR)/Programs/Makefile $(SRCDIR)/Programs/Makefile-orig
 
67
        sed -e 's;BINDIR = ..;BINDIR = ../$(INSTALL)/bin;' \
 
68
            -e 's;../libmetis.a;../$(INSTALL)/lib/metis/libmetis.a;' \
 
69
            -e 's;-L[.][.];-L../$(INSTALL)/lib/metis;' \
 
70
          <$(SRCDIR)/Programs/Makefile-orig \
 
71
          >$(SRCDIR)/Programs/Makefile
 
72
        mv $(SRCDIR)/Lib/Makefile $(SRCDIR)/Lib/Makefile-orig
 
73
        sed   -e 's;../libmetis.a;../$(INSTALL)/lib/metis/libmetis.a;' \
 
74
          <$(SRCDIR)/Lib/Makefile-orig \
 
75
          >$(SRCDIR)/Lib/Makefile
 
76
        touch $(SRCDIR)/tags
 
77
 
 
78
$(PACKAGE):
 
79
        cd $(DIRPKG);$(WGET)   $(SERVER)/`basename $(PACKAGE)`
 
80
clean-local:
 
81
        -cd $(SRCDIR) && $(MAKE) realclean  -C $(SRCDIR)
 
82
        -rm -rf metis-4.0 config.log
 
83
        -rm -rf ../lib/metis ../lib/WHERE.metis
 
84
        -rm -rf ../include/metis
 
85
        -rm -rf $(SRCDIR)
 
86
        -rm FAIRE FAIT 
 
87
 
 
88
# FFCS - 23/5/12 - $(SRCDIR)/$(INSTALL) is meaningless if $(SRCDIR) does not exist
 
89
clean: clean-local
 
90
        -rm ../lib/metis/libmetis.a
 
91
        -rm ../lib/include/metis.h
 
92
        -rm -rf $(SRCDIR)
 
93
        -rm FAIRE FAIT