pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/qimageblitz qimageblitz: SunOS/clang fixes.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff1f3aa180e4
branches:  trunk
changeset: 374807:ff1f3aa180e4
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Jan 29 17:35:30 2018 +0000

description:
qimageblitz: SunOS/clang fixes.

diffstat:

 graphics/qimageblitz/distinfo                           |   4 ++-
 graphics/qimageblitz/patches/patch-blitz_CMakeLists.txt |  18 +++++++++++++++++
 graphics/qimageblitz/patches/patch-blitz_convolve.cpp   |  15 ++++++++++++++
 3 files changed, 36 insertions(+), 1 deletions(-)

diffs (54 lines):

diff -r 93506aced409 -r ff1f3aa180e4 graphics/qimageblitz/distinfo
--- a/graphics/qimageblitz/distinfo     Mon Jan 29 16:54:38 2018 +0000
+++ b/graphics/qimageblitz/distinfo     Mon Jan 29 17:35:30 2018 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 21:34:18 agc Exp $
+$NetBSD: distinfo,v 1.4 2018/01/29 17:35:30 jperkin Exp $
 
 SHA1 (qimageblitz-0.0.6.tar.bz2) = 32bcda9adb262ef49c62e3a7adbfcdeec98f72e4
 RMD160 (qimageblitz-0.0.6.tar.bz2) = 5720d4e18dd7fdcd532e6dc9a2d2fe06116e7fef
 SHA512 (qimageblitz-0.0.6.tar.bz2) = dbd506c01622824efdec69640eb95e737d7848fa15d33351084a6499ca2321d7bc08e080d1e443f8ab9015cd2967c10d9b5aa2f3c6eaa7558153821c46133af9
 Size (qimageblitz-0.0.6.tar.bz2) = 57617 bytes
+SHA1 (patch-blitz_CMakeLists.txt) = 031a5a4cb70fd8a5d600444ce95ebc653a66d050
+SHA1 (patch-blitz_convolve.cpp) = 300f7da93b1704a6bc7f481161c59ba110a2ebf5
diff -r 93506aced409 -r ff1f3aa180e4 graphics/qimageblitz/patches/patch-blitz_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qimageblitz/patches/patch-blitz_CMakeLists.txt   Mon Jan 29 17:35:30 2018 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-blitz_CMakeLists.txt,v 1.1 2018/01/29 17:35:31 jperkin Exp $
+
+Fix SunPro detection.
+
+--- blitz/CMakeLists.txt.orig  2010-07-28 18:06:14.000000000 +0000
++++ blitz/CMakeLists.txt
+@@ -49,9 +49,9 @@ endif(COMMAND cmake_policy)
+ add_library(qimageblitz SHARED ${blitz_LIB_SRCS} ${blitz_LIB_EXTRA_SRCS})
+ 
+ target_link_libraries(qimageblitz ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
+-if (NOT CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME MATCHES SunOS)
++if (CMAKE_COMPILER_IS_SUNPRO AND CMAKE_SYSTEM_NAME MATCHES SunOS)
+     target_link_libraries(qimageblitz -lm -lsunmath)
+-endif (NOT CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME MATCHES SunOS)
++endif (CMAKE_COMPILER_IS_SUNPRO AND CMAKE_SYSTEM_NAME MATCHES SunOS)
+ 
+ set_target_properties(qimageblitz PROPERTIES
+                             VERSION ${BLITZ_LIB_MAJOR_VERSION}.${BLITZ_LIB_MINOR_VERSION}.${BLITZ_LIB_PATCH_VERSION}
diff -r 93506aced409 -r ff1f3aa180e4 graphics/qimageblitz/patches/patch-blitz_convolve.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qimageblitz/patches/patch-blitz_convolve.cpp     Mon Jan 29 17:35:30 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-blitz_convolve.cpp,v 1.1 2018/01/29 17:35:31 jperkin Exp $
+
+Fix float* return type.
+
+--- blitz/convolve.cpp.orig    2010-07-28 18:06:14.000000000 +0000
++++ blitz/convolve.cpp
+@@ -940,7 +940,7 @@ float* BlitzPrivate::getBlurKernel(int &
+     long i;
+ 
+     if(sigma == 0.0)
+-        return(false);
++        return(NULL);
+     if(kernel_width == 0)
+         kernel_width = 3;
+ 



Home | Main Index | Thread Index | Old Index