Magellan Linux

Contents of /trunk/core/xvid/xvid-1.2.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 930 - (show annotations) (download)
Sun Dec 28 10:24:23 2008 UTC (15 years, 4 months ago) by niro
File size: 1686 byte(s)
-be fully variable
1 # $Header: /magellan-cvs/smage/xvid/xvid-1.1.3-r6.smage2,v 1.1 2008/02/13 20:04:02 niro Exp $
2
3 PNAME="xvid"
4 PVER="1.2.1"
5 PBUILD="r1"
6
7 PCATEGORIE="media-libs"
8 STATE="unstable"
9
10 DESCRIPTION="XviD is an ISO MPEG-4 compliant video codec, so designed to compress/decompress digital video."
11 HOMEPAGE="http://www.xvid.org/"
12
13 DEPEND=">= virtual/glibc"
14
15 # i*86 needs nasm
16 SDEPENDS_x86=">= dev-lang/nasm-0.98.38"
17
18 # x86_64 needs yasm
19 SDEPENDS_x86_64=">= dev-lang/yasm-0.4.0"
20
21 # very dirty trick to get the dependencies right
22 # ';' is the IFS, tr replaces ';' with an crlfs
23 # the var is finally decided via our common eval+echo magic
24 SDEPEND="\$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')
25 >= sys-apps/sed-4"
26
27 # these vars must be exported to the mage file to get all things right
28 SPECIAL_VARS="SDEPENDS_x86_64 SDEPENDS_x86"
29
30 SRCFILE="${PNAME}core-${PVER}.tar.bz2"
31 SRCDIR="${BUILDDIR}/${PNAME}core"
32
33 sminclude mtools mbuild
34
35 SRC_URI=(
36 http://downloads.xvid.org/downloads/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 )
39
40 UP2DATE="updatecmd ${HOMEPAGE}/downloads.html | grep xvidcore.[0-9] | lasttarball"
41
42 src_compile()
43 {
44 cd ${SRCDIR}/build/generic
45
46 mconfigure ${opts} || die
47 mmake || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}/build/generic
53
54 # needed directories
55 minstalldir /usr || die
56
57 mmake DESTDIR=${BINDIR} install || die
58
59 # for better compability
60 local libver=$(basename $(ls ${BINDIR}/usr/$(mlibdir)/libxvidcore.so.*) | sed "s:libxvidcore.so.::")
61 mlink libxvidcore.so.${libver} /usr/$(mlibdir)/libxvidcore.so.${libver%.?} || die
62 mlink libxvidcore.so.${libver%.?} /usr/$(mlibdir)/libxvidcore.so || die
63
64 cd ${SRCDIR}
65 minstalldocs AUTHORS ChangeLog* LICENSE README TODO || die
66 }

Properties

Name Value
svn:keywords Id