Bugfix #4081: support for OpenBSD platform for scons. Big thanks to Nathan Houghton...
[blender-staging.git] / config / openbsd3-config.py
1 LCGDIR = '../lib/openbsd3'
2 BF_PYTHON = '/usr/local'
3 BF_PYTHON_VERSION = '2.3'
4 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
5 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
6 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}'
7 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib/python${BF_PYTHON_VERSION}/config'
8
9 WITH_BF_OPENAL = 'false'
10 #BF_OPENAL = LCGDIR + '/openal'
11 #BF_OPENAL_INC = '${BF_OPENAL}/include'
12 #BF_OPENAL_LIB = 'openal'
13 #BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
14
15 WITH_BF_SDL = 'true'
16 BF_SDL = '/usr/local' #$(shell sdl-config --prefix)
17 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
18 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
19 BF_SDL_LIBPATH = '${BF_SDL}/lib'
20
21 WITH_BF_FMOD = 'false'
22 BF_FMOD = LCGDIR + '/fmod'
23
24 WITH_BF_OPENEXR = 'false'
25 BF_OPENEXR = '/usr/local'
26 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
27 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
28
29 WITH_BF_JPEG = 'true'
30 BF_JPEG = '/usr/local'
31 BF_JPEG_INC = '${BF_JPEG}/include'
32 BF_JPEG_LIB = 'jpeg'
33 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
34
35 WITH_BF_PNG = 'true'
36 BF_PNG = '/usr/local'
37 BF_PNG_INC = '${BF_PNG}/include/libpng'
38 BF_PNG_LIB = 'png'
39 BF_PNG_LIBPATH = '${BF_PNG}/lib'
40
41 BF_TIFF = '/usr/local'
42 BF_TIFF_INC = '${BF_TIFF}/include'
43
44 WITH_BF_ZLIB = 'true'
45 BF_ZLIB = '/usr/local'
46 BF_ZLIB_INC = '${BF_ZLIB}/include'
47 BF_ZLIB_LIB = 'z'
48
49 WITH_BF_INTERNATIONAL = 'true'
50
51 BF_GETTEXT = '/usr/local'
52 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
53 BF_GETTEXT_LIB = 'intl iconv'
54 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
55
56 WITH_BF_FTGL = 'true'
57 BF_FTGL = '#extern/bFTGL'
58 BF_FTGL_INC = '${BF_FTGL}/include'
59 BF_FTGL_LIB = 'extern_ftgl'
60
61 WITH_BF_GAMEENGINE='true'
62
63 WITH_BF_ODE = 'false'
64 BF_ODE = LCGDIR + '/ode'
65 BF_ODE_INC = '${BF_ODE}/include'
66 BF_ODE_LIB = '${BF_ODE}/lib/libode.a'
67
68 WITH_BF_BULLET = 'true'
69 BF_BULLET = '#extern/bullet'
70 BF_BULLET_INC = '${BF_BULLET}/LinearMath ${BF_BULLET}/BulletDynamics ${BF_BULLET}/Bullet'
71 BF_BULLET_LIB = 'extern_bullet'
72
73 BF_SOLID = '#extern/solid'
74 BF_SOLID_INC = '${BF_SOLID}'
75 BF_SOLID_LIB = 'extern_solid'
76
77 #WITH_BF_NSPR = 'true'
78 #BF_NSPR = $(LCGDIR)/nspr
79 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
80 #BF_NSPR_LIB = 
81
82 # Uncomment the following line to use Mozilla inplace of netscape
83 #CPPFLAGS += -DMOZ_NOT_NET
84 # Location of MOZILLA/Netscape header files...
85 #BF_MOZILLA = $(LCGDIR)/mozilla
86 #BF_MOZILLA_INC = -I$(BF_MOZILLA)/include/mozilla/nspr -I$(BF_MOZILLA)/include/mozilla -I$(BF_MOZILLA)/include/mozilla/xpcom -I$(BF_MOZILLA)/include/mozilla/idl
87 #BF_MOZILLA_LIB =
88 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
89 # if this is not set.
90 #
91 # Be paranoid regarding library creation (do not update archives)
92 #BF_PARANOID = 'true'
93
94 # enable freetype2 support for text objects
95 BF_FREETYPE = '/usr/X11R6'
96 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
97 BF_FREETYPE_LIB = 'freetype'
98 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
99
100 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
101
102 # Mesa Libs should go here if your using them as well....
103 WITH_BF_STATICOPENGL = 'true'
104 BF_OPENGL = '/usr/X11R6'
105 BF_OPENGL_INC = '${BF_OPENGL}/include'
106 BF_OPENGL_LIB = 'GL GLU X11 Xi'
107 BF_OPENGL_LIBPATH = '${BF_OPENGL}/lib'
108 BF_OPENGL_LIB_STATIC = '${BF_OPENGL_LIBPATH}/libGL.a ${BF_OPENGL_LIBPATH}/libGLU.a ${BF_OPENGL_LIBPATH}/libXxf86vm.a ${BF_OPENGL_LIBPATH}/libX11.a ${BF_OPENGL_LIBPATH}/libXi.a ${BF_OPENGL_LIBPATH}/libXext.a ${BF_OPENGL_LIBPATH}/libXxf86vm.a'
109
110 ##
111 ##CC = gcc
112 ##CCC = g++
113 ##ifeq ($CPU),alpha)
114 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
115
116 CFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
117
118 CPPFLAGS = []
119 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
120 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
121 REL_CFLAGS = ['-O2']
122 REL_CCFLAGS = ['-O2']
123 ##BF_DEPEND = 'true'
124 ##
125 ##AR = ar
126 ##ARFLAGS = ruv
127 ##ARFLAGSQUIET = ru
128 ##
129 CC = 'gcc'
130 CXX = 'g++'
131 C_WARN = '-Wall'
132
133 CC_WARN = '-Wall'
134
135 ##FIX_STUBS_WARNINGS = -Wno-unused
136
137 LLIBS = 'm stdc++ pthread util'
138 ##LOPTS = --dynamic
139 ##DYNLDFLAGS = -shared $(LDFLAGS)
140
141 BF_PROFILE_FLAGS = ' -pg -g '
142 BF_PROFILE = 'false'
143
144 BF_DEBUG = 'false'
145 BF_DEBUG_FLAGS = '-g'
146
147 BF_BUILDDIR='../build/openbsd3'
148 BF_INSTALLDIR='../install/openbsd3'