Skip to content

Commit

Permalink
Merge pull request #1427 from basnijholt/master
Browse files Browse the repository at this point in the history
Added recipe for scotch
  • Loading branch information
jakirkham authored Oct 16, 2016
2 parents a30469f + 763fcbd commit 6867020
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 0 deletions.
21 changes: 21 additions & 0 deletions recipes/scotch/Makefile.inc.i686_mac_darwin10
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
EXE =
LIB = .a
OBJ = .o

MAKE = make
AR = ar
ARFLAGS = -ruv
CAT = cat
CCS = clang
CCP = mpicc
CCD = clang
CFLAGS = -I${PREFIX}/include -O3 -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_PTHREAD_BARRIER -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_PTHREAD -DSCOTCH_RENAME
CLIBFLAGS =
LDFLAGS = -L${PREFIX}/lib -lz -lm -lpthread
CP = cp
LEX = flex -Pscotchyy -olex.yy.c
LN = ln
MKDIR = mkdir
MV = mv
RANLIB = ranlib
YACC = bison -pscotchyy -y -b y
21 changes: 21 additions & 0 deletions recipes/scotch/Makefile.inc.x86-64_pc_linux2
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
EXE =
LIB = .a
OBJ = .o

MAKE = make
AR = ar
ARFLAGS = -ruv
CAT = cat
CCS = gcc
CCP = mpicc
CCD = gcc
CFLAGS = -I${PREFIX}/include -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -Drestrict=__restrict -DIDXSIZE64
CLIBFLAGS = -fPIC
LDFLAGS = -L${PREFIX}/lib -lz -lm -lrt -pthread
CP = cp
LEX = flex -Pscotchyy -olex.yy.c
LN = ln
MKDIR = mkdir
MV = mv
RANLIB = ranlib
YACC = bison -pscotchyy -y -b y
22 changes: 22 additions & 0 deletions recipes/scotch/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

cd src/

if [ `uname` == "Darwin" ]; then
cp $RECIPE_DIR/Makefile.inc.i686_mac_darwin10 Makefile.inc
else
cp $RECIPE_DIR/Makefile.inc.x86-64_pc_linux2 Makefile.inc
sed -i 's#-l$(SCOTCHLIB)errexit#-l$(SCOTCHLIB)errexit -lm#g' esmumps/Makefile
fi

make esmumps | tee make.log 2>&1
make check
cd ..

# install.
mkdir -p $PREFIX/lib/
cp lib/* $PREFIX/lib/
mkdir -p $PREFIX/bin/
cp bin/* $PREFIX/bin/
mkdir -p $PREFIX/include/
cp include/* $PREFIX/include/
58 changes: 58 additions & 0 deletions recipes/scotch/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{% set name = "scotch" %}
{% set version = "6.0.4" %}
{% set md5 = "d58b825eb95e1db77efe8c6ff42d329f" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
fn: {{ name }}-{{ version }}.tar.gz
md5: {{ md5 }}
url: https://gforge.inria.fr/frs/download.php/latestfile/298/{{ name }}_{{ version }}.tar.gz

build:
skip: true # [win]
number: 0

requirements:
build:
- toolchain
- zlib 1.2.*
- bison
- flex
run:
- zlib 1.2.*

test:
commands:
- test -f "${PREFIX}/lib/libscotch.a"
- test -f "${PREFIX}/lib/libscotcherr.a"
- test -f "${PREFIX}/lib/libscotcherrexit.a"
- test -f "${PREFIX}/lib/libscotchmetis.a"
- test -f "${PREFIX}/lib/libesmumps.a"
- test -f "${PREFIX}/include/esmumps.h"
- test -f "${PREFIX}/include/metis.h"
- test -f "${PREFIX}/include/scotch.h"
- test -f "${PREFIX}/include/scotchf.h"
- mord -V
- gotst -V
- gord -V
- gpart -V
- gmap -V

about:
home: https://www.labri.fr/perso/pelegrin/scotch/
license: CeCILL-C
license_file: LICENSE_en.txt
summary: 'SCOTCH: Static Mapping, Graph, Mesh and Hypergraph Partitioning, and Parallel and Sequential Sparse Matrix Ordering Package'
description: |
Software package and libraries for sequential and parallel
graph partitioning, static mapping and clustering, sequential
mesh and hypergraph partitioning, and sequential and parallel
sparse matrix block ordering.
doc_url: http://gforge.inria.fr/docman/?group_id=248

extra:
recipe-maintainers:
- basnijholt

0 comments on commit 6867020

Please sign in to comment.