# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1260378112 0 # Node ID fe6fb0e0ed23300e1c5c208df1437982982fcc35 # Parent 22222a9007510d717fd077645dbf62617610bfeb Adding freebsd8 build support. Thanks to varnie. diff -r 22222a900751 -r fe6fb0e0ed23 build/freebsd8-config-dist.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/freebsd8-config-dist.py Wed Dec 09 17:01:52 2009 +0000 @@ -0,0 +1,34 @@ +# Needed pkg-config additions: +# SDL_ttf & SDL_image +# guichan, guichan_opengl & guichan_sdl +# boost_filesystem & boost_regex +# vorbisfile +# openal + +import sys + +def initEnvironment(env): + return env + +def addExtras(context): + context.env.Append(CPPPATH = ['/usr/local/include/vorbis']) + context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h') + context.checkSimpleLib(['openal'], 'AL/al.h') + + context.checkSimpleLib(['sdl11', 'sdl12', 'sdl'], 'SDL.h') + context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h') + context.checkSimpleLib(['SDL_image'], 'SDL_image.h') + context.checkSimpleLib(['guichan']) + context.checkSimpleLib(['guichan_sdl']) + context.checkSimpleLib(['boost_filesystem']) + context.checkSimpleLib(['boost_regex']) + context.checkSimpleLib(['xcursor']) + context.checkSimpleLib(['png'], 'png.h') + + if context.env['opengl']: + context.env.Append(LIBS = ['GL', 'GLU']) + context.env.Append(CPPPATH = ['/usr/local/include']) + context.env.Append(LIBPATH = ['/usr/local/lib']) + context.checkSimpleLib(['guichan_opengl']) + # For swig/python: + context.env.Append(CPPPATH = ['/usr/local/include/python%s'%sys.version[:3]])