-Linux/OSX(using X-windows)
-==========================
+Linux(using X-windows)
+======================
environment:
- gcc >= version 3.1 (preferably)
run:
Execute './GtkRadiant/install/radiant.x86' (or './GtkRadiant/install/radiant.ppc' on osx)
+OSX(using X-windows)
+====================
+environment:
+- OS X 10.5
+- Xcode developer tools installed
+- X11 (from the OS X DVD)
+- fink installed
+- the following fink packages installed:
+ gtkglext1 pkgconfig glib2-dev libxml2 gtk+2-dev pango1-xft2-dev atk-dev atk1 gettext-dev
+
+build:
+run 'make'
+
+run:
+???
Jva32 (2000, KC be Ivfgn)
==================
DLL = dylib
MWINDOWS =
+ # workaround for weird prints
+ ECHO_NOLF = /bin/echo -n
+
# workaround: http://developer.apple.com/qa/qa2007/qa1567.html
LIBS_GL += -lX11 -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
LIBS_GTKGLEXT += -lX11 -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
.PHONY: install-data
install-data: binaries
$(MKDIR) $(INSTALLDIR)/games
- $(FIND) $(INSTALLDIR)/ -name .svn -exec $(RM_R) {} \; -prune
+ $(FIND) $(INSTALLDIR_BASE)/ -name .svn -exec $(RM_R) {} \; -prune
[ "$(OS)" != "Darwin" ] || $(CP_R) setup/data/osx/NetRadiant.app/* $(INSTALLDIR_BASE)/NetRadiant.app/
set -ex; \
for GAME in games/*; do \
$(ECHO) $(RADIANT_MINOR_VERSION) > $(INSTALLDIR)/RADIANT_MINOR
$(ECHO) $(RADIANT_MAJOR_VERSION) > $(INSTALLDIR)/RADIANT_MAJOR
$(CP_R) setup/data/tools/* $(INSTALLDIR)/
- $(FIND) $(INSTALLDIR)/ -name .svn -exec $(RM_R) {} \; -prune
+ $(FIND) $(INSTALLDIR_BASE)/ -name .svn -exec $(RM_R) {} \; -prune
.PHONY: install-dll
ifeq ($(OS),Win32)
name="Nexuiz"
enginepath_win32="C:/Program Files/Nexuiz/"
enginepath_linux="/usr/share/games/nexuiz/"
- enginepath_macos="/Applications/Nexuiz/"
+ enginepath_macos="../../../../.."
engine_win32="nexuiz-sdl.exe"
engine_linux="nexuiz-sdl"
engine_macos="Nexuiz.app"
#include "os/path.h"
#include "moduleobserver.h"
-class Model : public ModuleObserver
+class EModel : public ModuleObserver
{
ResourceReference m_resource;
scene::Traversable& m_traverse;
Callback m_modelChanged;
public:
- Model(scene::Traversable& traversable, const Callback& modelChanged)
+ EModel(scene::Traversable& traversable, const Callback& modelChanged)
: m_resource(""), m_traverse(traversable), m_node(0), m_modelChanged(modelChanged)
{
m_resource.attach(*this);
}
- ~Model()
+ ~EModel()
{
m_resource.detach(*this);
}
m_resource.attach(*this);
m_modelChanged();
}
- typedef MemberCaller1<Model, const char*, &Model::modelChanged> ModelChangedCaller;
+ typedef MemberCaller1<EModel, const char*, &EModel::modelChanged> ModelChangedCaller;
const char* getName() const
{
class SingletonModel
{
TraversableNode m_traverse;
- Model m_model;
+ EModel m_model;
public:
SingletonModel()
: m_model(m_traverse, Callback())
#export DYLD_LIBRARY_PATH="$MY_DIRECTORY/Contents/MacOS"
-cd "$MY_DIRECTORY/Contents/MacOS/NetRadiant/install"
-exec /usr/bin/open-x11 ./radiant.ppc
+cd "$MY_DIRECTORY/Contents/MacOS/install"
+if [ -x /usr/bin/open-x11 ]; then
+ exec /usr/bin/open-x11 ./radiant.ppc
+else
+ exec ./radiant.ppc
+fi