diff --git a/pkgs/scorec.yaml b/pkgs/scorec.yaml new file mode 100644 index 000000000..ab97db06c --- /dev/null +++ b/pkgs/scorec.yaml @@ -0,0 +1,34 @@ +extends: [cmake_package] +dependencies: + build: [mpi, parmetis, zoltan] + +sources: +- key: git:1d2f5438d3dff3f1120649577bb2a05f9ac8c556 + url: https://github.com/SCOREC/core.git + +defaults: + relocatable: false + +build_stages: + +- name: setup_builddir + after: prologue + handler: bash + bash: | + mkdir -p _build + cd _build + +- name: configure + extra: [ + '-DCMAKE_C_COMPILER=${MPICC}', + '-DCMAKE_CXX_COMPILER=${MPICXX}', + '-DENABLE_ZOLTAN=ON', + '-DMETIS_LIBRARY=${PARMETIS_DIR}/lib/libmetis.so', + '-DPARMETIS_LIBRARY=${PARMETIS_DIR}/lib/libparmetis.so', + '-DPARMETIS_INCLUDE_DIR=${PARMETIS_DIR}/include', + '-DZOLTAN_LIBRARY=${ZOLTAN_DIR}/lib/libzoltan.a', + '-DZOLTAN_INCLUDE_DIR=${ZOLTAN_DIR}/include', + '-DBUILD_SHARED_LIBS=True', + '-DSIM_MPI=mpich2', + ] + diff --git a/pkgs/zoltan.yaml b/pkgs/zoltan.yaml new file mode 100644 index 000000000..da583de12 --- /dev/null +++ b/pkgs/zoltan.yaml @@ -0,0 +1,32 @@ +extends: [autotools_package] +dependencies: + build: [mpi, {{build_with}}] + +sources: +- key: tar.gz:lpoumvepxhdtwis3xtz5ebwfldbrrszj + url: http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.8.tar.gz + +defaults: + #include/Makefile.export.zoltan.macros + relocatable: false + +build_stages: + + - name: setup_builddir + after: prologue + handler: bash + bash: | + mkdir -p _build + cd _build + + - name: setEnv + after: setup_builddir + handler: bash + bash: | + export MPI_DIR=$(dirname $(dirname $MPICC) ) + export LD_LIBRARY_PATH=${MPI_DIR}/lib + + - name: configure + after: setEnv + configure_path: ".." + extra: ['--with-cflags=-fPIC', '--with-cxxflags=-fPIC']