Magellan Linux

Annotation of /branches/R11-stable/extras/xvid/xvid-1.3.2-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20721 - (hide annotations) (download)
Tue Feb 4 09:51:15 2014 UTC (10 years, 3 months ago) by niro
Original Path: trunk/extras/xvid/xvid-1.3.2-r3.smage2
File size: 1386 byte(s)
-fixed dependencies sys-apps/sed -> virtual/sed
1 niro 20721 # $Id$
2    
3     PNAME="xvid"
4     PVER="1.3.2"
5     PBUILD="r3"
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 ${HOMEPAGE}/downloads.html | grep xvidcore.[0-9] | lasttarball"
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     }