Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=multilib.git;a=commitdiff;h=126dbe91b85dc59ffd5c205230554a55aea10168

commit 126dbe91b85dc59ffd5c205230554a55aea10168
Author: crazy <cr...@frugalware.org>
Date:   Fri Feb 2 15:06:38 2018 +0100

libraw-0.18.7-2-x86_64

* rebuild with tc / libjpeg-turbo
* added gcc7 patch to fix compile errors

diff --git a/source/lib/libraw/FrugalBuild b/source/lib/libraw/FrugalBuild
index 7e10ef5..bd4c658 100644
--- a/source/lib/libraw/FrugalBuild
+++ b/source/lib/libraw/FrugalBuild
@@ -3,18 +3,20 @@

pkgname=libraw
pkgver=0.18.7
-pkgrel=1
+pkgrel=2
pkgdesc="A library for reading RAW files obtained from digital photo cameras."
url="http://www.libraw.org/";
-depends=('lcms2>=2.8-2' 'libjpeg>=9a-2')
+depends=('lcms2>=2.8-2' 'libjpeg-turbo')
groups=('lib')
archs=("x86_64")
_F_archive_name="LibRaw"
_F_archive_grepv="Beta"
up2date="Flasttar $url/download"
-source=(http://www.libraw.org/data/$_F_archive_name-${pkgver}.tar.gz 
LibRaw-0.17.1-CVE-2015-8366-8367.patch)
+source=(http://www.libraw.org/data/$_F_archive_name-${pkgver}.tar.gz \
+       LibRaw-0.17.1-CVE-2015-8366-8367.patch gcc7.patch)
sha1sums=('d8fdfc34739346714c6181e74bd3010783518a5c' \
-          '0502cef69ba89d4ecbd712ba1446fd1b12d8f5dc')
+          '0502cef69ba89d4ecbd712ba1446fd1b12d8f5dc' \
+          '53c15e650ef74b2886c0fbb860cfd581e650c6c0')
unset MAKEFLAGS
options+=('force')
_F_cd_path="$_F_archive_name-${pkgver}"
diff --git a/source/lib/libraw/gcc7.patch b/source/lib/libraw/gcc7.patch
new file mode 100644
index 0000000..4827294
--- /dev/null
+++ b/source/lib/libraw/gcc7.patch
@@ -0,0 +1,11 @@
+--- internal/dcraw_common.cpp~ 2018-01-18 23:57:03.000000000 -0600
++++ internal/dcraw_common.cpp  2018-01-19 11:50:19.746347270 -0600
+@@ -6827,7 +6827,7 @@
+               if (table_buf[iLensData+9] &&
+                       (fabs(imgdata.lens.makernotes.CurFocal) < 0.1f))
+                 imgdata.lens.makernotes.CurFocal =
+-                      10*(table_buf[iLensData+9]>>2) * powf64(4, 
(table_buf[iLensData+9] & 0x03)-2);
++                      10*(table_buf[iLensData+9]>>2) * powf64((float)4, 
(table_buf[iLensData+9] & 0x03)-2);
+               if (table_buf[iLensData+10] & 0xf0)
+                 imgdata.lens.makernotes.MaxAp4CurFocal =
+                       powf64(2.0f, (float)((table_buf[iLensData+10] & 0xf0) 
>>4)/4.0f);
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to