Annotation of /branches/R11-stable/extras/gstreamer1.0/gstreamer1.0-1.4.5-r1.smage2
Parent Directory | Revision Log
Revision 24279 -
(hide annotations)
(download)
Fri Feb 20 09:40:23 2015 UTC (9 years, 2 months ago) by niro
File size: 2100 byte(s)
Fri Feb 20 09:40:23 2015 UTC (9 years, 2 months ago) by niro
File size: 2100 byte(s)
-release branches/R11-stable
1 | niro | 23594 | # $Id$ |
2 | |||
3 | PVER="1.4.5" | ||
4 | _realPNAME="gstreamer" | ||
5 | _majorPVER="1.0" | ||
6 | |||
7 | PNAME="gstreamer${_majorPVER}" | ||
8 | PBUILD="r1" | ||
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.42 | ||
21 | >= dev-libs/libxml2-2.9" | ||
22 | |||
23 | SDEPEND=">= sys-dev/gettext-0.18 | ||
24 | >= sys-dev/bison-3.0 | ||
25 | >= dev-util/pkgconfig-0.25 | ||
26 | >= dev-libs/gobject-introspection-1.42" | ||
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 | ) | ||
40 | |||
41 | UP2DATE="updatecmd http://gstreamer.freedesktop.org/src/${_realPNAME}/ | grep ${_realPNAME}-${_majorPVER%.*} | lasttarball xz" | ||
42 | |||
43 | src_compile() | ||
44 | { | ||
45 | local myconf | ||
46 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) | ||
47 | |||
48 | # use libexecdir=/usr/$(mlibdir) | ||
49 | # the makefile installes the libexec data into a gstreamer-0.10 dir | ||
50 | # which gets already installed in /usr/$(mlibdir) | ||
51 | mconfigure \ | ||
52 | --libexecdir=/usr/$(mlibdir) \ | ||
53 | --enable-introspection \ | ||
54 | --disable-tests \ | ||
55 | --disable-examples \ | ||
56 | --disable-gtk-doc \ | ||
57 | ${myconf} \ | ||
58 | || die | ||
59 | |||
60 | mmake || die | ||
61 | } | ||
62 | |||
63 | src_install() | ||
64 | { | ||
65 | mmake DESTDIR=${BINDIR} install || die | ||
66 | |||
67 | if [[ ${ARCH} = x86_64 ]] | ||
68 | then | ||
69 | # install multiarch-wrapper | ||
70 | mlink multiarch-wrapper /usr/bin/gst-feedback-${_majorPVER} || die | ||
71 | mlink multiarch-wrapper /usr/bin/gst-inspect-${_majorPVER} || die | ||
72 | mlink multiarch-wrapper /usr/bin/gst-launch-${_majorPVER} || die | ||
73 | mlink multiarch-wrapper /usr/bin/gst-typefind-${_majorPVER} || die | ||
74 | mlink multiarch-wrapper /usr/bin/gst-xmlinspect-${_majorPVER} || die | ||
75 | mlink multiarch-wrapper /usr/bin/gst-xmllaunch-${_majorPVER} || die | ||
76 | mlink multiarch-wrapper /usr/$(mlibdir)/gstreamer-${_majorPVER}/gst-plugin-scanner || die | ||
77 | fi | ||
78 | |||
79 | minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die | ||
80 | } |