blob: 828885f8091b1ae442c98d5d612cdea4a657cf9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jasper
pkgver=2.0.12
pkgrel=0
pkgdesc="A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard"
url="http://www.ece.uvic.ca/~mdadams/jasper/"
arch="all"
license="custom:JasPer2.0"
depends= #"libjpeg>=8 freeglut libxi libxmu mesa"
makedepends="libjpeg-turbo-dev cmake"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://www.ece.uvic.ca/~frodo/jasper/software/jasper-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build () {
mkdir "$builddir"/obj
cd "$builddir"/obj
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib
make
}
package() {
cd "$builddir"/obj
make DESTDIR="$pkgdir" install
}
libs() {
pkgdesc="JPEG-2000 library"
install -d "$subpkgdir"/usr/
mv "$pkgdir"/usr/lib "$subpkgdir"/usr
}
sha512sums="3b0f5a5640838b328d989a80461a23ca8ac98af054a7f15c13a543e769c98bb632b74114923c02c3b2de76747187747aec6e18a2cf14035a8d79eb3482fd553b jasper-2.0.12.tar.gz"
|