Magellan Linux

Annotation of /trunk/extras/x264/x264-20140918_2245-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22295 - (hide annotations) (download)
Fri Sep 19 10:24:05 2014 UTC (9 years, 8 months ago) by niro
File size: 1360 byte(s)
auto added: ver bump to 20140918_2245-r1
1 niro 22295 # $Id$
2    
3     PNAME="x264"
4     PVER="20140918_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-1.3"
19    
20     SDEPEND="$(marchsdepend)"
21    
22     # these vars must be exported to the mage file to get all things right
23     SPECIAL_VARS="SDEPENDS_x86_64 SDEPENDS_x86"
24    
25     SRCFILE="${PNAME}-snapshot-${PVER/_/-}.tar.bz2"
26     SRCDIR="${BUILDDIR}/${PNAME}-snapshot-${PVER/_/-}"
27    
28     EMUL_LINUX_32="true"
29     sminclude mbuild multilib
30     msetfeature "!check"
31    
32     SRC_URI=(
33     ftp://ftp.videolan.org/pub/videolan/${PNAME}/snapshots/${SRCFILE}
34     mirror://${PNAME}/${SRCFILE}
35     )
36    
37     # do not autoupdate this package as it has daily snapshots
38     UP2DATE="echo ${PVER}"
39    
40     # note: we build a seperate lib and util package to prevent depwalker loops
41     # when resolving packages:
42     # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile
43    
44     src_compile()
45     {
46     mconfigure \
47     --enable-pic \
48     --enable-shared \
49     --enable-pthread \
50     --disable-mp4-output \
51     --disable-cli \
52     || die
53    
54     mmake || die
55     }
56    
57     postinstall()
58     {
59     echo
60     echo "Please note that this package only installs the"
61     echo "x264 libraries. In order to have the encoder,"
62     echo "please install 'media-video/x264-encoder'."
63     echo
64     }