summaryrefslogtreecommitdiff
path: root/user/openjpeg
diff options
context:
space:
mode:
Diffstat (limited to 'user/openjpeg')
-rw-r--r--user/openjpeg/APKBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/user/openjpeg/APKBUILD b/user/openjpeg/APKBUILD
index e454afa61..680e1c8c2 100644
--- a/user/openjpeg/APKBUILD
+++ b/user/openjpeg/APKBUILD
@@ -8,21 +8,13 @@ url="http://www.openjpeg.org/"
arch="all"
options="!check" # No test suite.
license="BSD-2-Clause-NetBSD"
+depends=""
depends_dev="$pkgname-tools"
makedepends="libpng-dev tiff-dev lcms2-dev doxygen cmake"
subpackages="$pkgname-dev $pkgname-tools"
source="$pkgname-$pkgver.tar.gz::https://github.com/uclouvain/openjpeg/archive/v$pkgver.tar.gz
CVE-2019-12973.patch"
-build() {
- cmake . \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
- -DOPENJPEG_INSTALL_LIB_DIR=lib \
- -DOPENJPEG_INSTALL_PACKAGE_DIR=lib/cmake/$pkgname-${pkgver%.*}
- make
-}
-
# secfixes:
# 2.3.1-r2:
# - CVE-2019-12973
@@ -40,6 +32,15 @@ build() {
# - CVE-2016-9580
# - CVE-2016-9581
+build() {
+ cmake . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DOPENJPEG_INSTALL_LIB_DIR=lib \
+ -DOPENJPEG_INSTALL_PACKAGE_DIR=lib/cmake/$pkgname-${pkgver%.*}
+ make
+}
+
package() {
make DESTDIR="$pkgdir" install
}