Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
18faa622
Commit
18faa622
authored
Feb 24, 2012
by
Konstantin Pavlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contribs: add separate libpostproc.
parent
59c0cf6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
0 deletions
+93
-0
contrib/src/postproc/rules.mak
contrib/src/postproc/rules.mak
+93
-0
No files found.
contrib/src/postproc/rules.mak
0 → 100644
View file @
18faa622
# POSTPROC
POSTPROC_SNAPURL
:=
http://git.videolan.org/?p
=
libpostproc.git
;
a
=
snapshot
;
h
=
HEAD
;
sf
=
tgz
POSTPROCCONF
=
\
--cc
=
"
$(CC)
"
\
--disable-debug
\
--enable-gpl
\
--enable-postproc
DEPS_postproc
=
ffmpeg
ifdef
ENABLE_SMALL
POSTPROCCONF
+=
--enable-small
--optflags
=
-O2
endif
ifdef
HAVE_CROSS_COMPILE
POSTPROCCONF
+=
--enable-cross-compile
--cross-prefix
=
$(HOST)
-
endif
# ARM stuff
ifeq
($(ARCH),arm)
POSTPROCCONF
+=
--disable-runtime-cpudetect
--arch
=
arm
ifdef
HAVE_NEON
POSTPROCCONF
+=
--cpu
=
cortex-a8
--enable-neon
POSTPROC_CFLAGS
+=
-mfloat-abi
=
softfp
-mfpu
=
neon
endif
endif
# Darwin
ifdef
HAVE_DARWIN_OS
POSTPROCCONF
+=
--arch
=
$(ARCH)
--target-os
=
darwin
endif
ifeq
($(ARCH),x86_64)
POSTPROCCONF
+=
--cpu
=
core2
endif
# Linux
ifdef
HAVE_LINUX
POSTPROCCONF
+=
--target-os
=
linux
# --enable-pic
endif
# Windows
ifdef
HAVE_WIN32
POSTPROCCONF
+=
--target-os
=
mingw32
ifdef
HAVE_WIN64
POSTPROCCONF
+=
--cpu
=
athlon64
--arch
=
x86_64
else
# !WIN64
POSTPROCCONF
+=
--cpu
=
i686
--arch
=
x86
endif
else
POSTPROCCONF
+=
--enable-pthreads
endif
ifdef
HAVE_WINCE
POSTPROCCONF
+=
--target-os
=
mingw32ce
--arch
=
armv4l
--cpu
=
armv4t
endif
POSTPROC_CFLAGS
+=
--std
=
gnu99
# Build
PKGS
+=
postproc
ifeq
($(call need_pkg,"libpostproc"),)
PKGS_FOUND
+=
postproc
endif
$(TARBALLS)/postproc-git.tar.gz
:
$(
call
download,
$(POSTPROC_SNAPURL)
)
POSTPROC_VERSION
:=
git
.sum-postproc
:
$(TARBALLS)/postproc-$(POSTPROC_VERSION).tar.gz
$(
warning
Not implemented.
)
touch
$@
postproc
:
postproc-$(POSTPROC_VERSION).tar.gz .sum-postproc
rm
-Rf
$@
$@
-git
mkdir
-p
$@
-git
$(ZCAT)
"
$<
"
|
(
cd
$@
-git
&&
tar
xv
--strip-components
=
1
)
ifdef
HAVE_WIN32
sed
-i
"s/std=c99/std=gnu99/"
$@
-
$(POSTPROC_VERSION)
/configure
endif
$(MOVE)
.postproc
:
postproc
cd
$<
&&
$(HOSTVARS)
./configure
\
--extra-cflags
=
"
$(POSTPROC_CFLAGS)
-DHAVE_STDINT_H"
\
--extra-ldflags
=
"
$(LDFLAGS)
"
$(POSTPROCCONF)
\
--prefix
=
"
$(PREFIX)
"
--enable-static
--disable-shared
cd
$<
&&
$(MAKE)
install-libs install-headers
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