summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-26 22:15:15 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-26 22:15:15 -0600
commit09427d6fc6905f67965861a01ed0e20f456aebc5 (patch)
treeab3f45b098829407c2f77aae4f191c3e6cf64ad6 /user
parent45e49e9546a55e6e2b7574429413b8a81de962ed (diff)
downloadpackages-09427d6fc6905f67965861a01ed0e20f456aebc5.tar.gz
packages-09427d6fc6905f67965861a01ed0e20f456aebc5.tar.bz2
packages-09427d6fc6905f67965861a01ed0e20f456aebc5.tar.xz
packages-09427d6fc6905f67965861a01ed0e20f456aebc5.zip
user/jasper: modernise
Diffstat (limited to 'user')
-rw-r--r--user/jasper/APKBUILD22
1 files changed, 9 insertions, 13 deletions
diff --git a/user/jasper/APKBUILD b/user/jasper/APKBUILD
index 321969aa3..006a2f7eb 100644
--- a/user/jasper/APKBUILD
+++ b/user/jasper/APKBUILD
@@ -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() {