Magellan Linux

Contents of /trunk/extras/libmpeg3/libmpeg3-1.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4366 - (show annotations) (download)
Thu Dec 3 17:26:04 2009 UTC (14 years, 5 months ago) by niro
File size: 1981 byte(s)
auto added: ver bump to 1.8-r1
1 # $Id$
2
3 PNAME="libmpeg3"
4 PVER="1.8"
5 PBUILD="r1"
6
7 PCATEGORIE="media-libs"
8 STATE="unstable"
9
10 DESCRIPTION="The MPEG Library - version 3."
11 HOMEPAGE="http://heroinewarrior.com/libmpeg3.php3"
12
13 DEPEND=">= sys-libs/zlib-1.2
14 >= media-libs/libjpeg-6b
15 >= media-libs/a52dec-0.7"
16
17 SDEPEND=">= dev-lang/nasm-0.98"
18
19 SRCFILE="${PNAME}-${PVER}-src.tar.bz2"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mbuild mtools
23
24 SRC_URI=(
25 sourceforge://heroines/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-1.7-autoconf.patch
28 mirror://${PNAME}/${PNAME}-1.7-textrel.patch
29 mirror://${PNAME}/${PNAME}-1.7-gnustack.patch
30 mirror://${PNAME}/${PNAME}-1.7-gcc4.patch
31 mirror://${PNAME}/${PNAME}-1.7-pthread.patch
32 mirror://${PNAME}/${PNAME}-1.7-mpeg3split.patch
33 mirror://${PNAME}/${PNAME}-1.7-a52.patch
34 mirror://${PNAME}/${PNAME}-1.7-fix-includes.patch
35 )
36
37 UP2SUBSTITUTE="src"
38 UP2DATE="updatecmd_sourceforge heroines releases - ${PNAME}"
39
40 src_prepare()
41 {
42 munpack ${SRCFILE} || die
43 cd ${SRCDIR}
44
45 # enable autoconf (-Np1 is neccessary)
46 mpatch -Np1 ${PNAME}-1.7-autoconf.patch || die
47
48 # fixes textrels
49 mpatch ${PNAME}-1.7-textrel.patch || die
50
51 # fixes gnustack
52 mpatch ${PNAME}-1.7-gnustack.patch || die
53
54 # fixes gcc4 issues
55 mpatch ${PNAME}-1.7-gcc4.patch || die
56
57 # missing pthread include
58 mpatch ${PNAME}-1.7-pthread.patch || die
59
60 # fixes missing include
61 mpatch ${PNAME}-1.7-mpeg3split.patch || die
62
63 # fixes wrong include location
64 mpatch ${PNAME}-1.7-a52.patch || die
65
66 # rebuild configure
67 autoreconf --verbose --install --force || die
68 }
69
70 src_compile()
71 {
72 cd ${SRCDIR}
73
74 # css support is only fake, use libcss instead!
75 mconfigure --enable-mmx --disable-css || die
76 mmake || die
77 }
78
79 src_install ()
80 {
81 cd ${SRCDIR}
82
83 mmake DESTDIR=${BINDIR} install || die
84 minstalldocs COPYING || die
85
86 # fix headers to use global includes
87 # patching done in src_install or all wants to be rebuilt
88 cd ${BINDIR}/usr/include/libmpeg3
89 mpatch ${PNAME}-${PVER}-fix-includes.patch || die
90 }

Properties

Name Value
svn:keywords Id