Contents of /trunk/extras/x264/x264-20110727_2245-r1.smage2
Parent Directory | Revision Log
Revision 10699 -
(show annotations)
(download)
Wed Feb 1 23:25:53 2012 UTC (12 years, 7 months ago) by niro
File size: 1544 byte(s)
Wed Feb 1 23:25:53 2012 UTC (12 years, 7 months ago) by niro
File size: 1544 byte(s)
-moved to 'extras'
1 | # $Id$ |
2 | |
3 | PNAME="x264" |
4 | PVER="20110727_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="\$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')" |
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 | sminclude mbuild |
32 | msetfeature "!check" |
33 | |
34 | SRC_URI=( |
35 | ftp://ftp.videolan.org/pub/videolan/${PNAME}/snapshots/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | ) |
38 | |
39 | # do not autoupdate this package as it has daily snapshots |
40 | UP2DATE="echo ${PVER}" |
41 | |
42 | # note: we build a seperate lib and util package to prevent depwalker loops |
43 | # when resolving packages: |
44 | # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile |
45 | |
46 | src_compile() |
47 | { |
48 | cd ${SRCDIR} |
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 | } |