summaryrefslogtreecommitdiff
path: root/openjpeg2
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-11-07 16:54:22 +0000
committerTim Biermann <tbier@posteo.de>2020-11-07 16:54:22 +0000
commit4171997627dfa02d0e6b59e3c750af0e0c713a7a (patch)
treeb5007b52b40f15b13be896aa9d3130a06459ba67 /openjpeg2
parent3ac76afdf09fd4ffb922b6720d7f71f4b353de50 (diff)
downloadcontrib-4171997627dfa02d0e6b59e3c750af0e0c713a7a.tar.gz
contrib-4171997627dfa02d0e6b59e3c750af0e0c713a7a.tar.xz
openjpeg2: updated cmake syntax
Diffstat (limited to 'openjpeg2')
-rw-r--r--openjpeg2/.signature4
-rw-r--r--openjpeg2/Pkgfile18
2 files changed, 11 insertions, 11 deletions
diff --git a/openjpeg2/.signature b/openjpeg2/.signature
index da8d0bd79..ff4b50f38 100644
--- a/openjpeg2/.signature
+++ b/openjpeg2/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3zn2Au+HNiV6xN+RrIQFxhhdhgaOJCcuVStJCqscFctaXCA50H+/m3bJe5sLGLCfo40uP/lhRv6t+tCo7LLWXQA=
-SHA256 (Pkgfile) = 4362276cdc9c32f7b76307e2c332f39260e6a972794621e6ff8172e8cf4b4173
+RWSagIOpLGJF3wKMJJtkkPh1fLwse0RseTtF9aMsRn4brRUlNVLOrDKBLAS95gc8FHCQtErIW8Kr6BIuKtIjHTF/TduqGRuSRwI=
+SHA256 (Pkgfile) = 35348315a831afcd8c9b4e7b78a0ce366fb11ef95e5bfc0a86ba5367fea93835
SHA256 (.footprint) = 765d8e0bf55e17997af756206951427620277fd1f6bb5ea17f5a0b1b18a3f8b5
SHA256 (openjpeg-2.3.1.tar.gz) = 63f5a4713ecafc86de51bfad89cc07bb788e9bba24ebbf0c4ca637621aadb6a9
diff --git a/openjpeg2/Pkgfile b/openjpeg2/Pkgfile
index 7571a574f..b2c87d4e2 100644
--- a/openjpeg2/Pkgfile
+++ b/openjpeg2/Pkgfile
@@ -9,15 +9,15 @@ release=1
source=(https://github.com/uclouvain/openjpeg/archive/v$version/openjpeg-$version.tar.gz)
build() {
- cd openjpeg-$version
-
- mkdir build
- cd build
-
- cmake .. \
+ [[ -e /usr/bin/ninja ]] && PKGMK_OJPG2_OPTIONS=' -GNinja'
+ cmake -Sopenjpeg-$version -Bbuild $PKGMK_OJPG2_OPTIONS \
+ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
+ -DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
+ -Wno-dev
- make
- make DESTDIR=$PKG install
+ # cmake --build/install fails
+ make -C build
+ make DESTDIR=$PKG -C build install
}

Generated by cgit