mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Use clang on OS X instead of gcc48
Also - add 'pkgconfig' to list of MacPorts to install, as it's a required dependency.
This commit is contained in:
parent
5b1bb1ce7e
commit
adbace1da2
5 changed files with 7 additions and 6 deletions
|
@ -14,7 +14,7 @@ Directions for OSX Mavericks 10.9 - your mileage may vary:
|
||||||
- Install dependencies with MacPorts:
|
- Install dependencies with MacPorts:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo port install dylibbundler gcc48 gtkglext scons
|
sudo port install dylibbundler pkgconfig gtkglext scons
|
||||||
```
|
```
|
||||||
|
|
||||||
- Get the GtkRadiant code and compile:
|
- Get the GtkRadiant code and compile:
|
||||||
|
@ -22,7 +22,7 @@ sudo port install dylibbundler gcc48 gtkglext scons
|
||||||
```
|
```
|
||||||
git clone https://github.com/TTimo/GtkRadiant.git
|
git clone https://github.com/TTimo/GtkRadiant.git
|
||||||
cd GtkRadiant/
|
cd GtkRadiant/
|
||||||
scons cc=gcc-mp-4.8 cxx=g++-mp-4.8
|
scons
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run the build:
|
- Run the build:
|
||||||
|
|
|
@ -40,7 +40,7 @@ static void dialog_button_callback( GtkWidget *widget, gpointer data ){
|
||||||
ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" );
|
ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" );
|
||||||
|
|
||||||
*loop = 0;
|
*loop = 0;
|
||||||
*ret = (int)data;
|
*ret = (int)((intptr_t)data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){
|
static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){
|
||||||
|
|
|
@ -42,7 +42,7 @@ static void dialog_button_callback( GtkWidget *widget, gpointer data ){
|
||||||
ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" );
|
ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" );
|
||||||
|
|
||||||
*loop = 0;
|
*loop = 0;
|
||||||
*ret = (int)data;
|
*ret = (int)((intptr_t)data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){
|
static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){
|
||||||
|
|
|
@ -36,7 +36,7 @@ static void dialog_button_callback( GtkWidget *widget, gpointer data ){
|
||||||
ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" );
|
ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" );
|
||||||
|
|
||||||
*loop = 0;
|
*loop = 0;
|
||||||
*ret = (int)data;
|
*ret = (int)((intptr_t)data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){
|
static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){
|
||||||
|
@ -59,7 +59,7 @@ static void file_sel_callback( GtkWidget *widget, gpointer data ){
|
||||||
filename = (char**)g_object_get_data( G_OBJECT( parent ), "filename" );
|
filename = (char**)g_object_get_data( G_OBJECT( parent ), "filename" );
|
||||||
|
|
||||||
*loop = 0;
|
*loop = 0;
|
||||||
if ( (int)data == IDOK ) {
|
if ( (int)((intptr_t)data) == IDOK ) {
|
||||||
*filename = g_strdup( gtk_file_selection_get_filename( GTK_FILE_SELECTION( parent ) ) );
|
*filename = g_strdup( gtk_file_selection_get_filename( GTK_FILE_SELECTION( parent ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#define __PRTVIEW_AFX_H__
|
#define __PRTVIEW_AFX_H__
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#if defined( __linux__ ) || defined( __APPLE__ )
|
#if defined( __linux__ ) || defined( __APPLE__ )
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
|
|
Loading…
Reference in a new issue