Magellan Linux

Contents of /branches/R11-unstable/extras/xvid/xvid-1.3.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25953 - (show annotations) (download)
Tue Nov 25 04:32:26 2014 UTC (9 years, 5 months ago) by niro
File size: 1385 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="xvid"
4 PVER="1.3.3"
5 PBUILD="r1"
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 >= virtual/sed"
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 EMUL_LINUX_32="true"
30 sminclude mtools mbuild multilib
31 msetfeature "!check"
32
33 SRC_URI=(
34 http://downloads.xvid.org/downloads/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 )
37
38 UP2DATE="updatecmd http://labs.xvid.com/source/ | grep xvidcore | highesttarball"
39
40 src_compile()
41 {
42 SRCSUBDIR="build/generic"
43 mconfigure || die
44 mmake || die
45 }
46
47 src_install()
48 {
49 # needed directories
50 minstalldir /usr || die
51
52 SRCSUBDIR="build/generic"
53 mmake DESTDIR=${BINDIR} install || die
54
55 # for better compability
56 local libver=$(basename $(ls ${BINDIR}/usr/$(mlibdir)/libxvidcore.so.*) | sed "s:libxvidcore.so.::")
57 mlink libxvidcore.so.${libver} /usr/$(mlibdir)/libxvidcore.so.${libver%.?} || die
58 mlink libxvidcore.so.${libver%.?} /usr/$(mlibdir)/libxvidcore.so || die
59
60 minstalldocs AUTHORS ChangeLog* LICENSE README TODO || die
61 }