summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2012-08-24 12:48:11 +0000
committerryoon <ryoon@pkgsrc.org>2012-08-24 12:48:11 +0000
commit9c64dc295940f56f61b30a88d5512e7a0e886b35 (patch)
tree57d456f894d66a2cc27dec22106df308fcccef2b /graphics
parentc54f1cf80219f9828634db67795373ef2706d60b (diff)
downloadpkgsrc-9c64dc295940f56f61b30a88d5512e7a0e886b35.tar.gz
Fix build on older NetBSD current.
* Improve libexecinfo detection
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fotoxx/Makefile6
-rw-r--r--graphics/fotoxx/patches/patch-ab6
2 files changed, 6 insertions, 6 deletions
diff --git a/graphics/fotoxx/Makefile b/graphics/fotoxx/Makefile
index 22759fcd0e3..2e6005df555 100644
--- a/graphics/fotoxx/Makefile
+++ b/graphics/fotoxx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2012/08/12 07:20:15 ryoon Exp $
+# $NetBSD: Makefile,v 1.24 2012/08/24 12:48:11 ryoon Exp $
#
DISTNAME= fotoxx-12.08
@@ -25,8 +25,8 @@ INSTALL_TARGET= install
.include "../../mk/bsd.prefs.mk"
-.if (${OPSYS} == "NetBSD" && \
- (!empty(OS_VERSION:M6.99.*) || !empty(OS_VERSION:M[7-9].*)))
+.if exists(/usr/include/execinfo.h)
+CXXFLAGS+= -DHAVE_LIBEXECINFO
LDFLAGS+= -lexecinfo
.endif
diff --git a/graphics/fotoxx/patches/patch-ab b/graphics/fotoxx/patches/patch-ab
index f2280917fdf..8c1501889f9 100644
--- a/graphics/fotoxx/patches/patch-ab
+++ b/graphics/fotoxx/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.8 2012/08/12 07:20:15 ryoon Exp $
+$NetBSD: patch-ab,v 1.9 2012/08/24 12:48:11 ryoon Exp $
--- zfuncs.cc.orig 2012-08-04 11:58:30.000000000 +0000
+++ zfuncs.cc
@@ -6,7 +6,7 @@ $NetBSD: patch-ab,v 1.8 2012/08/12 07:20:15 ryoon Exp $
printf("*** zappcrash: \n %s \n",message); // output message to stdout
-+#if defined (__linux__) || (defined (__NetBSD__) && (__NetBSD_Version__ >= 699000000))
++#if defined (HAVE_LINEXECINFO)
nstack = backtrace(stacklist,nstack); // get traceback data
stackents = backtrace_symbols(stacklist,nstack);
@@ -22,7 +22,7 @@ $NetBSD: patch-ab,v 1.8 2012/08/12 07:20:15 ryoon Exp $
}
progexe[cc] = 0;
-+#if defined (__linux__) || (defined (__NetBSD__) && (__NetBSD_Version__ >= 699000000))
++#if defined (HAVE_LINEXECINFO)
for (ii = 0; ii < nstack; ii++) // output backtrace to text file
{
pfunc = 0;