Annotation of /trunk/extras/gstreamer0.10/gstreamer0.10-0.10.36-r3.smage2
Parent Directory | Revision Log
Revision 29152 -
(hide annotations)
(download)
Fri May 26 07:12:57 2017 UTC (7 years, 4 months ago) by niro
File size: 2637 byte(s)
Fri May 26 07:12:57 2017 UTC (7 years, 4 months ago) by niro
File size: 2637 byte(s)
auto added: ver bump to 0.10.36-r3
1 | niro | 29152 | # $Id$ |
2 | |||
3 | PVER="0.10.36" | ||
4 | _realPNAME="gstreamer" | ||
5 | _majorPVER="${PVER%.*}" | ||
6 | |||
7 | PNAME="gstreamer${_majorPVER}" | ||
8 | PBUILD="r3" | ||
9 | |||
10 | PCAT="media-libs" | ||
11 | |||
12 | DESCRIPTION="Streaming media framework version ${_majorPVER}." | ||
13 | HOMEPAGE="http://gstreamer.sourceforge.net/" | ||
14 | |||
15 | # x86_64 specific dependencies | ||
16 | DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1" | ||
17 | SPECIAL_VARS="DEPEND_x86_64" | ||
18 | |||
19 | DEPEND="$(marchdepend) | ||
20 | >= dev-libs/glib2-2.52 | ||
21 | >= dev-libs/libxml2-2.7" | ||
22 | |||
23 | SDEPEND=">= sys-dev/gettext-0.18 | ||
24 | >= dev-util/pkgconfig-0.25 | ||
25 | >= dev-libs/gobject-introspection-1.52 | ||
26 | >= sys-dev/bison-3" | ||
27 | |||
28 | SRCFILE="${_realPNAME}-${PVER}.tar.xz" | ||
29 | SRCDIR="${BUILDDIR}/${_realPNAME}-${PVER}" | ||
30 | |||
31 | # enable linux32 emulation for x86_64 arches | ||
32 | EMUL_LINUX_32=true | ||
33 | |||
34 | sminclude mbuild mtools multilib | ||
35 | |||
36 | SRC_URI=( | ||
37 | http://gstreamer.freedesktop.org/src/${_realPNAME}/${SRCFILE} | ||
38 | mirror://${_realPNAME}/${SRCFILE} | ||
39 | mirror://${_realPNAME}/${_realPNAME}-${PVER}-bison3.patch | ||
40 | ) | ||
41 | |||
42 | UP2DATE="updatecmd http://gstreamer.freedesktop.org/src/${_realPNAME}/ | grep ${_realPNAME}-${_majorPVER} | lasttarball xz" | ||
43 | |||
44 | src_prepare() | ||
45 | { | ||
46 | munpack ${SRCFILE} || die | ||
47 | |||
48 | # fix build with bison-3 | ||
49 | mpatch ${_realPNAME}-${PVER}-bison3.patch || die | ||
50 | } | ||
51 | |||
52 | src_compile() | ||
53 | { | ||
54 | local myconf | ||
55 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) | ||
56 | |||
57 | # use libexecdir=/usr/$(mlibdir) | ||
58 | # the makefile installes the libexec data into a gstreamer-0.10 dir | ||
59 | # which gets already installed in /usr/$(mlibdir) | ||
60 | mconfigure \ | ||
61 | --libexecdir=/usr/$(mlibdir) \ | ||
62 | --enable-introspection \ | ||
63 | --disable-static \ | ||
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 || die | ||
81 | mlink multiarch-wrapper /usr/bin/gst-feedback-${_majorPVER} || die | ||
82 | mlink multiarch-wrapper /usr/bin/gst-inspect || die | ||
83 | mlink multiarch-wrapper /usr/bin/gst-inspect-${_majorPVER} || die | ||
84 | mlink multiarch-wrapper /usr/bin/gst-launch || die | ||
85 | mlink multiarch-wrapper /usr/bin/gst-launch-${_majorPVER} || die | ||
86 | mlink multiarch-wrapper /usr/bin/gst-typefind || die | ||
87 | mlink multiarch-wrapper /usr/bin/gst-typefind-${_majorPVER} || die | ||
88 | mlink multiarch-wrapper /usr/bin/gst-xmlinspect || die | ||
89 | mlink multiarch-wrapper /usr/bin/gst-xmlinspect-${_majorPVER} || die | ||
90 | mlink multiarch-wrapper /usr/bin/gst-xmllaunch || die | ||
91 | mlink multiarch-wrapper /usr/bin/gst-xmllaunch-${_majorPVER} || die | ||
92 | mlink multiarch-wrapper /usr/$(mlibdir)/gstreamer-${_majorPVER}/gst-plugin-scanner || die | ||
93 | fi | ||
94 | |||
95 | minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die | ||
96 | } |