Contents of /trunk/extras/x264/x264-20080530_2245-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1762 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1762 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/x264/x264-20080530_2245-r1.smage2,v 1.2 2008/05/31 16:42:49 niro Exp $ |
2 | |
3 | PNAME="x264" |
4 | PVER="20080530_2245" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="media-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="x264 is a free AVC/H.264 video encoder library." |
11 | HOMEPAGE="http://developers.videolan.org/x264.html" |
12 | |
13 | DEPEND=">= virtual/glibc" |
14 | |
15 | # i*86 needs nasm |
16 | SDEPENDS_x86=">= dev-lang/nasm-0.98.38" |
17 | |
18 | # x86_64 needs yasm |
19 | SDEPENDS_x86_64=">= dev-lang/yasm-0.4.0" |
20 | |
21 | # very dirty trick to get the dependencies right |
22 | # ';' is the IFS, tr replaces ';' with an crlfs |
23 | # the var is finally decided via our common eval+echo magic |
24 | SDEPEND="\$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')" |
25 | |
26 | # these vars must be exported to the mage file to get all things right |
27 | SPECIAL_VARS="SDEPENDS_x86_64 SDEPENDS_x86" |
28 | |
29 | SRCFILE="${PNAME}-snapshot-${PVER/_/-}.tar.bz2" |
30 | SRCDIR="${BUILDDIR}/${PNAME}-snapshot-${PVER/_/-}" |
31 | |
32 | sminclude mbuild |
33 | |
34 | SRC_URI=( |
35 | ftp://ftp.videolan.org/pub/videolan/${PNAME}/snapshots/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | mirror://${PNAME}/${PNAME}-${PVER}-only-libs.patch |
38 | ) |
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_prepare() |
45 | { |
46 | munpack ${SRCFILE} || die |
47 | cd ${SRCDIR} |
48 | |
49 | # fix the makefile to only build and install the lib |
50 | mpatch ${PNAME}-${PVER}-only-libs.patch || die |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | cd ${SRCDIR} |
56 | mconfigure \ |
57 | --enable-pic \ |
58 | --enable-shared \ |
59 | --enable-pthread \ |
60 | --disable-mp4-output \ |
61 | || die |
62 | mmake || die |
63 | } |
64 | |
65 | postinstall() |
66 | { |
67 | echo |
68 | echo "Please note that this package now only installs" |
69 | echo "x264 libraries. In order to have the encoder," |
70 | echo "please install 'media-video/x264-encoder'." |
71 | echo |
72 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |