Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
14fa9f28
Commit
14fa9f28
authored
Oct 10, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contribs: simplify libav/FFmpeg rules as suggested by DonDiego
parent
e608d2aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
contrib/src/ffmpeg/rules.mak
contrib/src/ffmpeg/rules.mak
+1
-13
No files found.
contrib/src/ffmpeg/rules.mak
View file @
14fa9f28
...
@@ -6,7 +6,6 @@ FFMPEG_SNAPURL := http://git.libav.org/?p=libav.git;a=snapshot;h=HEAD;sf=tgz
...
@@ -6,7 +6,6 @@ FFMPEG_SNAPURL := http://git.libav.org/?p=libav.git;a=snapshot;h=HEAD;sf=tgz
FFMPEGCONF
=
\
FFMPEGCONF
=
\
--cc
=
"
$(CC)
"
\
--cc
=
"
$(CC)
"
\
--disable-doc
\
--disable-doc
\
--disable-decoder
=
libvpx
\
--disable-decoder
=
bink
\
--disable-decoder
=
bink
\
--enable-libgsm
\
--enable-libgsm
\
--enable-libopenjpeg
\
--enable-libopenjpeg
\
...
@@ -24,7 +23,7 @@ DEPS_ffmpeg = zlib gsm openjpeg
...
@@ -24,7 +23,7 @@ DEPS_ffmpeg = zlib gsm openjpeg
# Optional dependencies
# Optional dependencies
ifdef
BUILD_ENCODERS
ifdef
BUILD_ENCODERS
FFMPEGCONF
+=
--enable-libmp3lame
--enable-libvpx
FFMPEGCONF
+=
--enable-libmp3lame
--enable-libvpx
--disable-decoder
=
libvpx
DEPS_ffmpeg
+=
lame
$(DEPS_lame)
vpx
$(DEPS_vpx)
DEPS_ffmpeg
+=
lame
$(DEPS_lame)
vpx
$(DEPS_vpx)
else
else
FFMPEGCONF
+=
--disable-encoders
--disable-muxers
FFMPEGCONF
+=
--disable-encoders
--disable-muxers
...
@@ -40,11 +39,6 @@ endif
...
@@ -40,11 +39,6 @@ endif
endif
endif
endif
endif
# XXX: REVISIT
#ifndef HAVE_FPU
#FFMPEGCONF += --disable-mpegaudio-hp
#endif
ifdef
HAVE_CROSS_COMPILE
ifdef
HAVE_CROSS_COMPILE
FFMPEGCONF
+=
--enable-cross-compile
FFMPEGCONF
+=
--enable-cross-compile
ifndef
HAVE_IOS
ifndef
HAVE_IOS
...
@@ -117,8 +111,6 @@ else
...
@@ -117,8 +111,6 @@ else
FFMPEGCONF
+=
--enable-pthreads
FFMPEGCONF
+=
--enable-pthreads
endif
endif
FFMPEG_CFLAGS
+=
--std
=
gnu99
# Build
# Build
PKGS
+=
ffmpeg
PKGS
+=
ffmpeg
...
@@ -139,14 +131,10 @@ ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.gz .sum-ffmpeg
...
@@ -139,14 +131,10 @@ ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.gz .sum-ffmpeg
rm
-Rf
$@
$@
-git
rm
-Rf
$@
$@
-git
mkdir
-p
$@
-git
mkdir
-p
$@
-git
$(ZCAT)
"
$<
"
|
(
cd
$@
-git
&&
tar
xv
--strip-components
=
1
)
$(ZCAT)
"
$<
"
|
(
cd
$@
-git
&&
tar
xv
--strip-components
=
1
)
ifdef
HAVE_WIN32
sed
-i
"s/std=c99/std=gnu99/"
$@
-
$(FFMPEG_VERSION)
/configure
endif
$(MOVE)
$(MOVE)
.ffmpeg
:
ffmpeg
.ffmpeg
:
ffmpeg
cd
$<
&&
$(HOSTVARS)
./configure
\
cd
$<
&&
$(HOSTVARS)
./configure
\
--extra-cflags
=
"
$(FFMPEG_CFLAGS)
-DHAVE_STDINT_H"
\
--extra-ldflags
=
"
$(LDFLAGS)
"
$(FFMPEGCONF)
\
--extra-ldflags
=
"
$(LDFLAGS)
"
$(FFMPEGCONF)
\
--prefix
=
"
$(PREFIX)
"
--enable-static
--disable-shared
--prefix
=
"
$(PREFIX)
"
--enable-static
--disable-shared
cd
$<
&&
$(MAKE)
install-libs install-headers
cd
$<
&&
$(MAKE)
install-libs install-headers
...
...
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