Magellan Linux

Contents of /trunk/extras/xvid/xvid-1.1.3-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1741 byte(s)
import repo
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.1.3"
5 PBUILD="r6"
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-${PVER}"
32
33 sminclude mtools
34
35 SRC_URI=(
36 http://downloads.xvid.org/downloads/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/${PNAME}-${PVER}-noexec-stack.patch
39 )
40
41 src_prepare()
42 {
43 munpack ${SRCFILE} || die
44 cd ${SRCDIR}
45 mpatch ${PNAME}-${PVER}-noexec-stack.patch || die
46 }
47
48 src_compile()
49 {
50 cd ${SRCDIR}/build/generic
51
52 mconfigure ${opts} || die
53 mmake || die
54 }
55
56 src_install()
57 {
58 cd ${SRCDIR}/build/generic
59
60 # needed directories
61 minstalldir /usr || die
62
63 mmake DESTDIR=${BINDIR} install || die
64
65 # for better compability
66 local libver=$(basename ${BINDIR}/usr/${mlibdir}/libxvidcore.so.* | sed "s:libxvidcore.so.::")
67 mlink libxvidcore.so.${libver} /usr/$(mlibdir)/libxvidcore.so.4 || die
68 mlink libxvidcore.so.4 /usr/$(mlibdir)/libxvidcore.so || die
69
70 cd ${SRCDIR}
71 minstalldocs AUTHORS ChangeLog* LICENSE README TODO || die
72 }

Properties

Name Value
svn:keywords Id