Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11810 - (show annotations) (download)
Wed Apr 18 16:52:00 2012 UTC (12 years, 1 month ago) by niro
Original Path: trunk/extras/xvid/xvid-1.3.2-r2.smage2
File size: 1427 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 SRCDIR="${SRCDIR}/build/generic" mconfigure || die
42 SRCDIR="${SRCDIR}/build/generic" mmake || die
43 }
44
45 src_install()
46 {
47 # needed directories
48 minstalldir /usr || die
49
50 SRCDIR="${SRCDIR}/build/generic" mmake DESTDIR=${BINDIR} install || die
51
52 # for better compability
53 local libver=$(basename $(ls ${BINDIR}/usr/$(mlibdir)/libxvidcore.so.*) | sed "s:libxvidcore.so.::")
54 mlink libxvidcore.so.${libver} /usr/$(mlibdir)/libxvidcore.so.${libver%.?} || die
55 mlink libxvidcore.so.${libver%.?} /usr/$(mlibdir)/libxvidcore.so || die
56
57 cd ${SRCDIR}
58 minstalldocs AUTHORS ChangeLog* LICENSE README TODO || die
59 }