Magellan Linux

Annotation of /branches/magellan-next/extras/x264-encoder/x264-encoder-20110727_2245-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8708 - (hide annotations) (download)
Wed Jul 27 23:03:58 2011 UTC (12 years, 9 months ago) by niro
File size: 1464 byte(s)
auto added: ver bump to 20110727_2245-r1
1 niro 8708 # $Id$
2    
3     PNAME="x264-encoder"
4     PVER="20110727_2245"
5     PBUILD="r1"
6    
7     PCATEGORIE="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.28
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="\$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')"
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    
40     SRC_URI=(
41     ftp://ftp.videolan.org/pub/videolan/x264/snapshots/${SRCFILE}
42     mirror://x264/${SRCFILE}
43     )
44    
45     # note: we build a seperate lib and util package to prevent depwalker loops
46     # when resolving packages:
47     # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile
48    
49     src_compile()
50     {
51     cd ${SRCDIR}
52     mconfigure \
53     --enable-pic \
54     --disable-shared \
55     --disable-static \
56     --enable-mp4-output \
57     --enable-gtk \
58     --enable-cli \
59     --system-libx264 \
60     || die
61    
62     mmake || die
63     }