# Contributor: # Maintainer: Francesco Colista pkgname=openjpeg pkgver=2.3.1 pkgrel=2 pkgdesc="Open-source implementation of JPEG2000 image codec" url="https://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 fix-cmakelists.patch" builddir="${srcdir}/$pkgname-$pkgver" build() { cd "$builddir" cmake . \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DOPENJPEG_INSTALL_LIB_DIR=lib make } # secfixes: # 2.3.0-r3: # - CVE-2018-5785 # 2.3.0-r2: # - CVE-2018-14423 # - CVE-2018-6616 # 2.3.0-r1: # - CVE-2017-17480 # - CVE-2018-18088 # 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="339fbc899bddf2393d214df71ed5d6070a3a76b933b1e75576c8a0ae9dfcc4adec40bdc544f599e4b8d0bc173e4e9e7352408497b5b3c9356985605830c26c03 openjpeg-2.3.1.tar.gz b50cd382d08647db18f202769aae7df87613a18143a30e360e8f00aba1ec1b7fd0a153685dbea3950bc5623b06c314326777c4fb7aff56adfc6b17bc74c933e5 fix-cmakelists.patch"