Annotation of /branches/R11-stable/extras/x264/x264-20130610_2245-r1.smage2
Parent Directory | Revision Log
Revision 17403 -
(hide annotations)
(download)
Tue Jun 11 08:21:16 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/extras/x264/x264-20130610_2245-r1.smage2
File size: 1517 byte(s)
Tue Jun 11 08:21:16 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/extras/x264/x264-20130610_2245-r1.smage2
File size: 1517 byte(s)
auto added: ver bump to 20130610_2245-r1
1 | niro | 17403 | # $Id$ |
2 | |||
3 | PNAME="x264" | ||
4 | PVER="20130610_2245" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="media-libs" | ||
8 | |||
9 | DESCRIPTION="x264 is a free AVC/H.264 video encoder library." | ||
10 | HOMEPAGE="http://developers.videolan.org/x264.html" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | # i*86 needs nasm | ||
15 | SDEPENDS_x86=">= dev-lang/nasm-2" | ||
16 | |||
17 | # x86_64 needs yasm | ||
18 | SDEPENDS_x86_64=">= dev-lang/yasm-0.7" | ||
19 | |||
20 | # very dirty trick to get the dependencies right | ||
21 | # ';' is the IFS, tr replaces ';' with an crlfs | ||
22 | # the var is finally decided via our common eval+echo magic | ||
23 | SDEPEND="$(marchsdepend)" | ||
24 | |||
25 | # these vars must be exported to the mage file to get all things right | ||
26 | SPECIAL_VARS="SDEPENDS_x86_64 SDEPENDS_x86" | ||
27 | |||
28 | SRCFILE="${PNAME}-snapshot-${PVER/_/-}.tar.bz2" | ||
29 | SRCDIR="${BUILDDIR}/${PNAME}-snapshot-${PVER/_/-}" | ||
30 | |||
31 | EMUL_LINUX_32="true" | ||
32 | sminclude mbuild multilib | ||
33 | msetfeature "!check" | ||
34 | |||
35 | SRC_URI=( | ||
36 | ftp://ftp.videolan.org/pub/videolan/${PNAME}/snapshots/${SRCFILE} | ||
37 | mirror://${PNAME}/${SRCFILE} | ||
38 | ) | ||
39 | |||
40 | # do not autoupdate this package as it has daily snapshots | ||
41 | UP2DATE="echo ${PVER}" | ||
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 | mconfigure \ | ||
50 | --enable-pic \ | ||
51 | --enable-shared \ | ||
52 | --enable-pthread \ | ||
53 | --disable-mp4-output \ | ||
54 | --disable-cli \ | ||
55 | || die | ||
56 | |||
57 | mmake || die | ||
58 | } | ||
59 | |||
60 | postinstall() | ||
61 | { | ||
62 | echo | ||
63 | echo "Please note that this package only installs the" | ||
64 | echo "x264 libraries. In order to have the encoder," | ||
65 | echo "please install 'media-video/x264-encoder'." | ||
66 | echo | ||
67 | } |