Verified Commit 09427d6f authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

user/jasper: modernise

parent 45e49e95
......@@ -5,8 +5,8 @@ pkgrel=0
pkgdesc="Library implementing JPEG-2000"
url="http://www.ece.uvic.ca/~mdadams/jasper/"
arch="all"
license="custom:JasPer2.0"
depends= #"libjpeg>=8 freeglut libxi libxmu mesa"
license="JasPer-2.0"
depends=""
makedepends="libjpeg-turbo-dev cmake"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/mdadams/jasper/archive/version-$pkgver.tar.gz"
......@@ -17,26 +17,22 @@ builddir="$srcdir/$pkgname-version-$pkgver"
# - CVE-2017-1000050
build() {
mkdir "$builddir"/obj
cd "$builddir"/obj
# default of 16 causes stack overflow
export CFLAGS="${CFLAGS} -DJPC_QMFB_COLGRPSIZE=6"
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib
make
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-Bbuild
make -C build
}
check() {
cd "$builddir"/obj
make test
make -C build test
}
package() {
cd "$builddir"/obj
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" -C build install
}
libs() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment