diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile
index c64d82552532..7192c8be3733 100644
--- a/graphics/darktable/Makefile
+++ b/graphics/darktable/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= darktable
-PORTVERSION= 1.6.4
-PORTREVISION= 1
+PORTVERSION= 1.6.6
CATEGORIES= graphics
MASTER_SITES= https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION}/
diff --git a/graphics/darktable/distinfo b/graphics/darktable/distinfo
index 30904e33a806..29ad73ef64a3 100644
--- a/graphics/darktable/distinfo
+++ b/graphics/darktable/distinfo
@@ -1,2 +1,2 @@
-SHA256 (darktable-1.6.4.tar.xz) = c5f705e8164c014acf0dac2ffc5b730362068c2864622121ca6fa9f330368d2a
-SIZE (darktable-1.6.4.tar.xz) = 3117168
+SHA256 (darktable-1.6.6.tar.xz) = f85e4b8219677eba34f5a41e1a0784cc6ec06576326a99f04e460a4f41fd21a5
+SIZE (darktable-1.6.6.tar.xz) = 3097760
diff --git a/graphics/darktable/files/patch-tools_generate__prefs.xsl b/graphics/darktable/files/patch-tools_generate__prefs.xsl
deleted file mode 100644
index 5601c3aa35f9..000000000000
--- a/graphics/darktable/files/patch-tools_generate__prefs.xsl
+++ /dev/null
@@ -1,13 +0,0 @@
---- tools/generate_prefs.xsl.orig 2015-04-03 13:59:08 UTC
-+++ tools/generate_prefs.xsl
-@@ -231,7 +231,9 @@
- gint min = 0;
gint max = G_MAXINT;
-
-
-- min *= factor; max *= factor;
-+ 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("") * factor);