Annotation of /trunk/extras/x264-encoder/x264-encoder-20091020_2245-r1.smage2
Parent Directory | Revision Log
Revision 3822 -
(hide annotations)
(download)
Wed Nov 4 21:27:25 2009 UTC (14 years, 6 months ago) by niro
File size: 1670 byte(s)
Wed Nov 4 21:27:25 2009 UTC (14 years, 6 months ago) by niro
File size: 1670 byte(s)
auto added: ver bump to 20091020_2245-r1
1 | niro | 3818 | # $Id$ |
2 | |||
3 | PNAME="x264-encoder" | ||
4 | PVER="20091020_2245" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="media-video" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="x264 is a free AVC/H.264 video encoder." | ||
11 | HOMEPAGE="http://developers.videolan.org/x264.html" | ||
12 | |||
13 | DEPEND="== media-libs/x264-${PVER} | ||
14 | >= dev-libs/glib2-2.22 | ||
15 | >= x11-libs/gtk2+-2.18" | ||
16 | |||
17 | # i*86 needs nasm | ||
18 | SDEPENDS_x86=">= dev-lang/nasm-2" | ||
19 | |||
20 | # x86_64 needs yasm | ||
21 | SDEPENDS_x86_64=">= dev-lang/yasm-0.7" | ||
22 | |||
23 | # very dirty trick to get the dependencies right | ||
24 | # ';' is the IFS, tr replaces ';' with an crlfs | ||
25 | # the var is finally decided via our common eval+echo magic | ||
26 | SDEPEND="\$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')" | ||
27 | |||
28 | # these vars must be exported to the mage file to get all things right | ||
29 | SPECIAL_VARS="SDEPENDS_x86_64 SDEPENDS_x86" | ||
30 | |||
31 | # gpac is only needed to build the mp4-output module | ||
32 | SDEPEND="${SDEPEND} | ||
33 | >= media-video/gpac-0.4.5 | ||
34 | >= dev-util/pkgconfig-0.23" | ||
35 | |||
36 | SRCFILE="x264-snapshot-${PVER/_/-}.tar.bz2" | ||
37 | SRCDIR="${BUILDDIR}/x264-snapshot-${PVER/_/-}" | ||
38 | |||
39 | sminclude mbuild | ||
40 | |||
41 | SRC_URI=( | ||
42 | ftp://ftp.videolan.org/pub/videolan/x264/snapshots/${SRCFILE} | ||
43 | mirror://x264/${SRCFILE} | ||
44 | niro | 3822 | mirror://x264/x264-20090427_2245-no-libs.patch |
45 | niro | 3818 | ) |
46 | |||
47 | # note: we build a seperate lib and util package to prevent depwalker loops | ||
48 | # when resolving packages: | ||
49 | # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile | ||
50 | |||
51 | src_prepare() | ||
52 | { | ||
53 | munpack ${SRCFILE} || die | ||
54 | cd ${SRCDIR} | ||
55 | |||
56 | # fix the makefile to only build and install the decoder, not any libs | ||
57 | niro | 3822 | mpatch x264-20090427_2245-no-libs.patch || die |
58 | niro | 3818 | } |
59 | |||
60 | src_compile() | ||
61 | { | ||
62 | cd ${SRCDIR} | ||
63 | mconfigure \ | ||
64 | --enable-pic \ | ||
65 | --enable-shared \ | ||
66 | --enable-pthread \ | ||
67 | --enable-mp4-output \ | ||
68 | --enable-gtk \ | ||
69 | || die | ||
70 | mmake || die | ||
71 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |