aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-06-14 15:26:05 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-14 15:59:46 +0000
commitd415663a9b033143b6bc3536bac0e31bed632bfb (patch)
treeec9ac976c36e68be34f2bde1419066a1bb0d8d63
parentcc3fbbea67e42151c28849b510bf86100014f04c (diff)
downloadaports-d415663a9b033143b6bc3536bac0e31bed632bfb.tar.bz2
aports-d415663a9b033143b6bc3536bac0e31bed632bfb.tar.xz
main/libraw: upgrade to 0.18.2
-rw-r--r--main/libraw/APKBUILD12
-rw-r--r--main/libraw/dcraw_narrowing-gcc6.patch92
2 files changed, 3 insertions, 101 deletions
diff --git a/main/libraw/APKBUILD b/main/libraw/APKBUILD
index 561275f72c..42f496bf69 100644
--- a/main/libraw/APKBUILD
+++ b/main/libraw/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libraw
-pkgver=0.17.2
+pkgver=0.18.2
pkgrel=0
pkgdesc="Library for reading RAW files obtained from digital photo cameras"
url="http://www.libraw.org/"
@@ -9,8 +9,7 @@ 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"
+source="http://www.libraw.org/data/LibRaw-$pkgver.tar.gz"
builddir="$srcdir"/LibRaw-$pkgver
@@ -32,9 +31,4 @@ package() {
}
-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"
+sha512sums="87d3e5a0ecf7fc7c35a32f3963d108553b2d21a89aa75e4f2d9fab939aa14aa267ccf2a29e75e12d613c39798eb222b55da80371e699e913a58a7ae0fd47a2bc LibRaw-0.18.2.tar.gz"
diff --git a/main/libraw/dcraw_narrowing-gcc6.patch b/main/libraw/dcraw_narrowing-gcc6.patch
deleted file mode 100644
index 9dd439f85e..0000000000
--- a/main/libraw/dcraw_narrowing-gcc6.patch
+++ /dev/null
@@ -1,92 +0,0 @@
---- ./internal/dcraw_common.cpp
-+++ ./internal/dcraw_common.cpp
-@@ -4417,30 +4417,37 @@ void CLASS lin_interpolate()
- */
- void CLASS vng_interpolate()
- {
-- static const signed char *cp, terms[] = {
-- -2,-2,+0,-1,0,0x01, -2,-2,+0,+0,1,0x01, -2,-1,-1,+0,0,0x01,
-- -2,-1,+0,-1,0,0x02, -2,-1,+0,+0,0,0x03, -2,-1,+0,+1,1,0x01,
-- -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
-- -2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
-- -2,+1,+0,+1,0,0x02, -2,+2,+0,+0,1,0x04, -2,+2,+0,+1,0,0x04,
-- -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
-- -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
-- -1,-1,+1,-1,0,0x22, -1,-1,+1,+0,0,0x33, -1,-1,+1,+1,1,0x11,
-- -1,+0,-1,+2,0,0x08, -1,+0,+0,-1,0,0x44, -1,+0,+0,+1,0,0x11,
-- -1,+0,+1,-2,1,0x40, -1,+0,+1,-1,0,0x66, -1,+0,+1,+0,1,0x22,
-- -1,+0,+1,+1,0,0x33, -1,+0,+1,+2,1,0x10, -1,+1,+1,-1,1,0x44,
-- -1,+1,+1,+0,0,0x66, -1,+1,+1,+1,0,0x22, -1,+1,+1,+2,0,0x10,
-- -1,+2,+0,+1,0,0x04, -1,+2,+1,+0,1,0x04, -1,+2,+1,+1,0,0x04,
-- +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
-- +0,-1,+1,+0,0,0x11, +0,-1,+2,-2,0,0x40, +0,-1,+2,-1,0,0x20,
-- +0,-1,+2,+0,0,0x30, +0,-1,+2,+1,1,0x10, +0,+0,+0,+2,1,0x08,
-- +0,+0,+2,-2,1,0x40, +0,+0,+2,-1,0,0x60, +0,+0,+2,+0,1,0x20,
-- +0,+0,+2,+1,0,0x30, +0,+0,+2,+2,1,0x10, +0,+1,+1,+0,0,0x44,
-- +0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60,
-- +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
-- +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
-- +1,+0,+2,+1,0,0x10
-- }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
-+ struct interpolate_terms {
-+ signed char y1, x1, y2, x2, weight;
-+ unsigned char grads;
-+ };
-+ static const interpolate_terms terms[] = {
-+ {-2,-2,+0,-1,0,0x01}, {-2,-2,+0,+0,1,0x01}, {-2,-1,-1,+0,0,0x01},
-+ {-2,-1,+0,-1,0,0x02}, {-2,-1,+0,+0,0,0x03}, {-2,-1,+0,+1,1,0x01},
-+ {-2,+0,+0,-1,0,0x06}, {-2,+0,+0,+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+2,+0,0,0x60},
-+ {+0,+1,+2,+1,0,0x20}, {+0,+1,+2,+2,0,0x10}, {+1,-2,+1,+0,0,0x80},
-+ {+1,-1,+1,+1,0,0x88}, {+1,+0,+1,+2,0,0x08}, {+1,+0,+2,-1,0,0x40},
-+ {+1,+0,+2,+1,0,0x10}
-+ };
-+ const interpolate_terms *cpt;
-+ signed char *cp;
-+ signed char chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
- ushort (*brow[5])[4], *pix;
- int prow=8, pcol=2, *ip, *code[16][16], gval[8], gmin, gmax, sum[4];
- int row, col, x, y, x1, x2, y1, y2, t, weight, grads, color, diag;
-@@ -4456,11 +4463,11 @@ void CLASS vng_interpolate()
- for (row=0; row < prow; row++) /* Precalculate for VNG */
- for (col=0; col < pcol; col++) {
- code[row][col] = ip;
-- for (cp=terms, t=0; t < 64; t++) {
-- y1 = *cp++; x1 = *cp++;
-- y2 = *cp++; x2 = *cp++;
-- weight = *cp++;
-- grads = *cp++;
-+ for (cpt=&terms[0], t=0; t < 64, cpt = &terms[t]; t++) {
-+ y1 = cpt->y1; x1 = cpt->x1;
-+ y2 = cpt->y2; x2 = cpt->x2;
-+ weight = cpt->weight;
-+ grads = cpt->grads;
- color = fcol(row+y1,col+x1);
- if (fcol(row+y2,col+x2) != color) continue;
- diag = (fcol(row,col+1) == color && fcol(row+1,col) == color) ? 2:1;
---- ./internal/dcraw_common.cpp~ 2016-02-24 09:04:39.000000000 -0500
-+++ ./internal/dcraw_common.cpp 2016-02-24 09:06:31.152698597 -0500
-@@ -2469,7 +2469,7 @@
-
- void CLASS kodak_radc_load_raw()
- {
-- static const char src[] = {
-+ static const signed char src[] = {
- 1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8,
- 1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8,
- 2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8,