diff -Naur celestia-1.6.0/configure.in celestia-1.6.0-haiku/configure.in
|
old
|
new
|
|
| 193 | 193 | AM_CONDITIONAL(ENABLE_SPICE, test "$SPICELIB" != "") |
| 194 | 194 | |
| 195 | 195 | |
| 196 | | LIBS="$LIBS -lm" |
| | 196 | LIBS="$LIBS -lintl" |
| 197 | 197 | |
| 198 | 198 | dnl Use Gtk if requested |
| 199 | 199 | GTK_LIBS="" |
| … |
… |
|
| 237 | 237 | CFLAGS="$CFLAGS $CELESTIAFLAGS $CELESTIA_CFLAGS" |
| 238 | 238 | CXXFLAGS="$CXXFLAGS $CELESTIAFLAGS $CELESTIA_CXXFLAGS" |
| 239 | 239 | LIBS="$LIBS $CELESTIALIBS" |
| 240 | | LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lXmu -lXi -lXext -lX11 -lm -lz $X_EXTRA_LIBS" |
| | 240 | LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lz $X_EXTRA_LIBS" |
| 241 | 241 | |
| 242 | 242 | dnl Check for zlib -- libGL requires it. |
| 243 | 243 | AC_CHECK_LIB(z, deflate, , |
diff -Naur celestia-1.6.0/data/Makefile.am celestia-1.6.0-haiku/data/Makefile.am
|
old
|
new
|
|
| 15 | 15 | $(wildcard *.xyz) \ |
| 16 | 16 | $(wildcard *.xyzv) \ |
| 17 | 17 | $(wildcard *.dsc) \ |
| 18 | | $(wildcard *.stc) \ |
| 19 | | stars.dat |
| | 18 | $(wildcard *.stc) |
| 20 | 19 | |
| 21 | 20 | EXTRA_DIST = \ |
| 22 | 21 | $(pkgdata_DATA) \ |
diff -Naur celestia-1.6.0/src/celengine/astro.cpp celestia-1.6.0-haiku/src/celengine/astro.cpp
|
old
|
new
|
|
| 522 | 522 | cal_time.tm_sec = (int)seconds; |
| 523 | 523 | cal_time.tm_wday = wday; |
| 524 | 524 | cal_time.tm_gmtoff = utc_offset; |
| 525 | | #if defined(TARGET_OS_MAC) || defined(__FreeBSD__) |
| | 525 | #if defined(TARGET_OS_MAC) || defined(__FreeBSD__) || defined(__HAIKU__) |
| 526 | 526 | // tm_zone is a non-const string field on the Mac and FreeBSD (why?) |
| 527 | 527 | cal_time.tm_zone = const_cast<char*>(tzname.c_str()); |
| 528 | 528 | #else |
diff -Naur celestia-1.6.0/src/celengine/glext.cpp celestia-1.6.0-haiku/src/celengine/glext.cpp
|
old
|
new
|
|
| 12 | 12 | |
| 13 | 13 | #ifndef _WIN32 |
| 14 | 14 | // Assume that this is a UNIX/X11 system if it's not Windows or Mac OS X. |
| 15 | | #ifndef TARGET_OS_MAC |
| | 15 | #if !defined(TARGET_OS_MAC) && !defined(__HAIKU__) |
| 16 | 16 | #include "GL/glx.h" |
| 17 | 17 | #include <dlfcn.h> |
| 18 | | #endif /* ! TARGET_OS_MAC */ |
| | 18 | #endif /* ! TARGET_OS_MAC || HAIKU */ |
| 19 | 19 | #endif /* ! _WIN32 */ |
| 20 | 20 | |
| 21 | 21 | #include "glext.h" |
| … |
… |
|
| 306 | 306 | |
| 307 | 307 | #else |
| 308 | 308 | |
| 309 | | #ifndef TARGET_OS_MAC |
| | 309 | #if !defined(TARGET_OS_MAC) && !defined(__HAIKU__) |
| 310 | 310 | #if defined(_WIN32) |
| 311 | 311 | |
| 312 | 312 | #define GET_GL_PROC_ADDRESS(name) wglGetProcAddress(name) |
| … |
… |
|
| 692 | 692 | |
| 693 | 693 | static void InitExt_GLX_SGI_video_sync() |
| 694 | 694 | { |
| | 695 | #if defined(GET_GL_PROC_ADDRESS) |
| 695 | 696 | glx::glXGetVideoSyncSGI = (glx::PFNGLXGETVIDEOSYNCSGIPROC) GET_GL_PROC_ADDRESS("glXGetVideoSyncSGI"); |
| 696 | 697 | glx::glXWaitVideoSyncSGI = (glx::PFNGLXWAITVIDEOSYNCSGIPROC) GET_GL_PROC_ADDRESS("glXWaitVideoSyncSGI"); |
| 697 | 698 | glx::glXGetRefreshRateSGI = (glx::PFNGLXGETREFRESHRATESGIPROC) GET_GL_PROC_ADDRESS("glXGetRefreshRateSGI"); |
| | 699 | #endif |
| 698 | 700 | } |
| 699 | 701 | |
| 700 | 702 | |
diff -Naur celestia-1.6.0/src/celengine/image.cpp celestia-1.6.0-haiku/src/celengine/image.cpp
|
old
|
new
|
|
| 737 | 737 | |
| 738 | 738 | if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) |
| 739 | 739 | { |
| 740 | | png_set_gray_1_2_4_to_8(png_ptr); |
| | 740 | png_set_expand_gray_1_2_4_to_8(png_ptr); |
| 741 | 741 | } |
| 742 | 742 | |
| 743 | 743 | if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) |
diff -Naur celestia-1.6.0/src/celutil/unixdirectory.cpp celestia-1.6.0-haiku/src/celutil/unixdirectory.cpp
|
old
|
new
|
|
| 11 | 11 | #include <sys/stat.h> |
| 12 | 12 | #include <unistd.h> |
| 13 | 13 | #include <dirent.h> |
| | 14 | #if !defined(__HAIKU__) |
| 14 | 15 | #include <wordexp.h> |
| | 16 | #endif |
| 15 | 17 | #include "directory.h" |
| 16 | 18 | |
| 17 | 19 | using namespace std; |
| 18 | 20 | |
| 19 | 21 | |
| 20 | | #ifdef TARGET_OS_MAC |
| 21 | | #ifdef QT_CORE_LIB |
| | 22 | #if defined(__HAIKU__) || defined(TARGET_OS_MAC) && defined(QT_CORE_LIB) |
| 22 | 23 | // Crash on Mac OS X / Qt4 version when calling wordfree. |
| 23 | 24 | // This seems to happen only with Leopard. |
| 24 | 25 | #define WORDEXP_PROBLEM |
| 25 | 26 | #endif |
| 26 | | #endif |
| 27 | 27 | |
| 28 | 28 | class UnixDirectory : public Directory |
| 29 | 29 | { |