Magellan Linux

Annotation of /trunk/deprecated/gstreamer/gstreamer-1.0.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13731 - (hide annotations) (download)
Tue Oct 23 21:05:38 2012 UTC (11 years, 7 months ago) by niro
File size: 2248 byte(s)
-moved to 'deprecated'
1 niro 13525 # $Id$
2    
3     PNAME="gstreamer"
4     PVER="1.0.1"
5     PBUILD="r1"
6    
7     PCAT="media-libs"
8    
9     DESCRIPTION="Streaming media framework."
10     HOMEPAGE="http://gstreamer.sourceforge.net/"
11    
12     # x86_64 specific dependencies
13     DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1"
14     SPECIAL_VARS="DEPEND_x86_64"
15    
16     DEPEND="$(marchdepend)
17     >= dev-libs/glib2-2.34
18     >= dev-libs/libxml2-2.9"
19    
20     SDEPEND=">= sys-dev/gettext-0.18
21     >= dev-util/pkgconfig-0.25
22     >= dev-libs/gobject-introspection-1.34"
23    
24     SRCFILE="${PNAME}-${PVER}.tar.xz"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     # enable linux32 emulation for x86_64 arches
28     EMUL_LINUX_32=true
29    
30     sminclude mbuild mtools multilib
31    
32     SRC_URI=(
33     http://gstreamer.freedesktop.org/src/${PNAME}/${SRCFILE}
34     mirror://${PNAME}/${SRCFILE}
35     )
36    
37     UP2DATE="updatecmd http://gstreamer.freedesktop.org/src/${PNAME}/ | lasttarball xz"
38    
39     src_compile()
40     {
41     local myconf
42     [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi)
43    
44     # use libexecdir=/usr/$(mlibdir)
45     # the makefile installes the libexec data into a gstreamer-0.10 dir
46     # which gets already installed in /usr/$(mlibdir)
47     mconfigure \
48     --libexecdir=/usr/$(mlibdir) \
49     --enable-introspection \
50     --disable-tests \
51     --disable-examples \
52     --disable-gtk-doc \
53     ${myconf} \
54     || die
55    
56     mmake || die
57     }
58    
59     src_install()
60     {
61     mmake DESTDIR=${BINDIR} install || die
62    
63     if [[ ${ARCH} = x86_64 ]]
64     then
65     # install multiarch-wrapper
66     mlink multiarch-wrapper /usr/bin/gst-feedback || die
67     mlink multiarch-wrapper /usr/bin/gst-feedback-${PVER%.*} || die
68     mlink multiarch-wrapper /usr/bin/gst-inspect || die
69     mlink multiarch-wrapper /usr/bin/gst-inspect-${PVER%.*} || die
70     mlink multiarch-wrapper /usr/bin/gst-launch || die
71     mlink multiarch-wrapper /usr/bin/gst-launch-${PVER%.*} || die
72     mlink multiarch-wrapper /usr/bin/gst-typefind || die
73     mlink multiarch-wrapper /usr/bin/gst-typefind-${PVER%.*} || die
74     mlink multiarch-wrapper /usr/bin/gst-xmlinspect || die
75     mlink multiarch-wrapper /usr/bin/gst-xmlinspect-${PVER%.*} || die
76     mlink multiarch-wrapper /usr/bin/gst-xmllaunch || die
77     mlink multiarch-wrapper /usr/bin/gst-xmllaunch-${PVER%.*} || die
78     mlink multiarch-wrapper /usr/$(mlibdir)/gstreamer-${PVER%.*}/gst-plugin-scanner || die
79     fi
80    
81     minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die
82     }