Merge branch 'bl/light'
[plumiferos.git] / source / nan_definitions.mk
blobd7baab1d052f50d227e46037314edfec759f375b
2 # $Id: nan_definitions.mk 10726 2007-05-17 01:09:52Z desoto $
4 # ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version. The Blender
10 # Foundation also sells licenses for use in proprietary software under
11 # the Blender License. See http://www.blender.org/BL/ for information
12 # about this.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software Foundation,
21 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
24 # All rights reserved.
26 # The Original Code is: all of this file.
28 # Contributor(s): none yet.
30 # ***** END GPL/BL DUAL LICENSE BLOCK *****
32 # set some defaults when these are not overruled (?=) by environment variables
35 sinclude ../user-def.mk
37 ifndef CONFIG_GUESS
38 ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
39 ifeq (all, $(findstring all, $(MAKECMDGOALS)))
40 all debug::
41 ERRTXT = "ERROR: all and debug targets cannot be used together anymore"
42 ERRTXT += "Use something like ..make all && make debug.. instead"
43 $(error $(ERRTXT))
44 endif
45 endif
47 # First generic defaults for all platforms which should be constant.
48 # Note: ?= lets these defaults be overruled by environment variables,
49 export SRCHOME ?= $(NANBLENDERHOME)/source
50 export CONFIG_GUESS := $(shell ${SRCHOME}/tools/guess/guessconfig)
51 export OS := $(shell echo ${CONFIG_GUESS} | sed -e 's/-.*//')
52 export OS_VERSION := $(shell echo ${CONFIG_GUESS} | sed -e 's/^[^-]*-//' -e 's/-[^-]*//')
53 export CPU := $(shell echo ${CONFIG_GUESS} | sed -e 's/^[^-]*-[^-]*-//')
54 export MAKE_START := $(shell date "+%H:%M:%S %d-%b-%Y")
55 export NAN_LIBDIR ?= $(NANBLENDERHOME)/../lib
56 export NAN_OBJDIR ?= $(NANBLENDERHOME)/obj
57 # Library Config_Guess DIRectory
58 export LCGDIR = $(NAN_LIBDIR)/$(CONFIG_GUESS)
59 # Object Config_Guess DIRectory
60 export OCGDIR = $(NAN_OBJDIR)/$(CONFIG_GUESS)
62 # Determines what targets are built
63 export WITH_BF_DYNAMICOPENGL ?= true
64 export WITH_BF_STATICOPENGL ?= false
65 export WITH_BF_BLENDERGAMEENGINE ?= true
66 export WITH_BF_BLENDERPLAYER ?= true
67 export WITH_BF_WEBPLUGIN ?= false
69 export NAN_MOTO ?= $(LCGDIR)/moto
70 ifeq ($(FREE_WINDOWS), true)
71 export NAN_SOLID ?= $(LCGDIR)/gcc/solid
72 export NAN_QHULL ?= $(LCGDIR)/gcc/qhull
73 else
74 export NAN_SOLID ?= $(LCGDIR)/solid
75 export NAN_QHULL ?= $(LCGDIR)/qhull
76 endif
77 export NAN_BULLET2 ?= $(LCGDIR)/bullet2
78 export NAN_SUMO ?= $(SRCHOME)/gameengine/Physics/Sumo
79 export NAN_FUZZICS ?= $(SRCHOME)/gameengine/Physics/Sumo/Fuzzics
80 export NAN_BLENKEY ?= $(LCGDIR)/blenkey
81 export NAN_DECIMATION ?= $(LCGDIR)/decimation
82 export NAN_GUARDEDALLOC ?= $(LCGDIR)/guardedalloc
83 export NAN_IKSOLVER ?= $(LCGDIR)/iksolver
84 export NAN_BSP ?= $(LCGDIR)/bsp
85 export NAN_BOOLOP ?= $(LCGDIR)/boolop
86 export NAN_SOUNDSYSTEM ?= $(LCGDIR)/SoundSystem
87 export NAN_STRING ?= $(LCGDIR)/string
88 export NAN_MEMUTIL ?= $(LCGDIR)/memutil
89 export NAN_CONTAINER ?= $(LCGDIR)/container
90 export NAN_ACTION ?= $(LCGDIR)/action
91 export NAN_GHOST ?= $(LCGDIR)/ghost
92 export NAN_TEST_VERBOSITY ?= 1
93 export NAN_BMFONT ?= $(LCGDIR)/bmfont
94 export NAN_OPENNL ?= $(LCGDIR)/opennl
95 export NAN_ELBEEM ?= $(LCGDIR)/elbeem
96 export NAN_SUPERLU ?= $(LCGDIR)/superlu
97 ifeq ($(FREE_WINDOWS), true)
98 export NAN_FTGL ?= $(LCGDIR)/gcc/ftgl
99 export NAN_FFMPEG ?= $(LCGDIR)/gcc/ffmpeg
100 export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavcodec.a
101 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include
102 else
103 export NAN_FTGL ?= $(LCGDIR)/ftgl
104 export NAN_FFMPEG ?= $(LCGDIR)/ffmpeg
105 export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavcodec.a
106 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include
107 endif
109 ifeq ($(WITH_VERSE), true)
110 export NAN_VERSE ?= $(LCGDIR)/verse
111 endif
113 export WITH_OPENEXR ?= true
116 ifeq ($(OS),windows)
117 export NAN_WINTAB ?= $(LCGDIR)/wintab
118 ifeq ($(FREE_WINDOWS), true)
119 export NAN_PTHREADS ?= $(LCGDIR)/pthreads
120 export NAN_OPENEXR ?= $(LCGDIR)/gcc/openexr
121 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
122 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
123 else
124 export NAN_OPENEXR ?= $(LCGDIR)/openexr
125 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/IlmImf.lib $(NAN_OPENEXR)/lib/Half.lib $(NAN_OPENEXR)/lib/Iex.lib
126 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/IlmImf -I$(NAN_OPENEXR)/include/Imath -I$(NAN_OPENEXR)/include/Iex
127 endif
128 else
129 ifeq ($(OS),darwin)
130 export NAN_OPENEXR ?= $(LCGDIR)/openexr
131 ifeq ($(CPU),powerpc)
132 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
133 else
134 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a $(NAN_OPENEXR)/lib/libIlmThread.a
135 endif
136 else
137 ifeq ($(OS),linux)
138 ifeq ($(WITH_OPENEXR), true)
139 NAN_OPENEXR?=$(shell pkg-config --variable=prefix OpenEXR )
140 NAN_OPENEXR_INC?=$(shell pkg-config --cflags OpenEXR )
141 NAN_OPENEXR_LIBS?=$(addprefix ${NAN_OPENEXR}/lib/lib,$(addsuffix .a,$(shell pkg-config --libs OpenEXR | sed -s "s/-l//g" )))
142 endif
143 else
144 export NAN_OPENEXR ?= /usr/local
145 export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
146 endif
147 endif
148 ifeq ($(WITH_OPENEXR), true)
149 export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
150 endif
152 endif
153 # Platform Dependent settings go below:
155 ifeq ($(NAN_USE_FFMPEG_CONFIG), true)
156 export NAN_FFMPEG ?= $(shell ffmpeg-config --prefix)
157 export NAN_FFMPEGLIBS ?= $(shell ffmpeg-config --libs avformat avcodec)
158 export NAN_FFMPEGCFLAGS ?= $(shell ffmpeg-config --cflags)
159 endif
161 ifeq ($(OS),beos)
163 export ID = $(USER)
164 export HOST = $(HOSTNAME)
165 export NAN_PYTHON ?= $(LCGDIR)/python
166 export NAN_PYTHON_VERSION ?= 2.3
167 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
168 export NAN_OPENAL ?= $(LCGDIR)/openal
169 export NAN_FMOD ?= $(LCGDIR)/fmod
170 export NAN_JPEG ?= $(LCGDIR)/jpeg
171 export NAN_PNG ?= $(LCGDIR)/png
172 export NAN_TIFF ?= $(LCGDIR)/tiff
173 export NAN_ODE ?= $(LCGDIR)/ode
174 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
175 export NAN_MESA ?= /usr/src/Mesa-3.1
176 export NAN_ZLIB ?= $(LCGDIR)/zlib
177 export NAN_NSPR ?= $(LCGDIR)/nspr
178 export NAN_FREETYPE ?= $(LCGDIR)/freetype
179 export NAN_GETTEXT ?= $(LCGDIR)/gettext
180 export NAN_SDL ?= $(shell sdl-config --prefix)
181 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
182 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
184 # Uncomment the following line to use Mozilla inplace of netscape
185 # CPPFLAGS +=-DMOZ_NOT_NET
186 # Location of MOZILLA/Netscape header files...
187 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
188 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
189 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
190 # if this is not set.
192 export NAN_BUILDINFO ?= true
193 # Be paranoid regarding library creation (do not update archives)
194 export NAN_PARANOID ?= true
196 # l10n
197 #export INTERNATIONAL ?= true
199 # enable freetype2 support for text objects
200 #export WITH_FREETYPE2 ?= true
202 else
203 ifeq ($(OS),darwin)
205 export ID = $(shell whoami)
206 export HOST = $(shell hostname -s)
208 export PY_FRAMEWORK = 1
210 ifdef PY_FRAMEWORK
211 export NAN_PYTHON ?= /System/Library/Frameworks/Python.framework/Versions/2.3
212 export NAN_PYTHON_VERSION ?= 2.3
213 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
214 else
215 export NAN_PYTHON ?= /sw
216 export NAN_PYTHON_VERSION ?= 2.3
217 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
218 endif
220 export NAN_OPENAL ?= $(LCGDIR)/openal
221 export NAN_FMOD ?= $(LCGDIR)/fmod
222 export NAN_JPEG ?= $(LCGDIR)/jpeg
223 export NAN_PNG ?= $(LCGDIR)/png
224 export NAN_TIFF ?= $(LCGDIR)/tiff
225 export NAN_ODE ?= $(LCGDIR)/ode
226 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
227 export NAN_MESA ?= /usr/src/Mesa-3.1
228 export NAN_ZLIB ?= $(LCGDIR)/zlib
229 export NAN_NSPR ?= $(LCGDIR)/nspr
230 export NAN_FREETYPE ?= $(LCGDIR)/freetype
231 export NAN_GETTEXT ?= $(LCGDIR)/gettext
232 export NAN_SDL ?= $(LCGDIR)/sdl
233 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include
234 export NAN_SDLLIBS ?= $(NAN_SDL)/lib/libSDL.a -framework Cocoa -framework IOKit
236 # export NAN_NO_KETSJI=true
238 ifeq ($(CPU), i386)
239 export NAN_NO_OPENAL=true
240 endif
242 # Uncomment the following line to use Mozilla inplace of netscape
243 # CPPFLAGS +=-DMOZ_NOT_NET
244 # Location of MOZILLA/Netscape header files...
245 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
246 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
247 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
248 # if this is not set.
250 export NAN_BUILDINFO ?= true
251 # Be paranoid regarding library creation (do not update archives)
252 export NAN_PARANOID ?= true
254 # enable quicktime by default on OS X
255 export WITH_QUICKTIME ?= true
257 # enable l10n
258 export INTERNATIONAL ?= true
260 # enable freetype2 support for text objects
261 export WITH_FREETYPE2 ?= true
263 else
264 ifeq ($(OS),freebsd)
266 export ID = $(shell whoami)
267 export HOST = $(shell hostname -s)
268 export FREEDESKTOP ?= true
270 export NAN_PYTHON ?= /usr/local
271 export NAN_PYTHON_VERSION ?= 2.3
272 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
273 export NAN_OPENAL ?= /usr/local
274 export NAN_FMOD ?= $(LCGDIR)/fmod
275 export NAN_JPEG ?= /usr/local
276 export NAN_PNG ?= /usr/local
277 export NAN_TIFF ?= /usr/local
278 export NAN_ODE ?= $(LCGDIR)/ode
279 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
280 export NAN_MESA ?= /usr/src/Mesa-3.1
281 export NAN_ZLIB ?= /usr
282 export NAN_NSPR ?= /usr/local
283 export NAN_FREETYPE ?= $(LCGDIR)/freetype
284 export NAN_GETTEXT ?= $(LCGDIR)/gettext
285 export NAN_SDL ?= $(shell sdl11-config --prefix)
286 export NAN_SDLLIBS ?= $(shell sdl11-config --libs)
287 export NAN_SDLCFLAGS ?= $(shell sdl11-config --cflags)
289 # Uncomment the following line to use Mozilla inplace of netscape
290 # CPPFLAGS +=-DMOZ_NOT_NET
291 # Location of MOZILLA/Netscape header files...
292 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
293 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
294 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
295 # if this is not set.
297 export NAN_BUILDINFO ?= true
298 # Be paranoid regarding library creation (do not update archives)
299 export NAN_PARANOID ?= true
301 # enable l10n
302 # export INTERNATIONAL ?= true
304 # enable freetype2 support for text objects
305 # export WITH_FREETYPE2 ?= true
307 else
308 ifeq ($(OS),irix)
310 export ID = $(shell whoami)
311 export HOST = $(shell /usr/bsd/hostname -s)
312 #export NAN_NO_KETSJI=true
313 export NAN_JUST_BLENDERDYNAMIC=true
314 export NAN_PYTHON ?= $(LCGDIR)/python
315 export NAN_PYTHON_VERSION ?= 2.3
316 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
317 export NAN_OPENAL ?= $(LCGDIR)/openal
318 export NAN_FMOD ?= $(LCGDIR)/fmod
319 export NAN_JPEG ?= $(LCGDIR)/jpeg
320 export NAN_PNG ?= $(LCGDIR)/png
321 export NAN_TIFF ?= /usr/freeware
322 export NAN_ODE ?= $(LCGDIR)/ode
323 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
324 export NAN_MESA ?= /usr/src/Mesa-3.1
325 export NAN_ZLIB ?= /usr/freeware
326 export NAN_NSPR ?= $(LCGDIR)/nspr
327 export NAN_FREETYPE ?= /usr/freeware
328 export NAN_GETTEXT ?= /usr/freeware
329 export NAN_SDL ?= $(LCGDIR)/sdl
330 export NAN_SDLLIBS ?= -L$(NAN_SDL)/lib -lSDL
331 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include/SDL
333 # Uncomment the following line to use Mozilla inplace of netscape
334 # CPPFLAGS +=-DMOZ_NOT_NET
335 # Location of MOZILLA/Netscape header files...
336 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
337 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
338 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
339 # if this is not set.
341 export NAN_BUILDINFO ?= true
342 # Be paranoid regarding library creation (do not update archives)
343 export NAN_PARANOID ?= true
345 # enable l10n
346 export INTERNATIONAL ?= true
348 # enable freetype2 support for text objects
349 export WITH_FREETYPE2 ?= true
351 else
352 ifeq ($(OS),linux)
354 export ID = $(shell whoami)
355 export HOST = $(shell hostname -s)
356 export FREEDESKTOP ?= true
358 export NAN_PYTHON ?= /usr
359 ifeq ($(CPU),ia64)
360 export NAN_PYTHON_VERSION ?= 2.2
361 else
362 export NAN_PYTHON_VERSION ?= 2.3
363 endif
364 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
365 export NAN_OPENAL ?= /usr
366 export NAN_FMOD ?= $(LCGDIR)/fmod
367 export NAN_JPEG ?= /usr
368 export NAN_PNG ?= /usr
369 export NAN_TIFF ?= /usr
370 export NAN_ODE ?= $(LCGDIR)/ode
371 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
372 export NAN_MESA ?= /usr
373 export NAN_ZLIB ?= /usr
374 export NAN_NSPR ?= $(LCGDIR)/nspr
375 export NAN_FREETYPE ?= /usr
376 export NAN_GETTEXT ?= /usr
377 export NAN_SDL ?= $(shell sdl-config --prefix)
378 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
379 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
381 ifneq ($(NAN_USE_FFMPEG_CONFIG), true)
382 export NAN_FFMPEG ?= /usr
383 export NAN_FFMPEGLIBS ?= -L$(NAN_FFMPEG)/lib -lavformat -lavcodec -lavutil -ldts -lz
384 export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include
385 endif
387 # Uncomment the following line to use Mozilla inplace of netscape
388 export CPPFLAGS += -DMOZ_NOT_NET
389 # Location of MOZILLA/Netscape header files...
390 export NAN_MOZILLA_INC ?= /usr/include/mozilla
391 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
392 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
393 # if this is not set.
395 export NAN_BUILDINFO ?= true
396 # Be paranoid regarding library creation (do not update archives)
397 export NAN_PARANOID ?= true
399 # l10n
400 export INTERNATIONAL ?= true
402 # enable freetype2 support for text objects
403 export WITH_FREETYPE2 ?= true
405 # enable ffmpeg support
406 ifndef NAN_NO_FFMPEG
407 export WITH_FFMPEG ?= true
408 endif
410 else
411 ifeq ($(OS),openbsd)
413 export ID = $(shell whoami)
414 export HOST = $(shell hostname -s)
415 export FREEDESKTOP ?= true
417 export NAN_PYTHON ?= $(LCGDIR)/python
418 export NAN_PYTHON_VERSION ?= 2.3
419 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
420 export NAN_OPENAL ?= $(LCGDIR)/openal
421 export NAN_FMOD ?= $(LCGDIR)/fmod
422 export NAN_JPEG ?= $(LCGDIR)/jpeg
423 export NAN_PNG ?= $(LCGDIR)/png
424 export NAN_TIFF ?= $(LCGDIR)/tiff
425 export NAN_ODE ?= $(LCGDIR)/ode
426 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
427 export NAN_MESA ?= /usr/src/Mesa-3.1
428 export NAN_ZLIB ?= $(LCGDIR)/zlib
429 export NAN_NSPR ?= $(LCGDIR)/nspr
430 export NAN_FREETYPE ?= $(LCGDIR)/freetype
431 export NAN_GETTEXT ?= $(LCGDIR)/gettext
432 export NAN_SDL ?= $(shell sdl-config --prefix)
433 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
434 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
436 # Uncomment the following line to use Mozilla inplace of netscape
437 # CPPFLAGS +=-DMOZ_NOT_NET
438 # Location of MOZILLA/Netscape header files...
439 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
440 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
441 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
442 # if this is not set.
444 export NAN_BUILDINFO ?= true
445 # Be paranoid regarding library creation (do not update archives)
446 export NAN_PARANOID ?= true
448 # l10n
449 #export INTERNATIONAL ?= true
451 # enable freetype2 support for text objects
452 #export WITH_FREETYPE2 ?= true
454 else
455 ifeq ($(OS),solaris)
457 export ID = $(shell /usr/ucb/whoami)
458 export HOST = $(shell hostname)
459 export NAN_PYTHON ?= /usr/local
460 export NAN_PYTHON_VERSION ?= 2.3
461 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
462 export NAN_OPENAL ?= /usr/local
463 export NAN_FMOD ?= $(LCGDIR)/fmod
464 export NAN_JPEG ?= /usr/local
465 export NAN_PNG ?= /usr/local
466 export NAN_TIFF ?= /usr
467 export NAN_ODE ?= $(LCGDIR)/ode
468 export NAN_TERRAPLAY ?=
469 export NAN_MESA ?= /usr/src/Mesa-3.1
470 export NAN_ZLIB ?= /usr
471 export NAN_NSPR ?= $(LCGDIR)/nspr
472 export NAN_FREETYPE ?= $(LCGDIR)/freetype
473 export NAN_GETTEXT ?= $(LCGDIR)/gettext
474 export NAN_SDL ?= $(shell sdl-config --prefix)
475 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
476 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
478 # Uncomment the following line to use Mozilla inplace of netscape
479 # CPPFLAGS +=-DMOZ_NOT_NET
480 # Location of MOZILLA/Netscape header files...
481 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
482 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
483 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
484 # if this is not set.
486 export NAN_BUILDINFO ?= true
487 # Be paranoid regarding library creation (do not update archives)
488 export NAN_PARANOID ?= true
490 # l10n
491 #export INTERNATIONAL ?= true
493 # enable freetype2 support for text objects
494 #export WITH_FREETYPE2 ?= true
496 else
497 ifeq ($(OS),windows)
499 export ID = $(LOGNAME)
500 export NAN_PYTHON ?= $(LCGDIR)/python
501 export NAN_ICONV ?= $(LCGDIR)/iconv
502 export NAN_PYTHON_VERSION ?= 2.5
503 ifeq ($(FREE_WINDOWS), true)
504 export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
505 export NAN_FREETYPE ?= $(LCGDIR)/gcc/freetype
506 export NAN_ODE ?= $(LCGDIR)/gcc/ode
507 ifeq ($(NAN_SDL),)
508 export NAN_SDL ?= $(LCGDIR)/gcc/sdl
509 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include
510 endif
511 else
512 export NAN_PYTHON_BINARY ?= python
513 export NAN_FREETYPE ?= $(LCGDIR)/freetype
514 export NAN_ODE ?= $(LCGDIR)/ode
515 ifeq ($(NAN_SDL),)
516 export NAN_SDL ?= $(LCGDIR)/sdl
517 export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include
518 endif
519 endif
520 export NAN_OPENAL ?= $(LCGDIR)/openal
521 export NAN_FMOD ?= $(LCGDIR)/fmod
522 export NAN_JPEG ?= $(LCGDIR)/jpeg
523 export NAN_PNG ?= $(LCGDIR)/png
524 export NAN_TIFF ?= $(LCGDIR)/tiff
525 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
526 export NAN_MESA ?= /usr/src/Mesa-3.1
527 export NAN_ZLIB ?= $(LCGDIR)/zlib
528 export NAN_NSPR ?= $(LCGDIR)/nspr
529 export NAN_GETTEXT ?= $(LCGDIR)/gettext
531 # Uncomment the following line to use Mozilla inplace of netscape
532 # CPPFLAGS +=-DMOZ_NOT_NET
533 # Location of MOZILLA/Netscape header files...
534 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
535 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
536 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
537 # if this is not set.
538 export NAN_PYTHON_BINARY ?= python
539 export NAN_BUILDINFO ?= true
540 # Be paranoid regarding library creation (do not update archives)
541 export NAN_PARANOID ?= true
543 # l10n
544 export INTERNATIONAL ?= true
546 # enable freetype2 support for text objects
547 export WITH_FREETYPE2 ?= true
549 # enable quicktime support
550 # export WITH_QUICKTIME ?= true
552 else # Platform not listed above
554 export NAN_PYTHON ?= $(LCGDIR)/python
555 export NAN_PYTHON_VERSION ?= 2.3
556 export NAN_PYTHON_BINARY ?= python
557 export NAN_OPENAL ?= $(LCGDIR)/openal
558 export NAN_FMOD ?= $(LCGDIR)/fmod
559 export NAN_JPEG ?= $(LCGDIR)/jpeg
560 export NAN_PNG ?= $(LCGDIR)/png
561 export NAN_TIFF ?= $(LCGDIR)/tiff
562 export NAN_SDL ?= $(LCGDIR)/sdl
563 export NAN_ODE ?= $(LCGDIR)/ode
564 export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
565 export NAN_MESA ?= /usr/src/Mesa-3.1
566 export NAN_ZLIB ?= $(LCGDIR)/zlib
567 export NAN_NSPR ?= $(LCGDIR)/nspr
568 export NAN_FREETYPE ?= $(LCGDIR)/freetype
569 export NAN_GETTEXT ?= $(LCGDIR)/gettext
570 export NAN_SDL ?= $(shell sdl-config --prefix)
571 export NAN_SDLLIBS ?= $(shell sdl-config --libs)
572 export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
574 # Uncomment the following line to use Mozilla inplace of netscape
575 # CPPFLAGS +=-DMOZ_NOT_NET
576 # Location of MOZILLA/Netscape header files...
577 export NAN_MOZILLA_INC ?= $(LCGDIR)/mozilla/include
578 export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
579 # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
580 # if this is not set.
582 export NAN_BUILDINFO ?= true
583 # Be paranoid regarding library creation (do not update archives)
584 export NAN_PARANOID ?= true
586 # l10n
587 #export INTERNATIONAL ?= true
589 # enable freetype2 support for text objects
590 #export WITH_FREETYPE2 ?= true
592 endif
594 endif
595 endif
596 endif
597 endif
598 endif
599 endif
600 endif
601 endif
603 # Don't want to build the gameengine?
604 ifeq ($(NAN_NO_KETSJI), true)
605 export NAN_JUST_BLENDERDYNAMIC=true
606 export NAN_NO_OPENAL=true
607 endif