diff build/freebsd6-config-dist.py @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children ea04dfe54aae
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/freebsd6-config-dist.py	Sun Jun 29 18:44:17 2008 +0000
@@ -0,0 +1,31 @@
+# Needed pkg-config additions:
+# SDL_ttf & SDL_image
+# guichan, guichan_opengl & guichan_sdl
+# boost_filesystem & boost_regex
+# vorbisfile
+# openal
+
+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'])
+
+	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/python2.5'])