diff options
author | Tim Biermann <tbier@posteo.de> | 2020-11-08 11:59:59 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-11-08 13:41:14 +0000 |
commit | 6e0f8d28664033af91ca534ede32742a6fa56654 (patch) | |
tree | 9ab5f79ccd561fd769f7f9763111bdefcf3d7660 /metis | |
parent | cdc276fd3119bd60c4e4597ab9364b96fa801c87 (diff) | |
download | contrib-6e0f8d28664033af91ca534ede32742a6fa56654.tar.gz contrib-6e0f8d28664033af91ca534ede32742a6fa56654.tar.xz |
metis: updated cmake syntax
Diffstat (limited to 'metis')
-rw-r--r-- | metis/.signature | 4 | ||||
-rw-r--r-- | metis/Pkgfile | 15 |
2 files changed, 12 insertions, 7 deletions
diff --git a/metis/.signature b/metis/.signature index 2b5ea074c..175aa7764 100644 --- a/metis/.signature +++ b/metis/.signature @@ -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 diff --git a/metis/Pkgfile b/metis/Pkgfile index d192f875f..0541f8b8f 100644 --- a/metis/Pkgfile +++ b/metis/Pkgfile @@ -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 } |