Magellan Linux

Contents of /branches/R11-stable/extras/x264-encoder/x264-encoder-20121101_2245-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15407 - (show annotations) (download)
Wed Jan 2 11:40:42 2013 UTC (11 years, 5 months ago) by niro
File size: 1436 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="x264-encoder"
4 PVER="20121101_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.34
14 >= x11-libs/gtk2+-2.24"
15
16 # i*86 needs nasm
17 SDEPENDS_x86=">= dev-lang/nasm-2"
18
19 # x86_64 needs yasm
20 SDEPENDS_x86_64=">= dev-lang/yasm-0.7"
21
22 # very dirty trick to get the dependencies right
23 # ';' is the IFS, tr replaces ';' with an crlfs
24 # the var is finally decided via our common eval+echo magic
25 SDEPEND="$(marchsdepend)"
26
27 # these vars must be exported to the mage file to get all things right
28 SPECIAL_VARS="SDEPENDS_x86_64 SDEPENDS_x86"
29
30 # gpac is only needed to build the mp4-output module
31 SDEPEND="${SDEPEND}
32 >= media-video/gpac-0.4.5
33 >= dev-util/pkgconfig-0.23"
34
35 SRCFILE="x264-snapshot-${PVER/_/-}.tar.bz2"
36 SRCDIR="${BUILDDIR}/x264-snapshot-${PVER/_/-}"
37
38 sminclude mbuild
39 msetfeature "!check"
40
41 SRC_URI=(
42 ftp://ftp.videolan.org/pub/videolan/x264/snapshots/${SRCFILE}
43 mirror://x264/${SRCFILE}
44 )
45
46 # note: we build a seperate lib and util package to prevent depwalker loops
47 # when resolving packages:
48 # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile
49
50 src_compile()
51 {
52 cd ${SRCDIR}
53 mconfigure \
54 --enable-pic \
55 --disable-shared \
56 --disable-static \
57 --enable-mp4-output \
58 --enable-gtk \
59 --enable-cli \
60 --system-libx264 \
61 || die
62
63 mmake || die
64 }