Mercurial > fife-parpg
comparison build/freebsd8-config-dist.py @ 377:fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 09 Dec 2009 17:01:52 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
376:22222a900751 | 377:fe6fb0e0ed23 |
---|---|
1 # Needed pkg-config additions: | |
2 # SDL_ttf & SDL_image | |
3 # guichan, guichan_opengl & guichan_sdl | |
4 # boost_filesystem & boost_regex | |
5 # vorbisfile | |
6 # openal | |
7 | |
8 import sys | |
9 | |
10 def initEnvironment(env): | |
11 return env | |
12 | |
13 def addExtras(context): | |
14 context.env.Append(CPPPATH = ['/usr/local/include/vorbis']) | |
15 context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h') | |
16 context.checkSimpleLib(['openal'], 'AL/al.h') | |
17 | |
18 context.checkSimpleLib(['sdl11', 'sdl12', 'sdl'], 'SDL.h') | |
19 context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h') | |
20 context.checkSimpleLib(['SDL_image'], 'SDL_image.h') | |
21 context.checkSimpleLib(['guichan']) | |
22 context.checkSimpleLib(['guichan_sdl']) | |
23 context.checkSimpleLib(['boost_filesystem']) | |
24 context.checkSimpleLib(['boost_regex']) | |
25 context.checkSimpleLib(['xcursor']) | |
26 context.checkSimpleLib(['png'], 'png.h') | |
27 | |
28 if context.env['opengl']: | |
29 context.env.Append(LIBS = ['GL', 'GLU']) | |
30 context.env.Append(CPPPATH = ['/usr/local/include']) | |
31 context.env.Append(LIBPATH = ['/usr/local/lib']) | |
32 context.checkSimpleLib(['guichan_opengl']) | |
33 # For swig/python: | |
34 context.env.Append(CPPPATH = ['/usr/local/include/python%s'%sys.version[:3]]) |