Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8707 - (hide annotations) (download)
Wed Jul 27 23:02:19 2011 UTC (12 years, 10 months ago) by niro
File size: 1529 byte(s)
auto added: ver bump to 20110727_2245-r1
1 niro 8707 # $Id$
2    
3     PNAME="x264"
4     PVER="20110727_2245"
5     PBUILD="r1"
6    
7     PCATEGORIE="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    
33     SRC_URI=(
34     ftp://ftp.videolan.org/pub/videolan/${PNAME}/snapshots/${SRCFILE}
35     mirror://${PNAME}/${SRCFILE}
36     )
37    
38     # do not autoupdate this package as it has daily snapshots
39     UP2DATE="echo ${PVER}"
40    
41     # note: we build a seperate lib and util package to prevent depwalker loops
42     # when resolving packages:
43     # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile
44    
45     src_compile()
46     {
47     cd ${SRCDIR}
48     mconfigure \
49     --enable-pic \
50     --enable-shared \
51     --enable-pthread \
52     --disable-mp4-output \
53     --disable-cli \
54     || die
55    
56     mmake || die
57     }
58    
59     postinstall()
60     {
61     echo
62     echo "Please note that this package only installs the"
63     echo "x264 libraries. In order to have the encoder,"
64     echo "please install 'media-video/x264-encoder'."
65     echo
66     }