Annotation of /trunk/core/xvid/xvid-1.2.2-r1.smage2
Parent Directory | Revision Log
Revision 3533 -
(hide annotations)
(download)
Fri Oct 23 09:45:49 2009 UTC (14 years, 11 months ago) by niro
File size: 1591 byte(s)
Fri Oct 23 09:45:49 2009 UTC (14 years, 11 months ago) by niro
File size: 1591 byte(s)
auto added: ver bump to 1.2.2-r1
1 | niro | 3533 | # $Id$ |
2 | |||
3 | PNAME="xvid" | ||
4 | PVER="1.2.2" | ||
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-2" | ||
17 | |||
18 | # x86_64 needs yasm | ||
19 | SDEPENDS_x86_64=">= dev-lang/yasm-0.8" | ||
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" | ||
32 | |||
33 | sminclude mtools mbuild | ||
34 | |||
35 | SRC_URI=( | ||
36 | http://downloads.xvid.org/downloads/${SRCFILE} | ||
37 | mirror://${PNAME}/${SRCFILE} | ||
38 | ) | ||
39 | |||
40 | UP2DATE="updatecmd ${HOMEPAGE}/downloads.html | grep xvidcore.[0-9] | lasttarball" | ||
41 | |||
42 | src_compile() | ||
43 | { | ||
44 | cd ${SRCDIR}/build/generic | ||
45 | |||
46 | mconfigure ${opts} || die | ||
47 | mmake || die | ||
48 | } | ||
49 | |||
50 | src_install() | ||
51 | { | ||
52 | cd ${SRCDIR}/build/generic | ||
53 | |||
54 | # needed directories | ||
55 | minstalldir /usr || die | ||
56 | |||
57 | mmake DESTDIR=${BINDIR} install || die | ||
58 | |||
59 | # for better compability | ||
60 | local libver=$(basename $(ls ${BINDIR}/usr/$(mlibdir)/libxvidcore.so.*) | sed "s:libxvidcore.so.::") | ||
61 | mlink libxvidcore.so.${libver} /usr/$(mlibdir)/libxvidcore.so.${libver%.?} || die | ||
62 | mlink libxvidcore.so.${libver%.?} /usr/$(mlibdir)/libxvidcore.so || die | ||
63 | |||
64 | cd ${SRCDIR} | ||
65 | minstalldocs AUTHORS ChangeLog* LICENSE README TODO || die | ||
66 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |