view build/freebsd7-config-dist.py @ 370:5ab78cd39534

* Updated win32 build files for the new November 2009 Win32 DevKit * The old Win32 compile SDK 2008.1-r1 will NOT work with future revisions, starting with 3073 * For details, check this article that also contains the download links: http://fifengine.de/2009/11/16/new-fife-win32-devkit-available/ * Thanks to Cheesesucker for providing the installer version as well as for a bunch of smaller fixes to the build scripts
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 16 Nov 2009 12:29:29 +0000
parents 542213eebe73
children
line wrap: on
line source

# 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'])

	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]])