X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by lists.alpinelinux.org (Postfix) with ESMTP id 5BDC75C4DF8 for ; Tue, 21 Nov 2017 06:16:17 +0000 (GMT) Received: by mail-wm0-f50.google.com with SMTP id y80so870714wmd.0 for ; Mon, 20 Nov 2017 22:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=YxAeeMFMQHxTez9hzghmbGe7PIp1kykaezakrAv07Wk=; b=t6ICfIyggCcZovy/zrjToIE9V+QyY+3n2/B8PZhyZexx/RnODzPXkxAZdtdWkm9f+f 8/PXI7ubtsSMnWnRGCKmHYFhwT8S3oRzeRhgyT+2BJmWwWhBErtOeUqmixyGMufXrNR8 T3kOluuIA6EmEh7K/WDgXt2az4zvDM83pUDGFmTw8w8Suy42aR9txF0Nv3qoz0N76BdR CzP4sp04DQ7iUjH4QBg8jc62maNdENJkEwqx4AyKpAEshDcd12jliImpK0P40gzhe09/ 54oGKEg3Bq3EqS7FYV77prLVKt8Fkqt6rd+eSyKN0Npgkuu0VOMrpfiqKdJhxk/OglzC juyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YxAeeMFMQHxTez9hzghmbGe7PIp1kykaezakrAv07Wk=; b=hHa0yL/GI29UDrnXCehXSzyOEt4NdlVtyaA7Mj8HPKt+DzryqnpRIfSTueGOZY6exi 3MREUGLz9B5xSseADmCvWxviq2GEoPl9rgpp2LBkUxQJ7AqBRfwm5O2KEi871ba2fW28 5GVweDN+FdHYXZIuWCQD4KW0xhgHXdt0HofR0FqInfOAw4TyKn96X6zu2SdF0xBvh/Jg y1oaZLGAaj+qug2vJc/mi1s50/co7mWmpUpocYF598hQ6SQVw2P8W1JVMQSjIVn3a1f2 Riteh+EbxVzs3rASnWCG2IvqCFG4bsCaM0jcIQQQASIkl8jBUiPjpXpTBQbcaaK6Cmyf Eevg== X-Gm-Message-State: AJaThX4RkDQeGn9qY+mLSqzJ36v41QT7rElOaOMADxUJsfWqCl3qfUIm gMaas1p5byQlMpGCGnKekQaxdg== X-Google-Smtp-Source: AGs4zManK2fg3oCJzqzNzSoR0ZBCN7bvE8pOjR3An3SfIZtYkB4Ld8VgLLp3GeN+tqNNHkgUfcmmTg== X-Received: by 10.28.66.215 with SMTP id k84mr312504wmi.143.1511244976034; Mon, 20 Nov 2017 22:16:16 -0800 (PST) Received: from localhost.localdomain (static-46-19-231-77.ipcom.comunitel.net. [77.231.19.46]) by smtp.gmail.com with ESMTPSA id d63sm6662415wmh.3.2017.11.20.22.16.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 22:16:15 -0800 (PST) From: Jose Maria Garcia To: alpine-aports@lists.alpinelinux.org Cc: Jose Maria Garcia Subject: [alpine-aports] [PATCH] testing/mumps: new aport Date: Tue, 21 Nov 2017 07:15:54 +0100 Message-Id: <20171121061554.7165-1-josemaria.alkala@gmail.com> X-Mailer: git-send-email 2.15.0 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: http://mumps.enseeiht.fr/index.php?page=home MUMPS: MUltifrontal Massively Parallel sparse direct Solver --- testing/mumps/APKBUILD | 69 ++++++++++++++++++++ testing/mumps/Makefile.inc | 158 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 227 insertions(+) create mode 100644 testing/mumps/APKBUILD create mode 100644 testing/mumps/Makefile.inc diff --git a/testing/mumps/APKBUILD b/testing/mumps/APKBUILD new file mode 100644 index 0000000000..a1ea166c31 --- /dev/null +++ b/testing/mumps/APKBUILD @@ -0,0 +1,69 @@ +# Contributor: Jose Maria Garcia +# Maintainer: Jose Maria Garcia +pkgname=mumps +pkgver=5.1.1 +pkgrel=0 +pkgdesc="MUMPS: MUltifrontal Massively Parallel sparse direct Solver" +url="http://mumps.enseeiht.fr/index.php?page=home" +arch="all" +license="CeCILL-C" +depends="metis lapack scotch scotch lapack" +makedepends="python2 py2-numpy lapack-dev gfortran metis-dev scotch-dev" +install="" +subpackages="$pkgname-dev $pkgname-examples" + +source="http://mumps.enseeiht.fr/MUMPS_${pkgver}.tar.gz" +builddir="$srcdir/MUMPS_${pkgver}" + +build() { + cd "${builddir}" + cp ../../Makefile.inc "${builddir}/Makefile.inc" + #sed s/OPTF = -O/OPTF = -DALLOW_NON_INIT ${CFLAGS} -O -fPIC/g + make clean + make -j1 all FC=gfortran FL=gfortran +} + +package() { + # https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mumps + cd "${builddir}/lib/" + echo "Creating package....$pkgname" + install -m 755 -d "${pkgdir}/usr/lib/" + # Convert static libraries into shareables + for _FILE in `ls *.a | sed "s|\.a||"`; do + echo " $_FILE" + ld -Bshareable -o ${_FILE}.so.${pkgver} -x -soname ${_FILE}.so --whole-archive ${_FILE}.a + install -m 644 -D ${_FILE}.a ${pkgdir}/usr/lib/${_FILE}.a + install -m 755 ${_FILE}.so.${pkgver} ${pkgdir}/usr/lib + ln -sf ${_FILE}.so.${pkgver} ${pkgdir}/usr/lib/${_FILE}.so.${pkgver:0:1} + done + echo "$builddir....... DONE" +} + +dev() { + pkgdesc="$pkgname - Headers" + subpkgdir=${pkgdir}-dev + # Installing headers + echo "Creating package....$pkgname-dev" + cd "${builddir}/include/" + echo "${subpkgdir}" + install -m 755 -d "${subpkgdir}/usr/include" + install -D -m644 *.h "${subpkgdir}/usr/include" + echo "Package......DONE" +} + + +examples() { + pkgdesc="$pkgname - Examples" + subpkgdir=${pkgdir}-examples + echo "Creating package....$pkgname-examples" + install -m 755 -d "${subpkgdir}/usr/share/${pkgname}/examples" + + cd "${builddir}/examples" + # Install examples + install -m 644 * "${subpkgdir}/usr/share/${pkgname}/examples" + for _FILE in ssimpletest dsimpletest csimpletest zsimpletest c_example; do + chmod 0755 "${subpkgdir}/usr/share/${pkgname}/examples/${_FILE}" + done + echo "Package......DONE" +} +sha512sums="145dd61c9164bc50d07c2baf48345a2aca200332c4e359ea8b5b64fbb2027a6556f622a5620585b4852f785ba8e210267585c53634564f712828add2939901a9 MUMPS_5.1.1.tar.gz" diff --git a/testing/mumps/Makefile.inc b/testing/mumps/Makefile.inc new file mode 100644 index 0000000000..4afea6720a --- /dev/null +++ b/testing/mumps/Makefile.inc @@ -0,0 +1,158 @@ +# +# This file is part of MUMPS 5.1.1, released +# on Mon Mar 20 14:34:33 UTC 2017 +# +################################################################################ +# +# Makefile.inc.generic.SEQ +# +# Generic Makefile.inc for sequential (MPI free, Scalapack free) version +# +# +# This defines some parameters dependent on your platform; you should +# look for the approriate file in the directory ./Make.inc/ and copy it +# into a file called Makefile.inc. For example, from the MUMPS root +# directory, use +# "cp Make.inc/Makefile.inc.generic.SEQ ./Makefile.inc" +# (see the main README file for details) +# +# If you do not find any suitable Makefile in Makefile.inc, use this file: +# "cp Make.inc/Makefile.inc.generic ./Makefile.inc" and modify it according +# to the comments given below. If you manage to build MUMPS on a new platform, +# and think that this could be useful to others, you may want to send us +# the corresponding Makefile.inc file. +# +################################################################################ + + +######################################################################## +#Begin orderings +# +# NOTE that PORD is distributed within MUMPS by default. It is recommended to +# install other orderings. For that, you need to obtain the corresponding package +# and modify the variables below accordingly. +# For example, to have Metis available within MUMPS: +# 1/ download Metis and compile it +# 2/ uncomment (suppress # in first column) lines +# starting with LMETISDIR, LMETIS +# 3/ add -Dmetis in line ORDERINGSF +# ORDERINGSF = -Dpord -Dmetis +# 4/ Compile and install MUMPS +# make clean; make (to clean up previous installation) +# +# Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 6.0 and later) orderings are recommended. +# + +#SCOTCHDIR = ${HOME}/scotch_6.0 +#ISCOTCH = -I$(SCOTCHDIR)/include +# +# You have to choose one among the following two lines depending on +# the type of analysis you want to perform. If you want to perform only +# sequential analysis choose the first (remember to add -Dscotch in the ORDERINGSF +# variable below); for both parallel and sequential analysis choose the second +# line (remember to add -Dptscotch in the ORDERINGSF variable below) + +#LSCOTCH = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr +#LSCOTCH = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr + + +LPORDDIR = $(topdir)/PORD/lib/ +IPORD = -I$(topdir)/PORD/include/ +LPORD = -L$(LPORDDIR) -lpord + +#LMETISDIR = /opt/metis-5.1.0/build/Linux-x86_64/libmetis +#IMETIS = /opt/metis-5.1.0/include + +# You have to choose one among the following two lines depending on +# the type of analysis you want to perform. If you want to perform only +# sequential analysis choose the first (remember to add -Dmetis in the ORDERINGSF +# variable below); for both parallel and sequential analysis choose the second +# line (remember to add -Dparmetis in the ORDERINGSF variable below) + +#LMETIS = -L$(LMETISDIR) -lmetis +#LMETIS = -L$(LMETISDIR) -lparmetis -lmetis + +# The following variables will be used in the compilation process. +# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively. +# If you want to use Metis 4.X or an older version, you should use -Dmetis4 instead of -Dmetis +# or in addition with -Dparmetis (if you are using parmetis 3.X or older). +#ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis +ORDERINGSF = -Dpord +ORDERINGSC = $(ORDERINGSF) + +LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH) +IORDERINGSF = $(ISCOTCH) +IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH) + +#End orderings +######################################################################## + +######################################################################## +# DEFINE HERE SOME COMMON COMMANDS, THE COMPILER NAMES, ETC... + +# PLAT : use it to add a default suffix to the generated libraries +PLAT = +# Library extension, + C and Fortran "-o" option +# may be different under Windows +LIBEXT = .a +OUTC = -o +OUTF = -o +# RM : remove files +RM = /bin/rm -f +# CC : C compiler +CC = cc +# FC : Fortran 90 compiler +FC = f90 +# FL : Fortran linker +FL = f90 +# AR : Archive object in a library +# keep a space at the end if options have to be separated from lib name +AR = ar vr +# RANLIB : generate index of an archive file +# (optionnal use "RANLIB = echo" in case of problem) +RANLIB = ranlib +#RANLIB = echo + +# DEFINE HERE YOUR LAPACK LIBRARY + +LAPACK = -llapack +# The next two lines should not be modified. They concern +# the sequential library provided by MUMPS, to use instead +# of ScaLAPACK and MPI. +INCSEQ = -I$(topdir)/libseq +LIBSEQ = $(LAPACK) -L$(topdir)/libseq -lmpiseq + +# DEFINE HERE YOUR BLAS LIBRARY + +LIBBLAS = -lblas + +# DEFINE HERE YOUR PTHREAD LIBRARY +LIBOTHERS = -lpthread + +# FORTRAN/C COMPATIBILITY: +# Use: +# -DAdd_ if your Fortran compiler adds an underscore at the end +# of symbols, +# -DAdd__ if your Fortran compiler adds 2 underscores, +# +# -DUPPER if your Fortran compiler uses uppercase symbols +# +# leave empty if your Fortran compiler does not change the symbols. +# + +CDEFS = -DAdd_ + +#COMPILER OPTIONS +#OPTF = -O +#OPTC = -O -I. +#OPTL = -O +OPTF = -DALLOW_NON_INIT ${CFLAGS} -O -fPIC +OPTL = ${CFLAGS} -fPIC +OPTC = ${CFLAGS} -fPIC + + +#Sequential: + +INCS = $(INCSEQ) +LIBS = $(LIBSEQ) +LIBSEQNEEDED = libseqneeded -- 2.15.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---