Contents of /branches/R11-stable/extras/gstreamer1.0/gstreamer1.0-1.0.9-r1.smage2
Parent Directory | Revision Log
Revision 19288 -
(show annotations)
(download)
Tue Sep 3 14:55:28 2013 UTC (10 years, 8 months ago) by niro
File size: 2322 byte(s)
Tue Sep 3 14:55:28 2013 UTC (10 years, 8 months ago) by niro
File size: 2322 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | _realPNAME="gstreamer" |
4 | _realPVER="1.0.9" |
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 | cd ${SRCDIR} |
49 | |
50 | # fix build with bison-3.0 |
51 | mpatch gstreamer-1.0.9-bison30.patch || die |
52 | } |
53 | |
54 | src_compile() |
55 | { |
56 | local myconf |
57 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) |
58 | |
59 | # use libexecdir=/usr/$(mlibdir) |
60 | # the makefile installes the libexec data into a gstreamer-0.10 dir |
61 | # which gets already installed in /usr/$(mlibdir) |
62 | mconfigure \ |
63 | --libexecdir=/usr/$(mlibdir) \ |
64 | --enable-introspection \ |
65 | --disable-tests \ |
66 | --disable-examples \ |
67 | --disable-gtk-doc \ |
68 | ${myconf} \ |
69 | || die |
70 | |
71 | mmake || die |
72 | } |
73 | |
74 | src_install() |
75 | { |
76 | mmake DESTDIR=${BINDIR} install || die |
77 | |
78 | if [[ ${ARCH} = x86_64 ]] |
79 | then |
80 | # install multiarch-wrapper |
81 | mlink multiarch-wrapper /usr/bin/gst-feedback-${_majorPVER} || die |
82 | mlink multiarch-wrapper /usr/bin/gst-inspect-${_majorPVER} || die |
83 | mlink multiarch-wrapper /usr/bin/gst-launch-${_majorPVER} || die |
84 | mlink multiarch-wrapper /usr/bin/gst-typefind-${_majorPVER} || die |
85 | mlink multiarch-wrapper /usr/bin/gst-xmlinspect-${_majorPVER} || die |
86 | mlink multiarch-wrapper /usr/bin/gst-xmllaunch-${_majorPVER} || die |
87 | mlink multiarch-wrapper /usr/$(mlibdir)/gstreamer-${_majorPVER}/gst-plugin-scanner || die |
88 | fi |
89 | |
90 | minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die |
91 | } |