Magellan Linux

Contents of /trunk/extras/gstreamer1.0/gstreamer1.0-1.0.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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