Mercurial > fife-parpg
diff build/openbsd4-config.py @ 692:be625cdff350
This commit is to back port a fix in 0.3.3 dev branch to the current trunk. Adding boost_system as a required dependency as boost_filesystem is dependent on it. On linux distros with newer versions of gcc FIFE is failing to configure properly without boost_system in the lib list. [t:540]
author | vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 08 Jun 2011 03:08:58 +0000 |
parents | be291458d9b5 |
children |
line wrap: on
line diff
--- a/build/openbsd4-config.py Wed Jun 08 03:03:50 2011 +0000 +++ b/build/openbsd4-config.py Wed Jun 08 03:08:58 2011 +0000 @@ -1,63 +1,64 @@ -# Install the following packages: libvorbis python py-yaml swig png openal sdl -# sdl-image sdl-ttf guichan boost -# - -import sys -import os - -def initEnvironment(env): - # Vorbisfile - env.Append(CPPPATH = [ - os.path.join('/', 'usr', 'local', 'include'), - os.path.join('/', 'usr', 'local', 'include', 'vorbis') - ]) - env.Append(LIBPATH = [os.path.join('/', 'usr', 'local', 'lib')]) - env.Append(LIBS = ['ogg', 'vorbis']) - - # PNG - env.Append(CPPPATH = [os.path.join('/', 'usr', 'local', 'include', 'libpng')]) - - # Python library - pythonversion = 'python' + str(os.sys.version_info[0]) + '.' + str(os.sys.version_info[1]) - env.Append(CPPPATH = os.path.join('/', 'usr', 'local', 'include', pythonversion)) - env.Append(LIBS = [pythonversion, 'util']) - - # OpenBSD specific pthreads option - env.Append(LINKFLAGS = ['-pthread']) - - return env - -def addExtras(env, opengl): - if opengl: - env.Append(LIBS = ['stdc++', 'GL', 'GLU']) - env.Append(LIBPATH = os.path.join('/', 'usr', 'X11R6', 'lib')) - - return env - -def getRequiredHeaders(opengl): - return None - -def getRequiredLibs(opengl): - libs = [ - ('vorbisfile', 'vorbisfile.h'), - ('openal', 'AL/al.h'), - ('SDL', 'SDL.h'), - ('SDL_ttf', 'SDL_ttf.h'), - ('SDL_image', 'SDL_image.h'), - ('guichan', 'guichan.hpp'), - ('guichan_sdl', ''), - (('boost_filesystem', 'boost_filesystem-gcc', 'boost_filesystem-gcc41', 'boost_filesystem-mt'), 'boost/filesystem.hpp'), - (('boost_regex', 'boost_regex-gcc', 'boost_regex-gcc41', 'boost_regex-mt'), 'boost/regex.hpp'), - ('png', 'png.h'), - ('Xcursor', 'X11/Xcursor/Xcursor.h')] - - if (opengl): - libs.append(('guichan_opengl', '')) - - return libs - -def getOptionalLibs(opengl): - return None - -# vim: ft=python: - +# Install the following packages: libvorbis python py-yaml swig png openal sdl +# sdl-image sdl-ttf guichan boost +# + +import sys +import os + +def initEnvironment(env): + # Vorbisfile + env.Append(CPPPATH = [ + os.path.join('/', 'usr', 'local', 'include'), + os.path.join('/', 'usr', 'local', 'include', 'vorbis') + ]) + env.Append(LIBPATH = [os.path.join('/', 'usr', 'local', 'lib')]) + env.Append(LIBS = ['ogg', 'vorbis']) + + # PNG + env.Append(CPPPATH = [os.path.join('/', 'usr', 'local', 'include', 'libpng')]) + + # Python library + pythonversion = 'python' + str(os.sys.version_info[0]) + '.' + str(os.sys.version_info[1]) + env.Append(CPPPATH = os.path.join('/', 'usr', 'local', 'include', pythonversion)) + env.Append(LIBS = [pythonversion, 'util']) + + # OpenBSD specific pthreads option + env.Append(LINKFLAGS = ['-pthread']) + + return env + +def addExtras(env, opengl): + if opengl: + env.Append(LIBS = ['stdc++', 'GL', 'GLU']) + env.Append(LIBPATH = os.path.join('/', 'usr', 'X11R6', 'lib')) + + return env + +def getRequiredHeaders(opengl): + return None + +def getRequiredLibs(opengl): + libs = [ + ('vorbisfile', 'vorbisfile.h'), + ('openal', 'AL/al.h'), + ('SDL', 'SDL.h'), + ('SDL_ttf', 'SDL_ttf.h'), + ('SDL_image', 'SDL_image.h'), + ('guichan', 'guichan.hpp'), + ('guichan_sdl', ''), + ('boost_system', ''), + (('boost_filesystem', 'boost_filesystem-gcc', 'boost_filesystem-gcc41', 'boost_filesystem-mt'), 'boost/filesystem.hpp'), + (('boost_regex', 'boost_regex-gcc', 'boost_regex-gcc41', 'boost_regex-mt'), 'boost/regex.hpp'), + ('png', 'png.h'), + ('Xcursor', 'X11/Xcursor/Xcursor.h')] + + if (opengl): + libs.append(('guichan_opengl', '')) + + return libs + +def getOptionalLibs(opengl): + return None + +# vim: ft=python: +