Contents of /branches/R11-stable/extras/x264-encoder/x264-encoder-20130610_2245-r1.smage2
Parent Directory | Revision Log
Revision 18037 -
(show annotations)
(download)
Thu Jun 27 06:48:37 2013 UTC (11 years, 3 months ago) by niro
File size: 1279 byte(s)
Thu Jun 27 06:48:37 2013 UTC (11 years, 3 months ago) by niro
File size: 1279 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="x264-encoder" |
4 | PVER="20130610_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 | SDEPEND="$(marchsdepend)" |
23 | |
24 | # these vars must be exported to the mage file to get all things right |
25 | SPECIAL_VARS="SDEPENDS_x86_64 SDEPENDS_x86" |
26 | |
27 | # gpac is only needed to build the mp4-output module |
28 | SDEPEND="${SDEPEND} |
29 | >= media-video/gpac-0.4.5 |
30 | >= dev-util/pkgconfig-0.23" |
31 | |
32 | SRCFILE="x264-snapshot-${PVER/_/-}.tar.bz2" |
33 | SRCDIR="${BUILDDIR}/x264-snapshot-${PVER/_/-}" |
34 | |
35 | sminclude mbuild |
36 | msetfeature "!check" |
37 | |
38 | SRC_URI=( |
39 | ftp://ftp.videolan.org/pub/videolan/x264/snapshots/${SRCFILE} |
40 | mirror://x264/${SRCFILE} |
41 | ) |
42 | |
43 | # note: we build a seperate lib and util package to prevent depwalker loops |
44 | # when resolving packages: |
45 | # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | mconfigure \ |
51 | --enable-pic \ |
52 | --disable-shared \ |
53 | --disable-static \ |
54 | --enable-mp4-output \ |
55 | --enable-gtk \ |
56 | --enable-cli \ |
57 | --system-libx264 \ |
58 | || die |
59 | |
60 | mmake || die |
61 | } |