Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
ffmpeg2theora
Commits
a580617d
Commit
a580617d
authored
Mar 08, 2009
by
Jan Gerber
Browse files
fix SConstruct to work with scons 1.2.0
parent
28615d5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
SConstruct
View file @
a580617d
...
...
@@ -66,6 +66,13 @@ if env['debug'] and env['CC'] == 'gcc':
if
GetOption
(
"help"
):
Return
()
def
ParsePKGConfig
(
env
,
name
):
if
os
.
environ
.
get
(
'PKG_CONFIG_PATH'
,
''
):
action
=
'PKG_CONFIG_PATH=%s pkg-config %s "%s"'
%
(
os
.
environ
[
'PKG_CONFIG_PATH'
],
pkg_flags
,
name
)
else
:
action
=
'pkg-config %s "%s"'
%
(
pkg_flags
,
name
)
return
env
.
ParseConfig
(
action
)
def
TryAction
(
action
):
import
os
ret
=
os
.
system
(
action
)
...
...
@@ -104,7 +111,7 @@ XIPH_LIBS="ogg >= 1.1 vorbis vorbisenc theora >= 1.0beta1"
if
not
conf
.
CheckPKG
(
XIPH_LIBS
):
print
'some xiph libs are missing, ffmpeg2theora depends on %s'
%
XIPH_LIBS
Exit
(
1
)
env
.
ParseConfig
(
'pkg-config %s "%s"'
%
(
pkg_flags
,
XIPH_LIBS
)
)
Parse
PKG
Config
(
env
,
XIPH_LIBS
)
FFMPEG_LIBS
=
"libavcodec libavformat libavdevice libpostproc libswscale"
if
os
.
path
.
exists
(
"./ffmpeg"
):
...
...
@@ -119,7 +126,7 @@ if not conf.CheckPKG(FFMPEG_LIBS):
"""
%
(
FFMPEG_LIBS
,
" "
.
join
([
"%s-dev"
%
l
for
l
in
FFMPEG_LIBS
.
split
()]))
Exit
(
1
)
for
lib
in
FFMPEG_LIBS
.
split
():
env
.
ParseConfig
(
'pkg-config %s "%s"'
%
(
pkg_flags
,
lib
)
)
Parse
PKG
Config
(
env
,
lib
)
if
conf
.
CheckCHeader
(
'libavformat/framehook.h'
):
env
.
Append
(
CCFLAGS
=
[
...
...
@@ -132,7 +139,7 @@ if os.path.exists("./libkate/misc/pkgconfig"):
if
os
.
path
.
exists
(
"./libkate/pkg/pkgconfig"
):
os
.
environ
[
'PKG_CONFIG_PATH'
]
=
"./libkate/pkg/pkgconfig:"
+
os
.
environ
.
get
(
'PKG_CONFIG_PATH'
,
''
)
if
conf
.
CheckPKG
(
KATE_LIBS
):
env
.
ParseConfig
(
'pkg-config %s "%s"'
%
(
pkg_flags
,
KATE_LIBS
)
)
Parse
PKG
Config
(
env
,
KATE_LIBS
)
env
.
Append
(
CCFLAGS
=
[
'-DHAVE_KATE'
,
'-DHAVE_OGGKATE'
])
else
:
print
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment