mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
96 lines
3.1 KiB
Plaintext
96 lines
3.1 KiB
Plaintext
From a64f8ff30796c2db712abea7b72034fa3cc19a9d 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.15.0
|
|
|
|
|
|
From 54f220b12f1086661066de6aa9cc96beb9c1b1a8 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Sun, 12 Nov 2017 11:11:58 +0100
|
|
Subject: Haiku needs -lpthread
|
|
|
|
|
|
diff --git a/unix/config/ax_boost_thread.m4 b/unix/config/ax_boost_thread.m4
|
|
index 79e12cd..64c207c 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
|
|
--
|
|
2.15.0
|
|
|
|
|
|
From 5a7db3b42bfc7b2c58fce659f4e8848732a37f3e 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 (2. part)
|
|
|
|
|
|
diff --git a/unix/config/ax_boost_thread.m4 b/unix/config/ax_boost_thread.m4
|
|
index 64c207c..a812ba9 100644
|
|
--- a/unix/config/ax_boost_thread.m4
|
|
+++ b/unix/config/ax_boost_thread.m4
|
|
@@ -89,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.15.0
|
|
|
|
|
|
From 7a7b736b634ec33e1e236dabd67b58aa0a7c22b7 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 29c65c6..79e5b6d 100644
|
|
--- a/unix/configure.ac
|
|
+++ b/unix/configure.ac
|
|
@@ -1002,8 +1002,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 --format=%u ${HOME} || stat -f %u ${HOME}`
|
|
-povgroup=`stat --format=%g ${HOME} || stat -f %g ${HOME}`
|
|
+povowner=`echo user`
|
|
+povgroup=`echo root`
|
|
AC_SUBST([povowner])
|
|
AC_SUBST([povgroup])
|
|
|
|
--
|
|
2.15.0
|
|
|