Contents of /trunk/extras/libmpeg3/libmpeg3-1.7-r2.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2052 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2052 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/libmpeg3/libmpeg3-1.7-r2.smage2,v 1.1 2008/04/03 21:01:08 niro Exp $ |
2 | |
3 | PNAME="libmpeg3" |
4 | PVER="1.7" |
5 | PBUILD="r2" |
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}-${PVER}-autoconf.patch |
28 | mirror://${PNAME}/${PNAME}-${PVER}-textrel.patch |
29 | mirror://${PNAME}/${PNAME}-${PVER}-gnustack.patch |
30 | mirror://${PNAME}/${PNAME}-${PVER}-gcc4.patch |
31 | mirror://${PNAME}/${PNAME}-${PVER}-pthread.patch |
32 | mirror://${PNAME}/${PNAME}-${PVER}-mpeg3split.patch |
33 | mirror://${PNAME}/${PNAME}-${PVER}-a52.patch |
34 | mirror://${PNAME}/${PNAME}-${PVER}-fix-includes.patch |
35 | ) |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # enable autoconf (-Np1 is neccessary) |
43 | mpatch -Np1 ${PNAME}-${PVER}-autoconf.patch || die |
44 | |
45 | # fixes textrels |
46 | mpatch ${PNAME}-${PVER}-textrel.patch || die |
47 | |
48 | # fixes gnustack |
49 | mpatch ${PNAME}-${PVER}-gnustack.patch || die |
50 | |
51 | # fixes gcc4 issues |
52 | mpatch ${PNAME}-${PVER}-gcc4.patch || die |
53 | |
54 | # missing pthread include |
55 | mpatch ${PNAME}-${PVER}-pthread.patch || die |
56 | |
57 | # fixes missing include |
58 | mpatch ${PNAME}-${PVER}-mpeg3split.patch || die |
59 | |
60 | # fixes wrong include location |
61 | mpatch ${PNAME}-${PVER}-a52.patch || die |
62 | |
63 | # rebuild configure |
64 | autoreconf --verbose --install --force || die |
65 | } |
66 | |
67 | src_compile() |
68 | { |
69 | cd ${SRCDIR} |
70 | |
71 | # css support is only fake, use libcss instead! |
72 | mconfigure --enable-mmx --disable-css || die |
73 | mmake || die |
74 | } |
75 | |
76 | src_install () |
77 | { |
78 | cd ${SRCDIR} |
79 | |
80 | mmake DESTDIR=${BINDIR} install || die |
81 | minstalldocs COPYING || die |
82 | |
83 | # fix headers to use global includes |
84 | # patching done in src_install or all wants to be rebuilt |
85 | cd ${BINDIR}/usr/include/libmpeg3 |
86 | mpatch ${PNAME}-${PVER}-fix-includes.patch || die |
87 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |