aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2015-04-18 02:54:02 +0800
committerdumbbell <dumbbell@FreeBSD.org>2015-04-18 02:54:02 +0800
commite3b39f60311d8eebc151f7f8e49002c11d511381 (patch)
treef414ddabe1cca6160d54ec406c81c5b71d3d9a0a
parentdaf6f41b3c4dae9b762f3502cce520ec046bd732 (diff)
downloadfreebsd-ports-gnome-e3b39f60311d8eebc151f7f8e49002c11d511381.tar.gz
freebsd-ports-gnome-e3b39f60311d8eebc151f7f8e49002c11d511381.tar.zst
freebsd-ports-gnome-e3b39f60311d8eebc151f7f8e49002c11d511381.zip
graphics/darktable: Fix bug with preferences when built with Clang 3.6
The patch was committed upstream. The commit message has a detailed explanation: https://github.com/darktable-org/darktable/commit/9d77a28e54f8bc19592a170b1e4b9cf083f7b5a3 Differential Revision: https://reviews.freebsd.org/D2308 Reviewed by: kwm Approved by: kwm
-rw-r--r--graphics/darktable/Makefile1
-rw-r--r--graphics/darktable/files/patch-tools_generate__prefs.xsl13
2 files changed, 14 insertions, 0 deletions
diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile
index 5bddf6dc2f15..c64d82552532 100644
--- a/graphics/darktable/Makefile
+++ b/graphics/darktable/Makefile
@@ -3,6 +3,7 @@
PORTNAME= darktable
PORTVERSION= 1.6.4
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION}/
diff --git a/graphics/darktable/files/patch-tools_generate__prefs.xsl b/graphics/darktable/files/patch-tools_generate__prefs.xsl
new file mode 100644
index 000000000000..5601c3aa35f9
--- /dev/null
+++ b/graphics/darktable/files/patch-tools_generate__prefs.xsl
@@ -0,0 +1,13 @@
+--- tools/generate_prefs.xsl.orig 2015-04-03 13:59:08 UTC
++++ tools/generate_prefs.xsl
+@@ -231,7 +231,9 @@
+ <xsl:text> gint min = 0;&#xA; gint max = G_MAXINT;&#xA;</xsl:text>
+ <xsl:apply-templates select="type" mode="range"/>
+ <xsl:text> </xsl:text><xsl:apply-templates select="type" mode="factor"/>
+- <xsl:text> min *= factor; max *= factor;
++ <xsl:text> double tmp;
++ tmp = min * (double)factor; min = tmp;
++ tmp = max * (double)factor; max = tmp;
+ widget = gtk_spin_button_new_with_range(min, max, 1);
+ gtk_spin_button_set_digits(GTK_SPIN_BUTTON(widget), 0);
+ gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget), dt_conf_get_int("</xsl:text><xsl:value-of select="name"/><xsl:text>") * factor);