Annotation of /branches/magellan-next/core/xvid/xvid-1.3.2-r1.smage2
Parent Directory | Revision Log
Revision 8195 -
(hide annotations)
(download)
Wed Jul 13 06:55:27 2011 UTC (13 years, 2 months ago) by niro
File size: 1574 byte(s)
Wed Jul 13 06:55:27 2011 UTC (13 years, 2 months ago) by niro
File size: 1574 byte(s)
auto added: ver bump to 1.3.2-r1
1 | niro | 8195 | # $Id$ |
2 | |||
3 | PNAME="xvid" | ||
4 | PVER="1.3.2" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="media-libs" | ||
8 | |||
9 | DESCRIPTION="XviD is an ISO MPEG-4 compliant video codec, so designed to compress/decompress digital video." | ||
10 | HOMEPAGE="http://www.xvid.org/" | ||
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-1.1" | ||
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 | >= sys-apps/sed-4" | ||
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}core-${PVER}.tar.bz2" | ||
30 | SRCDIR="${BUILDDIR}/${PNAME}core" | ||
31 | |||
32 | sminclude mtools mbuild | ||
33 | |||
34 | SRC_URI=( | ||
35 | http://downloads.xvid.org/downloads/${SRCFILE} | ||
36 | mirror://${PNAME}/${SRCFILE} | ||
37 | ) | ||
38 | |||
39 | UP2DATE="updatecmd ${HOMEPAGE}/downloads.html | grep xvidcore.[0-9] | lasttarball" | ||
40 | |||
41 | src_compile() | ||
42 | { | ||
43 | cd ${SRCDIR}/build/generic | ||
44 | |||
45 | mconfigure ${opts} || die | ||
46 | mmake || die | ||
47 | } | ||
48 | |||
49 | src_install() | ||
50 | { | ||
51 | cd ${SRCDIR}/build/generic | ||
52 | |||
53 | # needed directories | ||
54 | minstalldir /usr || die | ||
55 | |||
56 | mmake DESTDIR=${BINDIR} install || die | ||
57 | |||
58 | # for better compability | ||
59 | local libver=$(basename $(ls ${BINDIR}/usr/$(mlibdir)/libxvidcore.so.*) | sed "s:libxvidcore.so.::") | ||
60 | mlink libxvidcore.so.${libver} /usr/$(mlibdir)/libxvidcore.so.${libver%.?} || die | ||
61 | mlink libxvidcore.so.${libver%.?} /usr/$(mlibdir)/libxvidcore.so || die | ||
62 | |||
63 | cd ${SRCDIR} | ||
64 | minstalldocs AUTHORS ChangeLog* LICENSE README TODO || die | ||
65 | } |