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