Mercurial > fife-parpg
annotate build/freebsd8-config-dist.py @ 545:bc7e3c3122d7
The save xml files are now deleted correctly on the Mac platform.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 03 Jun 2010 02:40:05 +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]]) |