Magellan Linux

Annotation of /trunk/extras/smpeg/smpeg-0.4.4-r10.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5026 - (hide annotations) (download)
Mon Mar 1 15:34:01 2010 UTC (14 years, 2 months ago) by niro
File size: 2206 byte(s)
auto added: ver bump to 0.4.4-r10
1 niro 5026 # $Id$
2    
3     PNAME="smpeg"
4     PVER="0.4.4"
5     PBUILD="r10"
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.14
14     >= virtual/opengl
15     >= virtual/glut
16     >= x11-libs/libXext-1
17     >= x11-libs/libXi-1
18     >= x11-libs/libX11-1"
19    
20     SDEPEND=">= sys-apps/sed-4"
21    
22     SRCFILE="${PNAME}-${PVER}.tar.gz"
23     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24    
25     sminclude mbuild
26    
27     SRC_URI=(
28     mirror://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${PNAME}-${PVER}-m4-underquoted.patch
30     mirror://${PNAME}/${PNAME}-${PVER}-libstdc++.patch
31     mirror://${PNAME}/${PNAME}-${PVER}-gnu-stack.patch
32     mirror://${PNAME}/${PNAME}-${PVER}-config.patch
33     mirror://${PNAME}/${PNAME}-${PVER}-pic.patch
34     mirror://${PNAME}/${PNAME}-${PVER}-gcc41.patch
35     mirror://${PNAME}/${PNAME}-${PVER}-cflags.patch
36     mirror://${PNAME}/${PNAME}-${PVER}-mmx.patch
37     mirror://${PNAME}/${PNAME}-${PVER}-missing-init.patch
38     )
39    
40     # fake it
41     UP2DATE="echo ${PVER}"
42    
43     src_prepare()
44     {
45     munpack ${SRCFILE} || die
46     cd ${SRCDIR}
47    
48     # fixes m4 warnings
49     mpatch ${PNAME}-${PVER}-m4-underquoted.patch || die
50    
51     # changes linking from using g++ to gcc and then makes gcc use libstdc++
52     # see http://lists.libsdl.org/pipermail/sdl-libsdl.org/2002-August/029943.html
53     mpatch ${PNAME}-${PVER}-libstdc++.patch || die
54    
55     # non-executable gnu stack marking for libsmpeg.so
56     mpatch ${PNAME}-${PVER}-gnu-stack.patch || die
57    
58     # only dump -L/-rpath if libdir is non-standard
59     mpatch ${PNAME}-${PVER}-config.patch || die
60    
61     # fixes textrels in mmx asm code
62     mpatch ${PNAME}-${PVER}-pic.patch || die
63    
64     # fixes build issues with gcc-4.1
65     mpatch ${PNAME}-${PVER}-gcc41.patch || die
66    
67     # fixes CFLAGS handling; also supports newer autotools
68     mpatch ${PNAME}-${PVER}-cflags.patch || die
69    
70     # fixes undefined references to cpu_flags and IDCT_mmx
71     mpatch ${PNAME}-${PVER}-mmx.patch || die
72    
73     # fixes segfaults when opening non exisiting files
74     mpatch ${PNAME}-${PVER}-missing-init.patch || die
75    
76     autoreconf --install --force || die
77     }
78    
79     src_compile()
80     {
81     cd ${SRCDIR}
82    
83     mconfigure \
84     --disable-debug \
85     --disable-assertions \
86     --disable-gtk-player \
87     --with-x \
88     --enable-opengl-player \
89     --enable-mmx \
90     || die
91    
92     mmake || die
93     }

Properties

Name Value
svn:keywords Id