Annotation of /trunk/extras/smpeg/smpeg-0.4.4-r9.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2243 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2243 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/smpeg/smpeg-0.4.4-r9.smage2,v 1.1 2008/03/23 23:48:50 niro Exp $ |
2 | |||
3 | PNAME="smpeg" | ||
4 | PVER="0.4.4" | ||
5 | PBUILD="r9" | ||
6 | |||
7 | PCATEGORIE="media-libs" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="SDL MPEG library." | ||
11 | HOMEPAGE="http://www.lokigames.com/development/smpeg.php3" | ||
12 | |||
13 | DEPEND=">= media-libs/libsdl-1.2.13 | ||
14 | >= virtual/opengl | ||
15 | >= x11-libs/libXext-1 | ||
16 | >= x11-libs/libXi-1 | ||
17 | >= x11-libs/libX11-1" | ||
18 | |||
19 | SDEPEND=">= sys-apps/sed-4" | ||
20 | |||
21 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
23 | |||
24 | sminclude mbuild | ||
25 | |||
26 | SRC_URI=( | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/${PNAME}-${PVER}-m4-underquoted.patch | ||
29 | mirror://${PNAME}/${PNAME}-${PVER}-libstdc++.patch | ||
30 | mirror://${PNAME}/${PNAME}-${PVER}-gnu-stack.patch | ||
31 | mirror://${PNAME}/${PNAME}-${PVER}-config.patch | ||
32 | mirror://${PNAME}/${PNAME}-${PVER}-pic.patch | ||
33 | mirror://${PNAME}/${PNAME}-${PVER}-gcc41.patch | ||
34 | mirror://${PNAME}/${PNAME}-${PVER}-cflags.patch | ||
35 | mirror://${PNAME}/${PNAME}-${PVER}-mmx.patch | ||
36 | mirror://${PNAME}/${PNAME}-${PVER}-missing-init.patch | ||
37 | ) | ||
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | munpack ${SRCFILE} || die | ||
42 | cd ${SRCDIR} | ||
43 | |||
44 | # fixes m4 warnings | ||
45 | mpatch ${PNAME}-${PVER}-m4-underquoted.patch || die | ||
46 | |||
47 | # changes linking from using g++ to gcc and then makes gcc use libstdc++ | ||
48 | # see http://lists.libsdl.org/pipermail/sdl-libsdl.org/2002-August/029943.html | ||
49 | mpatch ${PNAME}-${PVER}-libstdc++.patch || die | ||
50 | |||
51 | # non-executable gnu stack marking for libsmpeg.so | ||
52 | mpatch ${PNAME}-${PVER}-gnu-stack.patch || die | ||
53 | |||
54 | # only dump -L/-rpath if libdir is non-standard | ||
55 | mpatch ${PNAME}-${PVER}-config.patch || die | ||
56 | |||
57 | # fixes textrels in mmx asm code | ||
58 | mpatch ${PNAME}-${PVER}-pic.patch || die | ||
59 | |||
60 | # fixes build issues with gcc-4.1 | ||
61 | mpatch ${PNAME}-${PVER}-gcc41.patch || die | ||
62 | |||
63 | # fixes CFLAGS handling; also supports newer autotools | ||
64 | mpatch ${PNAME}-${PVER}-cflags.patch || die | ||
65 | |||
66 | # fixes undefined references to cpu_flags and IDCT_mmx | ||
67 | mpatch ${PNAME}-${PVER}-mmx.patch || die | ||
68 | |||
69 | # fixes segfaults when opening non exisiting files | ||
70 | mpatch ${PNAME}-${PVER}-missing-init.patch || die | ||
71 | |||
72 | autoreconf --install --force || die | ||
73 | } | ||
74 | |||
75 | src_compile() | ||
76 | { | ||
77 | cd ${SRCDIR} | ||
78 | |||
79 | mconfigure \ | ||
80 | --disable-debug \ | ||
81 | --disable-assertions \ | ||
82 | --disable-gtk-player \ | ||
83 | --with-x \ | ||
84 | --enable-opengl-player \ | ||
85 | --enable-mmx \ | ||
86 | || die | ||
87 | |||
88 | mmake || die | ||
89 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |