Mercurial > fife-parpg
comparison build/freebsd6-config-dist.py @ 175:ea04dfe54aae
* Buildscripts have been modified to work with different python versions.
This applys only to linux/freebsd/darwin. For windows the only supported
python version remains 2.5.x. On linux/freebsd/darwin 2.5 and 2.6 should work.
author | nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 25 Jan 2009 19:07:57 +0000 |
parents | 4a0efb7baf70 |
children | 06dddc96ce54 |
comparison
equal
deleted
inserted
replaced
174:362fe23920b9 | 175:ea04dfe54aae |
---|---|
2 # SDL_ttf & SDL_image | 2 # SDL_ttf & SDL_image |
3 # guichan, guichan_opengl & guichan_sdl | 3 # guichan, guichan_opengl & guichan_sdl |
4 # boost_filesystem & boost_regex | 4 # boost_filesystem & boost_regex |
5 # vorbisfile | 5 # vorbisfile |
6 # openal | 6 # openal |
7 import sys | |
7 | 8 |
8 def initEnvironment(env): | 9 def initEnvironment(env): |
9 return env | 10 return env |
10 | 11 |
11 def addExtras(context): | 12 def addExtras(context): |
24 if context.env['opengl']: | 25 if context.env['opengl']: |
25 context.env.Append(LIBS = ['GL', 'GLU']) | 26 context.env.Append(LIBS = ['GL', 'GLU']) |
26 context.env.Append(CPPPATH = ['/usr/local/include']) | 27 context.env.Append(CPPPATH = ['/usr/local/include']) |
27 context.env.Append(LIBPATH = ['/usr/local/lib']) | 28 context.env.Append(LIBPATH = ['/usr/local/lib']) |
28 context.checkSimpleLib(['guichan_opengl']) | 29 context.checkSimpleLib(['guichan_opengl']) |
29 | |
30 # For swig/python: | 30 # For swig/python: |
31 context.env.Append(CPPPATH = ['/usr/local/include/python2.5']) | 31 context.env.Append(CPPPATH = ['/usr/local/include/python%s'%sys.version[:3]]) |