From b356cf090c2f5710879d753ea4e195f79594b235 Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Fri, 4 Apr 2008 12:18:22 +0000 Subject: - Update to 1.2 PR: ports/121858 Submitted by: Iouri V. Ivliev (maintainer) --- graphics/pfstmo/Makefile | 2 +- graphics/pfstmo/distinfo | 6 +++--- .../pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp (limited to 'graphics/pfstmo') 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); -- cgit v1.2.3