← Back to team overview

dorsal team mailing list archive

Files regarding Question 136305

 

Hi,

I changed some files, such that dorsal will install several packages properly instead of linking to the src directory.

"ln -s" is also found in this packages: petsscore.package, scotch.package, suitesparsewithmetis.package. I didn't fix them, because these were not in my configuration.

There is one issue left: share/dolfin/cmake/dolfin-config.cmake contains several paths to the source directory, but this seems dolfin related and I don't know how to fix this.

Regards
Gerd Wachsmuth
NAME=mtl4-beta-1-r6916
SOURCE=http://osl.iu.edu/download/research/mtl/
PACKING=.tar.gz
BUILDCHAIN=custom
EXTRACTSTO=mtl4

package_specific_build () {
    cp boost ${INSTALL_PATH}/include -r
}

package_specific_register () {
    export MTL4_DIR=${INSTALL_PATH}/include
}
NAME=ParMetis-3.1.1
SOURCE=http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/
PACKING=.tar.gz
BUILDCHAIN=custom

package_specific_setup () {
    perl -pi -e 's/\/lib/\/lib64/g' Makefile.in
    perl -pi -e 's/^OPTFLAGS =/OPTFLAGS = -fPIC/g' Makefile.in

    # This is needed for MacOS (malloc.h is in /usr/include/sys).
    # And it should only be used for ParMETIS, not METIS...
    perl -pi -e 's/-I./-I. -I\/usr\/include\/sys/g' ParMETISLib/Makefile
}

package_specific_build() {
    cd METISLib; make -j ${PROCS}
    cd ..
    cd ParMETISLib; make -j ${PROCS}
    cd ..
}

package_specific_install () {
    cp ${PWD}/*.a ${INSTALL_PATH}/lib/
    cp ${PWD}/*.h ${INSTALL_PATH}/include/
}

package_specific_register () {
    export PARMETIS_DIR=${INSTALL_PATH}
}
NAME=petsc-3.1-p4
SOURCE=http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
PACKING=.tar.gz
BUILDCHAIN=autotools

package_specific_setup () {
    export PETSC_DIR=${PWD}
    ./config/configure.py \
        COPTFLAGS=-O2 \
        --with-debugging=0 --with-shared=1 --with-clanguage=cxx \
        --with-parmetis=1 --with-parmetis-dir=${PARMETIS_DIR} \
        --download-umfpack=1 \
        --download-hypre=1 --download-mumps=1 --download-scalapack=1 --download-blacs=1 \
        --prefix=${INSTALL_PATH}
}

package_specific_register () {
#    export PETSC_DIR=${INSTALL_PATH}/lib/petsc
    export PETSC_DIR=${INSTALL_PATH}
    unset PETSC_ARCH
}
NAME=slepc-3.1-p1
PACKING=.tgz
BUILDCHAIN=autotools

# SLEPc web archive not very reliable so download from mirror
#SOURCE=http://www.grycap.upv.es/slepc/download/distrib/
SOURCE=http://www.fenicsproject.org/pub/software/contrib/

package_specific_setup () {
    export SLEPC_DIR=${PWD}
    ./config/configure.py --prefix=${INSTALL_PATH}
}

package_specific_register () {
#    export SLEPC_DIR=${INSTALL_PATH}/lib/slepc
    export SLEPC_DIR=${INSTALL_PATH}
}

Follow ups