Mercurial > fife-parpg
annotate build/freebsd8-config-dist.py @ 646:07b1cf8e92b5
* Major improvements to fife_math.h and added corresponding Python bindings. Users now have access to FIFE's internal math functions. These functions are recommended to be used by all clients if required. Note: this may cause some problems with certain compilers. I hope this wont have to be reverted. TODO: remove the static constant globals somehow.
* Adopted the new math functions for all subsystems
* Improvements to DeviceCaps. It now detects all possible screen modes.
* User can now select 0 for their bpp and it will attempt to initialize SDL with the current screen bpp.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 13 Oct 2010 20:24:48 +0000 |
parents | fe6fb0e0ed23 |
children |
rev | line source |
---|---|
377
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
1 # Needed pkg-config additions: |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
2 # SDL_ttf & SDL_image |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
3 # guichan, guichan_opengl & guichan_sdl |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
4 # boost_filesystem & boost_regex |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
5 # vorbisfile |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
6 # openal |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
7 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
8 import sys |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
9 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
10 def initEnvironment(env): |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
11 return env |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
12 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
13 def addExtras(context): |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
14 context.env.Append(CPPPATH = ['/usr/local/include/vorbis']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
15 context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
16 context.checkSimpleLib(['openal'], 'AL/al.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
17 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
18 context.checkSimpleLib(['sdl11', 'sdl12', 'sdl'], 'SDL.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
19 context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
20 context.checkSimpleLib(['SDL_image'], 'SDL_image.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
21 context.checkSimpleLib(['guichan']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
22 context.checkSimpleLib(['guichan_sdl']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
23 context.checkSimpleLib(['boost_filesystem']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
24 context.checkSimpleLib(['boost_regex']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
25 context.checkSimpleLib(['xcursor']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
26 context.checkSimpleLib(['png'], 'png.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
27 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
28 if context.env['opengl']: |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
29 context.env.Append(LIBS = ['GL', 'GLU']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
30 context.env.Append(CPPPATH = ['/usr/local/include']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
31 context.env.Append(LIBPATH = ['/usr/local/lib']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
32 context.checkSimpleLib(['guichan_opengl']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
33 # For swig/python: |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
34 context.env.Append(CPPPATH = ['/usr/local/include/python%s'%sys.version[:3]]) |