aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pfstmo
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-04-04 20:18:22 +0800
committerrafan <rafan@FreeBSD.org>2008-04-04 20:18:22 +0800
commit6e298bd025d13c6a729cc064ea3da51268c0076c (patch)
tree004b57b147590aa8393343bc4ceee2f4d447e7c7 /graphics/pfstmo
parentd0419874ff6d89212ca82094321bb77a1db20720 (diff)
downloadfreebsd-ports-gnome-6e298bd025d13c6a729cc064ea3da51268c0076c.tar.gz
freebsd-ports-gnome-6e298bd025d13c6a729cc064ea3da51268c0076c.tar.zst
freebsd-ports-gnome-6e298bd025d13c6a729cc064ea3da51268c0076c.zip
- Update to 1.2
PR: ports/121858 Submitted by: Iouri V. Ivliev <ii at any.com.ru> (maintainer)
Diffstat (limited to 'graphics/pfstmo')
-rw-r--r--graphics/pfstmo/Makefile2
-rw-r--r--graphics/pfstmo/distinfo6
-rw-r--r--graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp16
3 files changed, 20 insertions, 4 deletions
diff --git a/graphics/pfstmo/Makefile b/graphics/pfstmo/Makefile
index e84bf06d623e..c4adb2e363e5 100644
--- a/graphics/pfstmo/Makefile
+++ b/graphics/pfstmo/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= pfstmo
-PORTVERSION= 1.1
+PORTVERSION= 1.2
CATEGORIES= graphics
MASTER_SITES= SF
MASTER_SITE_SUBDIR= pfstools
diff --git a/graphics/pfstmo/distinfo b/graphics/pfstmo/distinfo
index cb4b1c0c690c..79cd4686fa06 100644
--- a/graphics/pfstmo/distinfo
+++ b/graphics/pfstmo/distinfo
@@ -1,3 +1,3 @@
-MD5 (pfstmo-1.1.tar.gz) = 0b15be34f61a492062685f574af83bca
-SHA256 (pfstmo-1.1.tar.gz) = 68c50a67cdd9e526249742ce6c330d6cadd8290b67c33a0942f4e9f5aa6918b7
-SIZE (pfstmo-1.1.tar.gz) = 367563
+MD5 (pfstmo-1.2.tar.gz) = 50eda7f8ab22ba42580494811dba31dc
+SHA256 (pfstmo-1.2.tar.gz) = 796555f3c60fc8f2cb56e4288dc035aa3f0a6b8812a7388ce3c002103c2e5aa1
+SIZE (pfstmo-1.2.tar.gz) = 384037
diff --git a/graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp b/graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp
new file mode 100644
index 000000000000..72a69932b74c
--- /dev/null
+++ b/graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp
@@ -0,0 +1,16 @@
+--- src/mantiuk06/contrast_domain.cpp.orig 2008-03-12 09:20:28.000000000 +0000
++++ src/mantiuk06/contrast_domain.cpp 2008-03-12 09:27:16.000000000 +0000
+@@ -58,6 +58,13 @@
+ #define LOOKUP_W_TO_R 107
+
+
++#if defined(__FreeBSD__)
++static inline float exp10f(float x) {
++ return powf(10.,x);
++}
++#endif
++
++
+ static void contrast_equalization( pyramid_t *pp, const float contrastFactor );
+
+ static void transform_to_luminance(pyramid_t* pyramid, float* const x, progress_callback progress_cb, const bool bcg);