diff options
author | hasufell <julian.ospald@googlemail.com> | 2012-03-22 22:52:30 +0000 |
---|---|---|
committer | hasufell <julian.ospald@googlemail.com> | 2012-03-22 22:52:30 +0000 |
commit | 78ec4fdb32b33f2500bafc60c4f724dc9235b3f5 (patch) | |
tree | 0e466808804d2f880dece56999ca47a989faf909 /games-roguelike/dwarf-fortress/files | |
parent | media-sound/songbird-bin: Remove bad dependency on media-plugins/gst-plugins-... (diff) | |
download | sunrise-78ec4fdb32b33f2500bafc60c4f724dc9235b3f5.tar.gz sunrise-78ec4fdb32b33f2500bafc60c4f724dc9235b3f5.tar.bz2 sunrise-78ec4fdb32b33f2500bafc60c4f724dc9235b3f5.zip |
moved over from games-rpg to games-roguelike
svn path=/sunrise/; revision=12835
Diffstat (limited to 'games-roguelike/dwarf-fortress/files')
-rw-r--r-- | games-roguelike/dwarf-fortress/files/SConscript-gentoo | 53 | ||||
-rw-r--r-- | games-roguelike/dwarf-fortress/files/dwarf-fortress-wrapper | 7 |
2 files changed, 60 insertions, 0 deletions
diff --git a/games-roguelike/dwarf-fortress/files/SConscript-gentoo b/games-roguelike/dwarf-fortress/files/SConscript-gentoo new file mode 100644 index 000000000..62c90a9e7 --- /dev/null +++ b/games-roguelike/dwarf-fortress/files/SConscript-gentoo @@ -0,0 +1,53 @@ +# -*- mode: python -*- +from sys import platform +import os +import SCons.Util + +src_dll = ["basics.cpp","command_line.cpp","enabler.cpp","files.cpp", + "find_files_posix.cpp","graphics.cpp","init.cpp","interface.cpp", + "keybindings.cpp","music_and_sound_openal.cpp", "random.cpp", + "textlines.cpp","glew.c","enabler_input.cpp","ViewBase.cpp", + "KeybindingScreen.cpp", "win32_compat.cpp", "textures.cpp", + "resize++.cpp", "renderer_offscreen.cpp", + "ttf_manager.cpp"] + +dll = '#libs/libgraphics.so' + +libgraphics = True +tetris = False + +# Propagate PATH. We'll just take our chances with non-repeatable builds. +env = Environment(ENV = {'PATH' : os.environ['PATH']}) + +# Libraries and linking +env['LIBS']=["SDL_image","z","SDL_ttf","sndfile"] +#env['LINKFLAGS']=['-Wl,-rpath=\$$ORIGIN/libs'] + +# GLEW +# latest portage version is incompatible, lets stick to the bundled one +env.Append(CPPPATH = ['glext/']) +env["CCFLAGS"].append("-DGLEW_STATIC") # Should only be needed on windows, but can't hurt. + +# Generic unix, including Linux +env.ParseConfig('pkg-config gtk+-2.0 --cflags --libs') +env.ParseConfig('pkg-config openal --cflags') +env.ParseConfig('pkg-config sndfile --cflags') +env.ParseConfig('pkg-config sdl --cflags --libs') +env.ParseConfig('pkg-config glu --cflags --libs') + +# flags and compiler +env['CCFLAGS'].append("-Dunix") +env['CXXFLAGS'].append("-std=gnu++0x") +# this is gentoo, respect my flags +env['CC'] = os.environ['CC'] +env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS']) +env['CXX'] = os.environ['CXX'] +env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) +env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) + +# Finally, do the build +if libgraphics: + env.SharedLibrary(dll, src_dll) + +if tetris: + env.Program("#tetris", src_dll + ["tetris.cpp"]) diff --git a/games-roguelike/dwarf-fortress/files/dwarf-fortress-wrapper b/games-roguelike/dwarf-fortress/files/dwarf-fortress-wrapper new file mode 100644 index 000000000..d5a86349a --- /dev/null +++ b/games-roguelike/dwarf-fortress/files/dwarf-fortress-wrapper @@ -0,0 +1,7 @@ +#!/bin/sh +cd /opt/dwarf-fortress +# export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch. +#export SDL_VIDEO_CENTERED=1 # Centre the screen. Messes up resizing. + +umask 0002 # Make sure that any saves created get 775/664 +exec ./libs/Dwarf_Fortress "$@" |