1 LCGDIR
= '#../lib/darwin-6.1-powerpc'
4 # enable ffmpeg support
5 WITH_BF_FFMPEG
= 'true' # -DWITH_FFMPEG
6 BF_FFMPEG
= LIBDIR
+'/ffmpeg'
7 BF_FFMPEG_INC
= '${BF_FFMPEG}/include'
8 BF_FFMPEG_LIBPATH
='${BF_FFMPEG}/lib'
9 BF_FFMPEG_LIB
= 'avformat.a avcodec.a avutil.a'
11 WITH_BF_VERSE
= 'false'
12 BF_VERSE
= "#extern/verse/dist"
13 BF_VERSE_LIBPATH
= "${BF_BUILDDIR}/extern/verse/dist"
14 BF_VERSE_INCLUDE
= BF_VERSE
15 BF_VERSE_LIBS
= "libverse"
17 # python.org libs install in /library
18 BF_PYTHON_VERSION
= '2.3'
19 if BF_PYTHON_VERSION
=='2.3':
20 BF_PYTHON
= '/System/Library/Frameworks/Python.framework/Versions/'
22 BF_PYTHON
= '/Library/Frameworks/Python.framework/Versions/'
24 BF_PYTHON_INC
= '${BF_PYTHON}${BF_PYTHON_VERSION}/include/python${BF_PYTHON_VERSION}'
25 BF_PYTHON_BINARY
= '${BF_PYTHON}${BF_PYTHON_VERSION}/bin/python${BF_PYTHON_VERSION}'
27 BF_PYTHON_LIBPATH
= '${BF_PYTHON}${BF_PYTHON_VERSION}/lib/python${BF_PYTHON_VERSION}/config'
28 BF_PYTHON_LINKFLAGS
= '-u __dummy -u _PyMac_Error -framework System -framework Python'
30 WITH_BF_OPENAL
= 'true'
31 #different lib must be used following version of gcc
33 #BF_OPENAL = LIBDIR + '/openal'
35 BF_OPENAL
= '#../lib/darwin-8.0.0-powerpc/openal'
37 BF_OPENAL_INC
= '${BF_OPENAL}/include'
38 BF_OPENAL_LIB
= 'openal'
39 BF_OPENAL_LIBPATH
= '${BF_OPENAL}/lib'
42 BF_SDL
= LIBDIR
+ '/sdl' #$(shell sdl-config --prefix)
43 BF_SDL_INC
= '${BF_SDL}/include' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
44 BF_SDL_LIB
= 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
45 BF_SDL_LIBPATH
= '${BF_SDL}/lib'
47 WITH_BF_FMOD
= 'false'
48 BF_FMOD
= LIBDIR
+ '/fmod'
50 WITH_BF_OPENEXR
= 'true'
51 BF_OPENEXR
= '/usr/local'
52 BF_OPENEXR_INC
= '${BF_OPENEXR}/include/OpenEXR'
53 BF_OPENEXR_LIB
= ' Iex Half IlmImf Imath IlmThread'
57 BF_JPEG
= LIBDIR
+ '/jpeg'
58 BF_JPEG_INC
= '${BF_JPEG}/include'
60 BF_JPEG_LIBPATH
= '${BF_JPEG}/lib'
63 BF_PNG
= LIBDIR
+ '/png'
64 BF_PNG_INC
= '${BF_PNG}/include'
66 BF_PNG_LIBPATH
= '${BF_PNG}/lib'
68 BF_TIFF
= LIBDIR
+ '/tiff'
69 BF_TIFF_INC
= '${BF_TIFF}/include'
73 BF_ZLIB_INC
= '${BF_ZLIB}/include'
76 WITH_BF_INTERNATIONAL
= 'true'
78 BF_GETTEXT
= LIBDIR
+ '/gettext'
79 BF_GETTEXT_INC
= '${BF_GETTEXT}/include'
80 BF_GETTEXT_LIB
= 'intl'
81 BF_GETTEXT_LIBPATH
= '${BF_GETTEXT}/lib'
84 BF_FTGL
= '#extern/bFTGL'
85 BF_FTGL_INC
= '${BF_FTGL}/include'
86 BF_FTGL_LIB
= 'extern_ftgl'
88 WITH_BF_GAMEENGINE
='true'
92 BF_ODE
= LIBDIR
+ '/ode'
93 BF_ODE_INC
= '${BF_ODE}/include'
94 BF_ODE_LIB
= '${BF_ODE}/lib/libode.a'
96 WITH_BF_BULLET
= 'true'
97 BF_BULLET
= '#extern/bullet2/src'
98 BF_BULLET_INC
= '${BF_BULLET}'
99 BF_BULLET_LIB
= 'extern_bullet'
101 BF_SOLID
= '#extern/solid'
102 BF_SOLID_INC
= '${BF_SOLID}'
103 BF_SOLID_LIB
= 'extern_solid'
105 WITH_BF_YAFRAY
= 'true'
107 #WITH_BF_NSPR = 'true'
108 #BF_NSPR = $(LIBDIR)/nspr
109 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
112 # Uncomment the following line to use Mozilla inplace of netscape
113 #CPPFLAGS += -DMOZ_NOT_NET
114 # Location of MOZILLA/Netscape header files...
115 #BF_MOZILLA = $(LIBDIR)/mozilla
116 #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
118 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
119 # if this is not set.
121 # Be paranoid regarding library creation (do not update archives)
122 #BF_PARANOID = 'true'
124 # enable freetype2 support for text objects
125 BF_FREETYPE
= LIBDIR
+ '/freetype'
126 BF_FREETYPE_INC
= '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
127 BF_FREETYPE_LIB
= 'freetype'
128 BF_FREETYPE_LIBPATH
= '${BF_FREETYPE}/lib'
130 WITH_BF_QUICKTIME
= 'true' # -DWITH_QUICKTIME
132 WITH_BF_ICONV
= 'false'
133 BF_ICONV
= LIBDIR
+ "/iconv"
134 BF_ICONV_INC
= '${BF_ICONV}/include'
135 BF_ICONV_LIB
= 'iconv'
136 BF_ICONV_LIBPATH
= '${BF_ICONV}/lib'
138 # Mesa Libs should go here if your using them as well....
139 WITH_BF_STATICOPENGL
= 'true'
140 BF_OPENGL_LIB
= 'GL GLU'
141 BF_OPENGL_LIBPATH
= '/System/Library/Frameworks/OpenGL.framework/Libraries'
142 BF_OPENGL_LINKFLAGS
= '-framework OpenGL'
148 ## CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
150 CFLAGS
= ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
152 CPPFLAGS
= ['-fpascal-strings']
153 CCFLAGS
= ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing', '-fpascal-strings']
154 CXXFLAGS
= ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing', '-fpascal-strings']
155 PLATFORM_LINKFLAGS
= '-fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Carbon -framework AGL -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuickTime'
157 REL_CCFLAGS
= ['-O2']
166 C_WARN
= ' -Wall -Wno-long-double -Wdeclaration-after-statement '
168 CC_WARN
= ' -Wall -Wno-long-double'
170 ##FIX_STUBS_WARNINGS = -Wno-unused
172 LLIBS
= 'stdc++ SystemStubs'
174 ##DYNLDFLAGS = -shared $(LDFLAGS)
176 BF_PROFILE_FLAGS
= ' -pg -g '
180 BF_DEBUG_FLAGS
= '-g'
182 BF_BUILDDIR
='../build/darwin'
183 BF_INSTALLDIR
='../install/darwin'