Magellan Linux

Contents of /branches/R11-unstable/extras/mplayer-codecs/mplayer-codecs-20110131-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25652 - (show annotations) (download)
Tue Nov 25 04:05:06 2014 UTC (9 years, 5 months ago) by niro
File size: 910 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="mplayer-codecs"
4 PVER="20110131"
5 PBUILD="r1"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="Essential codecs for mplayer."
10 HOMEPAGE="http://www.mplayerhq.hu/MPlayer/releases/codecs/"
11
12 DEPEND=""
13
14 # which codecs we use
15 CODECS="all"
16
17 SRCFILE="${CODECS}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools
21
22 SRC_URI=(
23 http://www1.mplayerhq.hu/MPlayer/releases/codecs/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd 'http://www1.mplayerhq.hu/MPlayer/releases/codecs/?C=M;O=A' | grep '/${CODECS}-[0-9]' | lasttarball"
28
29 src_prepare()
30 {
31 # we need a temp directory
32 install -d ${BUILDDIR}/${PNAME}-${PVER} || die
33 munpack ${SRCFILE} ${SRCDIR} || die
34 }
35
36 src_install()
37 {
38 cd ${SRCDIR}
39
40 # needed directories
41 minstalldir /usr/$(mlibdir)/win32 || die
42 mv ${CODECS}-${PVER}/* ${BINDIR}/usr/$(mlibdir)/win32 || die
43
44 # fix permissions
45 mchown -R root:root /usr/$(mlibdir)/win32 || die
46 }