aboutsummaryrefslogtreecommitdiffstats
path: root/main/libraw/APKBUILD
blob: 561275f72c10e1cd47495c492aacf6dee65f2b90 (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
39
40
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libraw
pkgver=0.17.2
pkgrel=0
pkgdesc="Library for reading RAW files obtained from digital photo cameras"
url="http://www.libraw.org/"
arch="all"
license="CDDL LGPL custom"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.libraw.org/data/LibRaw-$pkgver.tar.gz
	dcraw_narrowing-gcc6.patch"

builddir="$srcdir"/LibRaw-$pkgver

build() {
	cd "$builddir"
	#export CXXFLAGS="$CXXFLAGS -std=gnu++98"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	#make lib/libraw.a lib/libraw_r.a
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1

}

md5sums="456626300777209def1ea784910f326a  LibRaw-0.17.2.tar.gz
91f27dcb79b66d8d70f89ee684cb2f3d  dcraw_narrowing-gcc6.patch"
sha256sums="92b0c42c7666eca9307e5e1f97d6fefc196cf0b7ee089e22880259a76fafd15c  LibRaw-0.17.2.tar.gz
486be38dc5115d885edbd6f61c81a78e9b30e2eb754b16d8066a09aaf3537795  dcraw_narrowing-gcc6.patch"
sha512sums="e27227850b09e291802c089c826778579420a4af3f4b94dddf488bfc7eb84335d7a944445287d5993c5a574c192df5117c022d1b3d0372b3539a4553612988f4  LibRaw-0.17.2.tar.gz
e6a61ee1ac8bfbc2aa87064a621ea549c61896f4095c5a2987317ceaa4231773baccc13429d603d1a891d941e9956beaa8bb115e166cd73aa3cdb486caaa6b01  dcraw_narrowing-gcc6.patch"