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