diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-06 02:53:45 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-06 02:53:45 -0500 |
commit | 1ec7238973fd468715d553ade7319d9d0cc60ad7 (patch) | |
tree | c946bbc7464478a21fd68cf8dcc508c53f5012ea /user/openjpeg | |
parent | 46f08c04b5c3477f3e82782fc6a1b224d67f293c (diff) | |
download | packages-1ec7238973fd468715d553ade7319d9d0cc60ad7.tar.gz packages-1ec7238973fd468715d553ade7319d9d0cc60ad7.tar.bz2 packages-1ec7238973fd468715d553ade7319d9d0cc60ad7.tar.xz packages-1ec7238973fd468715d553ade7319d9d0cc60ad7.zip |
user/openjpeg: pull in, fix
Diffstat (limited to 'user/openjpeg')
-rw-r--r-- | user/openjpeg/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/user/openjpeg/APKBUILD b/user/openjpeg/APKBUILD new file mode 100644 index 000000000..e73ac3911 --- /dev/null +++ b/user/openjpeg/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=openjpeg +pkgver=2.3.0 +pkgrel=0 +pkgdesc="Open-source implementation of JPEG 2000 image codec" +url="http://www.openjpeg.org/" +arch="all" +options="!check" # No test suite. +license="BSD-2-Clause-NetBSD" +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" + +build() { + cd "$builddir" + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DOPENJPEG_INSTALL_LIB_DIR=lib \ + -DOPENJPEG_INSTALL_PACKAGE_DIR=/usr/lib/cmake/$pkgname-${pkgver%.*} + make +} + +# secfixes: +# 2.3.0-r0: +# - CVE-2017-14039 +# 2.2.0-r2: +# - CVE-2017-14040 +# - CVE-2017-14041 +# - CVE-2017-14151 +# - CVE-2017-14152 +# - CVE-2017-14164 +# 2.2.0-r1: +# - CVE-2017-12982 +# 2.1.2-r1: +# - CVE-2016-9580 +# - CVE-2016-9581 + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +tools() { + pkgdesc="$pkgdesc (tools)" + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +sha512sums="0a9d427be4a820b1d759fca4b50e293721b45fe4885aa61ca1ae09e099f75ed93520448090c780d62f51076d575cc03618cd6d5181bdb6b34e4fc07b4cfdd568 openjpeg-2.3.0.tar.gz" |