Magellan Linux

Contents of /branches/R11-unstable/extras/x264-encoder/x264-encoder-20141218_2245-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25852 - (show annotations) (download)
Tue Nov 25 04:23:45 2014 UTC (9 years, 5 months ago) by niro
File size: 1033 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="x264-encoder"
4 PVER="20141218_2245"
5 PBUILD="r1"
6
7 PCAT="media-video"
8
9 DESCRIPTION="x264 is a free AVC/H.264 video encoder."
10 HOMEPAGE="http://developers.videolan.org/x264.html"
11
12 DEPEND="== media-libs/x264-${PVER}
13 >= dev-libs/glib2-2.40
14 >= x11-libs/gtk2+-2.24"
15
16 # gpac is only needed to build the mp4-output module
17 SDEPEND=">= dev-lang/yasm-1.3
18 >= media-video/gpac-0.5.1
19 >= dev-util/pkgconfig-0.25"
20
21 SRCFILE="x264-snapshot-${PVER/_/-}.tar.bz2"
22 SRCDIR="${BUILDDIR}/x264-snapshot-${PVER/_/-}"
23
24 sminclude mbuild
25 msetfeature "!check"
26
27 SRC_URI=(
28 ftp://ftp.videolan.org/pub/videolan/x264/snapshots/${SRCFILE}
29 mirror://x264/${SRCFILE}
30 )
31
32 # note: we build a seperate lib and util package to prevent depwalker loops
33 # when resolving packages:
34 # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile
35
36 src_compile()
37 {
38 cd ${SRCDIR}
39 mconfigure \
40 --enable-pic \
41 --disable-shared \
42 --disable-static \
43 --enable-mp4-output \
44 --enable-gtk \
45 --enable-cli \
46 --system-libx264 \
47 || die
48
49 mmake || die
50 }