aboutsummaryrefslogblamecommitdiffstats
path: root/main/openjpeg/APKBUILD
blob: a7dd0f3fdab484bd2d7cf8bb60739309e9e4d7cd (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                          
                
            
        
                                                            
                               
          

                                  
                                                         
                                         
                                                                                              
                            
                                                                                                                         
         

         


                                                   
                                              
            

 
           

                      

                      



                      


                      


                     

                     


                      


                      

                      





                      

                      



                     
           
                                      

 





                                              
                                                                                                                                                                   

                                                                                                                                                       
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openjpeg
pkgver=2.4.0
pkgrel=1
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
	CVE-2021-29338.patch::https://github.com/uclouvain/openjpeg/commit/b4700bc09d55ac17ff6bef9b0a867f6de527be17.patch
	"

build() {
	cmake . \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DOPENJPEG_INSTALL_LIB_DIR=lib
	make
}

# secfixes:
#   2.4.0-r1:
#     - CVE-2021-29338
#   2.4.0-r0:
#     - CVE-2020-27844
#   2.3.1-r5:
#     - CVE-2020-27814
#     - CVE-2020-27823
#     - CVE-2020-27824
#   2.3.1-r4:
#     - CVE-2019-12973
#     - CVE-2020-15389
#   2.3.1-r3:
#     - CVE-2020-6851
#     - CVE-2020-8112
#   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() {
	make DESTDIR="$pkgdir" install
}

tools() {
	pkgdesc="$pkgdesc - tools"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="55daab47d33823af94e32e5d345b52c251a5410f0c8e0a13b693f17899eedc8b2bb107489ddcba9ab78ef17dfd7cd80d3c5ec80c1e429189cb041124b67e07a8  openjpeg-2.4.0.tar.gz
b50cd382d08647db18f202769aae7df87613a18143a30e360e8f00aba1ec1b7fd0a153685dbea3950bc5623b06c314326777c4fb7aff56adfc6b17bc74c933e5  fix-cmakelists.patch
94ca747f6655a9b927d50cceb82529c36e0d4ef3f883b76b7f1aacc0784dce5df3cc7ba21ff888077873e0c3029f0ac505f0c741cbe225edb3880790527f5d81  CVE-2021-29338.patch"