diff --git a/recipes/scotch/Makefile.inc.i686_mac_darwin10 b/recipes/scotch/Makefile.inc.i686_mac_darwin10 new file mode 100644 index 0000000000000..0ee2e8694940a --- /dev/null +++ b/recipes/scotch/Makefile.inc.i686_mac_darwin10 @@ -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 diff --git a/recipes/scotch/Makefile.inc.x86-64_pc_linux2 b/recipes/scotch/Makefile.inc.x86-64_pc_linux2 new file mode 100644 index 0000000000000..b52ab6d1338cb --- /dev/null +++ b/recipes/scotch/Makefile.inc.x86-64_pc_linux2 @@ -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 diff --git a/recipes/scotch/build.sh b/recipes/scotch/build.sh new file mode 100755 index 0000000000000..79d2c496d0653 --- /dev/null +++ b/recipes/scotch/build.sh @@ -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/ diff --git a/recipes/scotch/meta.yaml b/recipes/scotch/meta.yaml new file mode 100755 index 0000000000000..f8547756953c2 --- /dev/null +++ b/recipes/scotch/meta.yaml @@ -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