summaryrefslogtreecommitdiff
path: root/graphics/glitz
diff options
context:
space:
mode:
authorrillig <rillig>2005-11-03 01:47:08 +0000
committerrillig <rillig>2005-11-03 01:47:08 +0000
commit4b1078934d6bbd26166fba85501eccc424f113f8 (patch)
tree85bb781afc81432da4d54761570a444884a36403 /graphics/glitz
parent5d1f3ddb4ee7fc37a3c560adfec64c9110649501 (diff)
downloadpkgsrc-4b1078934d6bbd26166fba85501eccc424f113f8.tar.gz
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 (limited to 'graphics/glitz')
-rw-r--r--graphics/glitz/Makefile3
-rw-r--r--graphics/glitz/distinfo3
-rw-r--r--graphics/glitz/patches/patch-ab17
3 files changed, 21 insertions, 2 deletions
diff --git a/graphics/glitz/Makefile b/graphics/glitz/Makefile
index 52f71d7e372..ab0bb22f133 100644
--- a/graphics/glitz/Makefile
+++ b/graphics/glitz/Makefile
@@ -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 --git a/graphics/glitz/distinfo b/graphics/glitz/distinfo
index a0c8c1fa5fa..7d5ddc1900f 100644
--- a/graphics/glitz/distinfo
+++ b/graphics/glitz/distinfo
@@ -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 --git a/graphics/glitz/patches/patch-ab b/graphics/glitz/patches/patch-ab
new file mode 100644
index 00000000000..3d98afb0575
--- /dev/null
+++ b/graphics/glitz/patches/patch-ab
@@ -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)