Contents of /trunk/core/xvid/xvid-1.2.1-r1.smage2
Parent Directory | Revision Log
Revision 926 -
(show annotations)
(download)
Sun Dec 28 10:15:11 2008 UTC (15 years, 4 months ago) by niro
File size: 1821 byte(s)
Sun Dec 28 10:15:11 2008 UTC (15 years, 4 months ago) by niro
File size: 1821 byte(s)
-ver bump to 1.2.1-r1
1 | # $Header: /magellan-cvs/smage/xvid/xvid-1.1.3-r6.smage2,v 1.1 2008/02/13 20:04:02 niro Exp $ |
2 | |
3 | PNAME="xvid" |
4 | PVER="1.2.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="media-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="XviD is an ISO MPEG-4 compliant video codec, so designed to compress/decompress digital video." |
11 | HOMEPAGE="http://www.xvid.org/" |
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 | >= sys-apps/sed-4" |
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 | SRCFILE="${PNAME}core-${PVER}.tar.bz2" |
31 | SRCDIR="${BUILDDIR}/${PNAME}core-${PVER}" |
32 | |
33 | sminclude mtools |
34 | |
35 | SRC_URI=( |
36 | http://downloads.xvid.org/downloads/${SRCFILE} |
37 | mirror://${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${PNAME}-1.1.3-noexec-stack.patch |
39 | ) |
40 | |
41 | UP2DATE="updatecmd ${HOMEPAGE}/downloads.html | grep xvidcore.[0-9] | lasttarball" |
42 | |
43 | src_prepare() |
44 | { |
45 | munpack ${SRCFILE} || die |
46 | cd ${SRCDIR} |
47 | mpatch ${PNAME}-1.1.3-noexec-stack.patch || die |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR}/build/generic |
53 | |
54 | mconfigure ${opts} || die |
55 | mmake || die |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | cd ${SRCDIR}/build/generic |
61 | |
62 | # needed directories |
63 | minstalldir /usr || die |
64 | |
65 | mmake DESTDIR=${BINDIR} install || die |
66 | |
67 | # for better compability |
68 | local libver=$(basename ${BINDIR}/usr/${mlibdir}/libxvidcore.so.* | sed "s:libxvidcore.so.::") |
69 | mlink libxvidcore.so.${libver} /usr/$(mlibdir)/libxvidcore.so.4 || die |
70 | mlink libxvidcore.so.4 /usr/$(mlibdir)/libxvidcore.so || die |
71 | |
72 | cd ${SRCDIR} |
73 | minstalldocs AUTHORS ChangeLog* LICENSE README TODO || die |
74 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |