Magellan Linux

Contents of /branches/R11-stable/extras/xvid/xvid-1.3.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11811 - (show annotations) (download)
Wed Apr 18 16:54:27 2012 UTC (12 years, 1 month ago) by niro
Original Path: trunk/extras/xvid/xvid-1.3.2-r2.smage2
File size: 1368 byte(s)
-multilib
1 # $Id$
2
3 PNAME="xvid"
4 PVER="1.3.2"
5 PBUILD="r2"
6
7 PCAT="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 SDEPEND_x86=">= dev-lang/nasm-2"
16
17 # x86_64 needs yasm
18 SDEPEND_x86_64=">= dev-lang/yasm-1.1"
19
20 SDEPEND="$(marchsdepend)
21 >= sys-apps/sed-4"
22
23 # these vars must be exported to the mage file to get all things right
24 SPECIAL_VARS="SDEPEND_x86_64 SDEPEND_x86"
25
26 SRCFILE="${PNAME}core-${PVER}.tar.bz2"
27 SRCDIR="${BUILDDIR}/${PNAME}core"
28
29 sminclude mtools mbuild multilib
30 msetfeature "!check"
31
32 SRC_URI=(
33 http://downloads.xvid.org/downloads/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 )
36
37 UP2DATE="updatecmd ${HOMEPAGE}/downloads.html | grep xvidcore.[0-9] | lasttarball"
38
39 src_compile()
40 {
41 SRCSUBDIR="build/generic"
42 mconfigure || die
43 mmake || die
44 }
45
46 src_install()
47 {
48 # needed directories
49 minstalldir /usr || die
50
51 SRCSUBDIR="build/generic"
52 mmake DESTDIR=${BINDIR} install || die
53
54 # for better compability
55 local libver=$(basename $(ls ${BINDIR}/usr/$(mlibdir)/libxvidcore.so.*) | sed "s:libxvidcore.so.::")
56 mlink libxvidcore.so.${libver} /usr/$(mlibdir)/libxvidcore.so.${libver%.?} || die
57 mlink libxvidcore.so.${libver%.?} /usr/$(mlibdir)/libxvidcore.so || die
58
59 minstalldocs AUTHORS ChangeLog* LICENSE README TODO || die
60 }