~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/nan_definitions.mk

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-09-20 01:57:27 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060920015727-gmoqlxwstx9wwqs3
Tags: 2.42a-1ubuntu1
* Merge from Debian unstable (Closes: Malone #55903). Remaining changes:
  - debian/genpot: Add python scripts from Lee June <blender@eyou.com> to
    generate a reasonable PO template from the sources. Since gettext is used
    in a highly nonstandard way, xgettext does not work for this job.
  - debian/rules: Call the scripts, generate po/blender.pot, and clean it up
    in the clean target.
  - Add a proper header to the generated PO template.
* debian/control: Build depend on libavformat-dev >= 3:0.cvs20060823-3.1,
  otherwise this package will FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# $Id: nan_definitions.mk,v 1.85 2006/01/16 22:27:29 lukep Exp $
 
2
# $Id: nan_definitions.mk,v 1.97 2006/07/10 16:01:47 ton Exp $
3
3
#
4
4
# ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
#
89
89
    export NAN_SUPERLU ?= $(LCGDIR)/superlu
90
90
    ifeq ($(FREE_WINDOWS), true)
91
91
      export NAN_FTGL ?= $(LCGDIR)/gcc/ftgl
 
92
      export NAN_FFMPEG ?= $(LCGDIR)/gcc/ffmpeg
 
93
      export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavcodec.a
 
94
      export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include
92
95
    else
93
96
      export NAN_FTGL ?= $(LCGDIR)/ftgl
94
 
    endif
95
 
 
 
97
      export NAN_FFMPEG ?= $(LCGDIR)/ffmpeg
 
98
      export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavcodec.a
 
99
      export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include
 
100
    endif
 
101
 
 
102
    export WITH_OPENEXR ?= true
 
103
    ifeq ($(OS),windows)
 
104
      ifeq ($(FREE_WINDOWS), true)
 
105
        export NAN_PTHREADS ?= $(LCGDIR)/pthreads
 
106
        export NAN_OPENEXR ?= $(LCGDIR)/gcc/openexr
 
107
        export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
 
108
        export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
 
109
      else
 
110
        export NAN_OPENEXR ?= $(LCGDIR)/openexr
 
111
        export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/IlmImf.lib $(NAN_OPENEXR)/lib/Half.lib $(NAN_OPENEXR)/lib/Iex.lib
 
112
        export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/IlmImf -I$(NAN_OPENEXR)/include/Imath -I$(NAN_OPENEXR)/include/Iex
 
113
      endif
 
114
    else
 
115
      ifeq ($(OS),darwin)
 
116
          export NAN_OPENEXR ?= $(LCGDIR)/openexr
 
117
          ifeq ($(CPU),powerpc)
 
118
              export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
 
119
          else
 
120
              export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a $(NAN_OPENEXR)/lib/libIlmThread.a
 
121
          endif
 
122
      else
 
123
          export NAN_OPENEXR ?= /usr/local
 
124
          export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
 
125
      endif
 
126
      export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
 
127
 
 
128
    endif
96
129
  # Platform Dependent settings go below:
97
130
 
 
131
  ifeq ($(NAN_USE_FFMPEG_CONFIG), true)
 
132
    export NAN_FFMPEG ?= $(shell ffmpeg-config --prefix)
 
133
    export NAN_FFMPEGLIBS ?= $(shell ffmpeg-config --libs avformat avcodec)
 
134
    export NAN_FFMPEGCFLAGS ?= $(shell ffmpeg-config --cflags)
 
135
  endif
 
136
 
98
137
  ifeq ($(OS),beos)
99
138
 
100
139
    export ID = $(USER)
170
209
    export NAN_SDLCFLAGS ?= -I$(NAN_SDL)/include
171
210
    export NAN_SDLLIBS ?= $(NAN_SDL)/lib/libSDL.a -framework Cocoa -framework IOKit
172
211
 
173
 
    export NAN_NO_KETSJI=false
174
 
 
175
 
 
 
212
    # export NAN_NO_KETSJI=true
 
213
 
 
214
    ifeq ($(CPU), i386)
 
215
            export NAN_NO_OPENAL=true
 
216
    endif
 
217
        
176
218
    # Uncomment the following line to use Mozilla inplace of netscape
177
219
    # CPPFLAGS +=-DMOZ_NOT_NET
178
220
    # Location of MOZILLA/Netscape header files...
308
350
    export NAN_SDLLIBS ?= $(shell sdl-config --libs)
309
351
    export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
310
352
 
 
353
ifneq ($(NAN_USE_FFMPEG_CONFIG), true)
 
354
    export NAN_FFMPEG ?= /usr
 
355
    export NAN_FFMPEGLIBS ?= -L$(NAN_FFMPEG)/lib -lavformat -lavcodec -lavutil -ldts -lz
 
356
    export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include
 
357
endif
 
358
 
311
359
    # Uncomment the following line to use Mozilla inplace of netscape
312
360
    export CPPFLAGS += -DMOZ_NOT_NET
313
361
    # Location of MOZILLA/Netscape header files...
326
374
    # enable freetype2 support for text objects
327
375
    export WITH_FREETYPE2 ?= true
328
376
 
329
 
 
 
377
    # enable ffmpeg support
 
378
    ifndef NAN_NO_FFMPEG
 
379
          export WITH_FFMPEG ?= true
 
380
    endif
330
381
  else
331
382
  ifeq ($(OS),openbsd)
332
383
 
463
514
 
464
515
    # enable freetype2 support for text objects
465
516
    export WITH_FREETYPE2 ?= true
466
 
    
 
517
 
467
518
    # enable quicktime support
468
519
    # export WITH_QUICKTIME ?= true
469
520