aboutsummaryrefslogtreecommitdiff
path: root/extra/openjpeg2/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/openjpeg2/build')
-rwxr-xr-xextra/openjpeg2/build12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/openjpeg2/build b/extra/openjpeg2/build
new file mode 100755
index 00000000..5332ac49
--- /dev/null
+++ b/extra/openjpeg2/build
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DCMAKE_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release
+
+cmake --build build
+cmake --install build