metis: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 11:59:59 +00:00
parent cdc276fd31
commit 6e0f8d2866
2 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF39Woq7SxDsYYyqJUbIb9yQ5pWFPmv0NwXYM/b3jsWfQF3Oni1Qf5xYGOH/uNp74PcX41FUcOXGcl4dhcUpqLdAc=
SHA256 (Pkgfile) = f08b4bddeaefdd98b3ce7df8ce1410c4d5fc1fcf36ae5eac6198c84c61b00baa
RWSagIOpLGJF31fsMPkQbS5dql4LoPiNS91WitIx7zD9hEtRpPWd/+Kvslqk5LEd9VrMYNsbhqVEqwkTPv+kYwfJKxRyJFt8qw8=
SHA256 (Pkgfile) = 81186eafa86eb4b4bb45909f49337f7aa18122969fa0116ec4adab7a48911277
SHA256 (.footprint) = 3d34f65fbf731ab9f4581d194fe4015af60b645c43ce3f8f31e5b67b29cec71c
SHA256 (v5.1.0-p10.tar.bz2) = ddcb99746a8795ebb9d9c020acc31b85fe696eb2992c9ee5ac7588074a503a4b

View File

@ -9,9 +9,14 @@ release=1
source=(https://bitbucket.org/petsc/pkg-metis/get/v$version.tar.bz2)
build() {
mv petsc-pkg-metis-* $name-$version
cd $name-$version
make config shared=1 prefix=/usr
make
make install DESTDIR=$PKG
[[ -e /usr/bin/ninja ]] && PKGMK_METIS+=' -G Ninja'
cmake -S petsc-pkg-metis-c8d2dc1e751e -B build $PKGMK_METIS \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-D SHARED=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}