Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2006-02-06 04:49:33 +0300
committerChris Want <cwant@ualberta.ca>2006-02-06 04:49:33 +0300
commitcd4a6b669b3071c5b0f2b6d81843a5b21dffc106 (patch)
treef95b34bfab4c3150d0b9941db5e1ecd59831cc95 /source/nan_definitions.mk
parentf4d5d9080d42573d04e178c73fae80a7a33378fd (diff)
To aid linking, I added NAN_USE_FFMPEG_CONFIG (true/false).
If "export NAN_USE_FFMPEG_CONFIG=true" is added to user-def.mk, the system executes the ffmeg-config program to set values for NAN_FFMPEG (--prefix), NAN_FFMPEGLIBS (--libs avcodec avformat), and NAN_FFMPEGCFLAGS (--cflags). Only one used so far is the NAN_FFMPEGLIBS for linking on linux (if requested to do so). Current default is not to do this.
Diffstat (limited to 'source/nan_definitions.mk')
-rw-r--r--source/nan_definitions.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/nan_definitions.mk b/source/nan_definitions.mk
index 88b44f1bb9a..b8832cbb823 100644
--- a/source/nan_definitions.mk
+++ b/source/nan_definitions.mk
@@ -111,6 +111,12 @@ endif
endif
# Platform Dependent settings go below:
+ ifeq ($(NAN_USE_FFMPEG_CONFIG), true)
+ export NAN_FFMPEG ?= $(shell ffmpeg-config --prefix)
+ export NAN_FFMPEGLIBS ?= $(shell ffmpeg-config --libs avformat avcodec)
+ export NAN_FFMPEGCFLAGS ?= $(shell ffmpeg-config --cflags)
+ endif
+
ifeq ($(OS),beos)
export ID = $(USER)