Contents of /branches/branch-xorg18/extras/libmpeg3/libmpeg3-1.8-r2.smage2
Parent Directory | Revision Log
Revision 5192 -
(show annotations)
(download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 2289 byte(s)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 2289 byte(s)
created branch 'branch-xorg18'
1 | # $Id$ |
2 | |
3 | PNAME="libmpeg3" |
4 | PVER="1.8" |
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-7 |
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 | # fix hardcoded versions in the ac patch |
49 | sed -i -e "s:^AM_INIT_AUTOMAKE(libmpeg3, 1.7):AM_INIT_AUTOMAKE(libmpeg3, ${PVER}):" \ |
50 | -e "s:^AC_INIT(\[libmpeg3\], \[1.7\], \[mail\]):AC_INIT(\[libmpeg3\], \[${PVER}\], \[mail\]):" \ |
51 | configure.ac || die |
52 | sed -i "s:-release 1.7:-release ${PVER}:" Makefile.am || die |
53 | |
54 | # fixes textrels |
55 | mpatch ${PNAME}-1.7-textrel.patch || die |
56 | |
57 | # fixes gnustack |
58 | mpatch ${PNAME}-1.7-gnustack.patch || die |
59 | |
60 | # fixes gcc4 issues |
61 | mpatch ${PNAME}-1.7-gcc4.patch || die |
62 | |
63 | # missing pthread include |
64 | mpatch ${PNAME}-1.7-pthread.patch || die |
65 | |
66 | # fixes missing include |
67 | mpatch ${PNAME}-1.7-mpeg3split.patch || die |
68 | |
69 | # fixes wrong include location |
70 | mpatch ${PNAME}-1.7-a52.patch || die |
71 | |
72 | # rebuild configure |
73 | autoreconf --verbose --install --force || die |
74 | } |
75 | |
76 | src_compile() |
77 | { |
78 | cd ${SRCDIR} |
79 | |
80 | # css support is only fake, use libcss instead! |
81 | mconfigure --enable-mmx --disable-css || die |
82 | mmake || die |
83 | } |
84 | |
85 | src_install () |
86 | { |
87 | cd ${SRCDIR} |
88 | |
89 | mmake DESTDIR=${BINDIR} install || die |
90 | minstalldocs COPYING || die |
91 | |
92 | # fix headers to use global includes |
93 | # patching done in src_install or all wants to be rebuilt |
94 | cd ${BINDIR}/usr/include/libmpeg3 |
95 | mpatch ${PNAME}-1.7-fix-includes.patch || die |
96 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |