summaryrefslogtreecommitdiff
path: root/graphics/pfstmo
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-04-04 12:18:22 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-04-04 12:18:22 +0000
commitb356cf090c2f5710879d753ea4e195f79594b235 (patch)
tree59f95d6724b6fc11e1763cf7782aaaa6b8b6e4b5 /graphics/pfstmo
parent- Update to 5.1 (diff)
- Update to 1.2
PR: ports/121858 Submitted by: Iouri V. Ivliev <ii at any.com.ru> (maintainer)
Notes
Notes: svn path=/head/; revision=210487
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);