summaryrefslogtreecommitdiffstats
path: root/graphics/ufraw/ufraw.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ufraw/ufraw.SlackBuild')
-rw-r--r--graphics/ufraw/ufraw.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/graphics/ufraw/ufraw.SlackBuild b/graphics/ufraw/ufraw.SlackBuild
index 6a77d6f771..35408d8af8 100644
--- a/graphics/ufraw/ufraw.SlackBuild
+++ b/graphics/ufraw/ufraw.SlackBuild
@@ -27,12 +27,12 @@
PRGNAM="ufraw"
VERSION=${VERSION:-0.22}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -49,8 +49,8 @@ else
gtk_option="--without-gtk"
fi
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -77,6 +77,13 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# patched from: https://sourceforge.net/p/ufraw/bugs/417/
+patch -p1 < $CWD/patches/05_fix_build_due_to_unsigned_char.patch
+# Patches below courtesy of Arch Linux
+patch -p1 < $CWD/patches/gcc7.patch
+patch -p1 < $CWD/patches/CVE-2015-8366.patch
+patch -p1 < $CWD/patches/no-gimp-remote.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \