HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #463

Ticket #463: scourge-0.21.1.patch

File scourge-0.21.1.patch, 2.8 KB (added by michaelvoliveira, 5 years ago)

Patch to set a datadir and replace glXGetProcAddressARB for glutGetProcAddress

  • configure.in

    diff -Naur scourge/configure.in scourge-haiku/configure.in
    old new  
    310310    AC_MSG_ERROR([Cannot find GL library]) 
    311311fi 
    312312 
    313 dnl Check for glXGetProcAddressARB 
    314 AC_CHECK_FUNCS( glXGetProcAddressARB, has_glx_get_proc=yes,  
     313dnl Check for glutGetProcAddress 
     314AC_CHECK_FUNCS( glutGetProcAddress, has_glx_get_proc=yes,  
    315315                has_glx_get_proc=no ) 
    316316 
    317317LIBS="$saved_LIBS" 
    … …  
    472472 
    473473if test "x$has_glx_get_proc" = "xyes" ; then  
    474474 
    475     dnl Check for glx.h 
    476     AC_CHECK_HEADERS([GL/glx.h], have_glx_h=yes, have_glx_h=no ) 
     475    dnl Check for glut.h 
     476    AC_CHECK_HEADERS([GL/glut.h], have_glx_h=yes, have_glx_h=no ) 
    477477 
    478478    if test "x$have_glx_h" = "xno" ; then 
    479         AC_MSG_ERROR([Cannot find GL/glx.h]) 
     479        AC_MSG_ERROR([Cannot find GL/glut.h]) 
    480480    fi 
    481481 
    482     dnl Check that glXGetProcAddressARB is defined in glx.h 
    483     dnl AC_MSG_CHECKING([whether glx.h defines glXGetProcAddressARB]); 
    484     dnl AC_TRY_COMPILE( [#include <GL/glx.h>], [ char *foo = (char*) glXGetProcAddressARB; ], 
     482    dnl Check that glutGetProcAddress is defined in glut.h 
     483    dnl AC_MSG_CHECKING([whether glut.h defines glutGetProcAddress]); 
     484    dnl AC_TRY_COMPILE( [#include <GL/glut.h>], [ char *foo = (char*) glutGetProcAddress; ], 
    485485    dnl                 glx_h_up_to_date=yes, glx_h_up_to_date=no ) 
    486486    dnl AC_MSG_RESULT([$glx_h_up_to_date]) 
    487487 
    488488    dnl if test "x$glx_h_up_to_date" = "xno" ; then 
    489     dnl     AC_MSG_ERROR([Your copy of glx.h is out of date.  You can get a more recent copy from the latest Mesa distribution (http://mesa3d.sourceforge.net).]) 
     489    dnl     AC_MSG_ERROR([Your copy of glut.h is out of date.  You can get a more recent copy from the latest Mesa distribution (http://mesa3d.sourceforge.net).]) 
    490490    dnl fi 
    491491fi 
    492492 
    493493dnl Check for glext.h  
    494494AC_CHECK_HEADERS( "GL/glext.h", have_glext_h=yes, have_glext_h=no ) 
    495495 
    496 if test "x$have_glext_h" = "xno" ; then 
    497     AC_MSG_ERROR([ 
    498 ***************************************************************** 
    499 You are missing the file glext.h. 
    500 You can get a copy at 
    501 http://oss.sgi.com/projects/ogl-sample/ABI/glext.h 
    502 Place it in the directory /usr/include/GL. 
    503 *****************************************************************]) 
    504 fi 
    505496 
    506497dnl Check that glext.h version is recent enough 
    507498AC_MSG_CHECKING([whether glext.h is recent enough]); 
  • src/common/constants.h

    diff -Naur scourge/src/common/constants.h scourge-haiku/src/common/constants.h
    old new  
    167167#  if defined( WIN32 ) 
    168168#    define DATA_DIR "./"DATA_DIR_NAME 
    169169#  else 
    170 #    define DATA_DIR "/usr/local/share/scourge" 
     170#    define DATA_DIR "/boot/apps/scourge" 
    171171#  endif /* defined( WIN32 ) */ 
    172172#endif 
    173173 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/