summaryrefslogtreecommitdiff
path: root/www/clearsilver/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-07-28 12:26:18 +0000
committerrillig <rillig@pkgsrc.org>2006-07-28 12:26:18 +0000
commit2eff39b815e199ddf6ef20171e2e29ef1720ce1f (patch)
tree25705d670f82c1377ddc9e5477919e17ce2f3a9d /www/clearsilver/patches
parent00b11d4ce4dc2ba7391e5c2b8cefb35507834bd6 (diff)
downloadpkgsrc-2eff39b815e199ddf6ef20171e2e29ef1720ce1f.tar.gz
Added two patches for SunPro.
Diffstat (limited to 'www/clearsilver/patches')
-rw-r--r--www/clearsilver/patches/patch-ab17
-rw-r--r--www/clearsilver/patches/patch-ac21
2 files changed, 38 insertions, 0 deletions
diff --git a/www/clearsilver/patches/patch-ab b/www/clearsilver/patches/patch-ab
new file mode 100644
index 00000000000..d8e09b3db1d
--- /dev/null
+++ b/www/clearsilver/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.3 2006/07/28 12:26:18 rillig Exp $
+
+We don't need the dependencies for building the package once.
+Additionally, not every compiler understands the -MG option.
+
+--- rules.mk.in.orig 2005-07-03 02:13:51.000000000 +0200
++++ rules.mk.in 2006-07-28 13:19:38.529610934 +0200
+@@ -141,9 +141,6 @@ Makefile.depends: $(NEOTONIC_ROOT)/rules
+ @echo "** OSNAME: $(OSTYPE)"
+ @rm -f Makefile.depends
+ @touch Makefile.depends
+- @for II in `find . -maxdepth 1 -name "*.c" -print`; do \
+- gcc -M -MG ${CFLAGS} $$II >> Makefile.depends; \
+- done;
+ @echo "** (done) "
+
+ DEPEND_FILE := $(shell find . -name Makefile.depends -print)
diff --git a/www/clearsilver/patches/patch-ac b/www/clearsilver/patches/patch-ac
new file mode 100644
index 00000000000..f979319f33f
--- /dev/null
+++ b/www/clearsilver/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2006/07/28 12:26:18 rillig Exp $
+
+__PRETTY_FUNCTION__ is a GNUism.
+
+--- util/neo_err.h.orig 2005-06-30 20:59:37.000000000 +0200
++++ util/neo_err.h 2006-07-28 13:22:03.890389580 +0200
+@@ -54,6 +54,14 @@ typedef struct _neo_err
+ } NEOERR;
+
+
++#if defined(__GNUC__)
++/* GNU C provides __PRETTY_FUNCTION__ */
++#elif defined(__SUNPRO_C)
++# define __PRETTY_FUNCTION__ __func__
++#else
++# define __PRETTY_FUNCTION__ "(function name)"
++#endif
++
+ /*
+ * function: nerr_raise
+ * description: Use this method to create an error "exception" for