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
e0f62b6a
Commit
e0f62b6a
authored
Jul 07, 2013
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: add custom build for x262
parent
21d5c53b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
contrib/src/x264/rules.mak
contrib/src/x264/rules.mak
+35
-0
No files found.
contrib/src/x264/rules.mak
View file @
e0f62b6a
...
...
@@ -2,6 +2,7 @@
X264_GITURL
:=
git://git.videolan.org/x264.git
X264_SNAPURL
:=
http://git.videolan.org/?p
=
x264.git
;
a
=
snapshot
;
h
=
HEAD
;
sf
=
tgz
X262_GITURL
:=
https://github.com/kierank/x262.git
ifdef
BUILD_ENCODERS
ifdef
GPL
...
...
@@ -17,6 +18,11 @@ ifeq ($(call need_pkg,"x26410b"),)
PKGS_FOUND
+=
x26410b
endif
ifeq
($(call need_pkg,"x262"),)
PKGS_FOUND
+=
x262
endif
X264CONF
=
--prefix
=
"
$(PREFIX)
"
--host
=
"
$(HOST)
"
\
--enable-static
\
--disable-avs
\
...
...
@@ -32,6 +38,12 @@ ifdef HAVE_CROSS_COMPILE
X264CONF
+=
--cross-prefix
=
"
$(HOST)
-"
endif
$(TARBALLS)/x262-git.tar.xz
:
$(
call
download_git,
$(X262_GITURL)
)
$(TARBALLS)/x262-git.tar.gz
:
$(
call
download,
$(X262_SNAPURL)
)
$(TARBALLS)/x26410b-git.tar.xz
:
$(
call
download_git,
$(X264_GITURL)
)
...
...
@@ -44,6 +56,10 @@ $(TARBALLS)/x264-git.tar.xz:
$(TARBALLS)/x264-git.tar.gz
:
$(
call
download,
$(X264_SNAPURL)
)
.sum-x262
:
x262-git.tar.gz
$(
warning
$@
not implemented
)
touch
$@
.sum-x26410b
:
x26410b-git.tar.gz
$(
warning
$@
not implemented
)
touch
$@
...
...
@@ -66,6 +82,14 @@ x26410b: x26410b-git.tar.gz .sum-x26410b
$(UPDATE_AUTOCONFIG)
$(MOVE)
x262
:
x262-git.tar.gz .sum-x26410b
rm
-Rf
$@
-git
mkdir
-p
$@
-git
$(ZCAT)
"
$<
"
|
(
cd
$@
-git
&&
tar
xv
--strip-components
=
1
)
$(UPDATE_AUTOCONFIG)
$(MOVE)
.x264
:
x264
cd
$<
&&
$(HOSTVARS)
./configure
$(X264CONF)
cd
$<
&&
$(MAKE)
install
...
...
@@ -79,3 +103,14 @@ x26410b: x26410b-git.tar.gz .sum-x26410b
cd
$<
&&
sed
-i
-e
's/x264.pc/x26410b.pc/g'
Makefile
cd
$<
&&
$(MAKE)
install
touch
$@
.x262
:
x262
cd
$<
&&
sed
-i
-e
's/x264/x262/g'
configure
cd
$<
&&
sed
-i
-e
's/x264_config/x262_config/g'
*
.h Makefile
*
.c
cd
$<
&&
$(HOSTVARS)
./configure
$(X264CONF)
cd
$<
&&
sed
-i
-e
's/x264.pc/x262.pc/g'
Makefile
cd
$<
&&
sed
-i
-e
's/x264.h/x262.h/g'
Makefile
cd
$<
&&
$(MAKE)
cd
$<
&&
cp
x264.h x262.h
cd
$<
&&
$(MAKE)
install
touch
$@
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