pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/glitz Added a patch that prevents glitz from ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c58b70d49ed9
branches:  trunk
changeset: 502163:c58b70d49ed9
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 03 01:47:08 2005 +0000

description:
Added a patch that prevents glitz from using -lsunmath on Solaris, as
this library is not provided by the Solaris base system. Thanks to
<grant> for finding the relevant part to patch. Bumped PKGREVISION.

diffstat:

 graphics/glitz/Makefile         |   3 ++-
 graphics/glitz/distinfo         |   3 ++-
 graphics/glitz/patches/patch-ab |  17 +++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r ead04b226aa2 -r c58b70d49ed9 graphics/glitz/Makefile
--- a/graphics/glitz/Makefile   Thu Nov 03 00:47:11 2005 +0000
+++ b/graphics/glitz/Makefile   Thu Nov 03 01:47:08 2005 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2005/08/11 15:24:54 adam Exp $
+# $NetBSD: Makefile,v 1.12 2005/11/03 01:47:08 rillig Exp $
 
 DISTNAME=      glitz-0.4.4
+PKGREVISION=   1
 CATEGORIES=    graphics
 MASTER_SITES=  http://cairographics.org/snapshots/
 
diff -r ead04b226aa2 -r c58b70d49ed9 graphics/glitz/distinfo
--- a/graphics/glitz/distinfo   Thu Nov 03 00:47:11 2005 +0000
+++ b/graphics/glitz/distinfo   Thu Nov 03 01:47:08 2005 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.9 2005/10/03 19:46:56 joerg Exp $
+$NetBSD: distinfo,v 1.10 2005/11/03 01:47:08 rillig Exp $
 
 SHA1 (glitz-0.4.4.tar.gz) = 53d5df02aaf7c156ad62787a1ad9b3072f8dbd25
 RMD160 (glitz-0.4.4.tar.gz) = ffbdc0467c8ac727747eb430bcdde226f8fcce42
 Size (glitz-0.4.4.tar.gz) = 425742 bytes
 SHA1 (patch-aa) = d725f03f96082b6d9b31c608a0e4c1beb71e87f1
+SHA1 (patch-ab) = 6394ccfb9b0096ce33111cb7ca6b7afff1075be0
diff -r ead04b226aa2 -r c58b70d49ed9 graphics/glitz/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/glitz/patches/patch-ab   Thu Nov 03 01:47:08 2005 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2005/11/03 01:47:08 rillig Exp $
+
+Don't use the *f() math functions on Solaris. The Solaris preprocessor
+does not define the symbol "__sun__", so we have to check for "__sun",
+too. The latter is mentioned in the cpp(1) man page.
+
+--- src/glitzint.h.orig        2005-07-04 12:33:01.000000000 +0200
++++ src/glitzint.h     2005-11-03 02:12:47.808896500 +0100
+@@ -33,7 +33,7 @@
+ 
+ #include "glitz.h"
+ 
+-#if defined(__APPLE__) || defined(__sun__)
++#if defined(__APPLE__) || defined(__sun__) || defined(__sun)
+ # define floorf(a)    floor (a)
+ # define ceilf(a)     ceil (a)
+ # define sinf(a)      sin (a)



Home | Main Index | Thread Index | Old Index