Magellan Linux

Annotation of /trunk/extras/x264-encoder/x264-encoder-20080530_2245-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1777 byte(s)
import repo
1 niro 2 # $Header: /magellan-cvs/smage/x264-encoder/x264-encoder-20080530_2245-r1.smage2,v 1.1 2008/05/31 17:05:11 niro Exp $
2    
3     PNAME="x264-encoder"
4     PVER="20080530_2245"
5     PBUILD="r1"
6    
7     PCATEGORIE="media-video"
8     STATE="unstable"
9    
10     DESCRIPTION="x264 is a free AVC/H.264 video encoder."
11     HOMEPAGE="http://developers.videolan.org/x264.html"
12    
13     DEPEND="== media-libs/x264-${PVER}
14     >= dev-libs/glib2-2.14
15     >= x11-libs/gtk2+-2.12"
16    
17     # i*86 needs nasm
18     SDEPENDS_x86=">= dev-lang/nasm-0.98.38"
19    
20     # x86_64 needs yasm
21     SDEPENDS_x86_64=">= dev-lang/yasm-0.4.0"
22    
23     # very dirty trick to get the dependencies right
24     # ';' is the IFS, tr replaces ';' with an crlfs
25     # the var is finally decided via our common eval+echo magic
26     SDEPEND="\$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')"
27    
28     # these vars must be exported to the mage file to get all things right
29     SPECIAL_VARS="SDEPENDS_x86_64 SDEPENDS_x86"
30    
31     # gpac is only needed to build the mp4-output module
32     SDEPEND="${SDEPEND}
33     >= media-video/gpac-0.4.2
34     >= dev-util/pkgconfig-0.20"
35    
36     SRCFILE="x264-snapshot-${PVER/_/-}.tar.bz2"
37     SRCDIR="${BUILDDIR}/x264-snapshot-${PVER/_/-}"
38    
39     sminclude mbuild
40    
41     SRC_URI=(
42     ftp://ftp.videolan.org/pub/videolan/x264/snapshots/${SRCFILE}
43     mirror://x264/${SRCFILE}
44     mirror://x264/x264-${PVER}-no-libs.patch
45     )
46    
47     # note: we build a seperate lib and util package to prevent depwalker loops
48     # when resolving packages:
49     # gpac needs ffmpeg, ffmpeg needs x264, but x264 needs gpac to compile
50    
51     src_prepare()
52     {
53     munpack ${SRCFILE} || die
54     cd ${SRCDIR}
55    
56     # fix the makefile to only build and install the decoder, not any libs
57     mpatch x264-${PVER}-no-libs.patch || die
58     }
59    
60     src_compile()
61     {
62     cd ${SRCDIR}
63     mconfigure \
64     --enable-pic \
65     --enable-shared \
66     --enable-pthread \
67     --enable-mp4-output \
68     --enable-gtk \
69     || die
70     mmake || die
71     }

Properties

Name Value
svn:keywords Id