0
0
Fork 0
haikuports/media-gfx/povray/patches/povray-3.7.0.10.patchset

82 lines
2.7 KiB
Plaintext

From df7473b109703122e8af7848d2bac90bc911f6b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 12 Nov 2017 11:00:37 +0100
Subject: POVRAY: Haiku support
diff --git a/vfe/unix/syspovconfig.h b/vfe/unix/syspovconfig.h
index 42d8bb3..fdfcfb3 100644
--- a/vfe/unix/syspovconfig.h
+++ b/vfe/unix/syspovconfig.h
@@ -149,6 +149,10 @@ const int NULL=0;
// Apple Mac OS X detected.
#include <unistd.h>
#define lseek64(handle,offset,whence) lseek(handle,offset,whence)
+#elif defined(__HAIKU__)
+ // Haiku detected.
+ #include <unistd.h>
+ #define lseek64(handle,offset,whence) lseek(handle,offset,whence)
#elif defined(__sun) && defined(__SVR4)
// Sun/Oracle Solaris detected.
// Not officially supported yet; comment-out the following line to try with default POSIX settings.
--
2.30.2
From 859e491deb14bdf5c88aaa2fde86541bdc887e94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 12 Nov 2017 11:34:59 +0100
Subject: Haiku needs -lpthread
diff --git a/unix/config/ax_boost_thread.m4 b/unix/config/ax_boost_thread.m4
index 79e12cd..a812ba9 100644
--- a/unix/config/ax_boost_thread.m4
+++ b/unix/config/ax_boost_thread.m4
@@ -72,6 +72,8 @@ AC_DEFUN([AX_BOOST_THREAD],
CXXFLAGS="-pthreads $CXXFLAGS"
elif test "x$host_os" = "xmingw32" ; then
CXXFLAGS="-mthreads $CXXFLAGS"
+ elif test "x$host_os" = "xhaiku" ; then
+ CXXFLAGS="-lpthread $CXXFLAGS"
else
CXXFLAGS="-pthread $CXXFLAGS"
fi
@@ -87,6 +89,8 @@ AC_DEFUN([AX_BOOST_THREAD],
BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
elif test "x$host_os" = "xmingw32" ; then
BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
+ elif test "x$host_os" = "xhaiku" ; then
+ BOOST_CPPFLAGS="-lpthread $BOOST_CPPFLAGS"
else
BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
fi
--
2.30.2
From c8ba7556d4ccd04a816477715acc0bffa59f7cf3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 12 Nov 2017 13:01:38 +0100
Subject: Install fix
diff --git a/unix/configure.ac b/unix/configure.ac
index 3335781..84206ff 100644
--- a/unix/configure.ac
+++ b/unix/configure.ac
@@ -1024,8 +1024,8 @@ AC_DEFINE_UNQUOTED([BUILTIN_XWIN_DISPLAY], ["$pov_xwin_msg"], [X Window display.
AC_DEFINE_UNQUOTED([BUILTIN_IMG_FORMATS], ["$pov_img_fmt_builtin $pov_img_fmt_enabled"], [Supported image formats.])
AC_DEFINE_UNQUOTED([MISSING_IMG_FORMATS], ["$pov_img_fmt_disabled"], [Unsupported image formats.])
-povowner=`stat ${stat_format}%u ${HOME}`
-povgroup=`stat ${stat_format}%g ${HOME}`
+povowner=`echo user`
+povgroup=`echo root`
AC_SUBST([povowner])
AC_SUBST([povgroup])
--
2.30.2