Contents of /trunk/extras/gstreamer0.10/gstreamer0.10-0.10.36-r2.smage2
Parent Directory | Revision Log
Revision 20330 -
(show annotations)
(download)
Tue Dec 3 15:48:22 2013 UTC (10 years, 6 months ago) by niro
File size: 2435 byte(s)
Tue Dec 3 15:48:22 2013 UTC (10 years, 6 months ago) by niro
File size: 2435 byte(s)
-fixed up2dates PVER issue
1 | # $Id$ |
2 | |
3 | PVER="0.10.36" |
4 | _realPNAME="gstreamer" |
5 | _majorPVER="${PVER%.*}" |
6 | |
7 | PNAME="gstreamer${_majorPVER}" |
8 | PBUILD="r2" |
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.38 |
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.38" |
26 | |
27 | SRCFILE="${_realPNAME}-${PVER}.tar.xz" |
28 | SRCDIR="${BUILDDIR}/${_realPNAME}-${PVER}" |
29 | |
30 | # enable linux32 emulation for x86_64 arches |
31 | EMUL_LINUX_32=true |
32 | |
33 | sminclude mbuild mtools multilib |
34 | |
35 | SRC_URI=( |
36 | http://gstreamer.freedesktop.org/src/${_realPNAME}/${SRCFILE} |
37 | mirror://${_realPNAME}/${SRCFILE} |
38 | ) |
39 | |
40 | UP2DATE="updatecmd http://gstreamer.freedesktop.org/src/${_realPNAME}/ | grep ${_realPNAME}-${_majorPVER} | lasttarball xz" |
41 | |
42 | src_compile() |
43 | { |
44 | local myconf |
45 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) |
46 | |
47 | # use libexecdir=/usr/$(mlibdir) |
48 | # the makefile installes the libexec data into a gstreamer-0.10 dir |
49 | # which gets already installed in /usr/$(mlibdir) |
50 | mconfigure \ |
51 | --libexecdir=/usr/$(mlibdir) \ |
52 | --enable-introspection \ |
53 | --disable-static \ |
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 || die |
71 | mlink multiarch-wrapper /usr/bin/gst-feedback-${_majorPVER} || die |
72 | mlink multiarch-wrapper /usr/bin/gst-inspect || die |
73 | mlink multiarch-wrapper /usr/bin/gst-inspect-${_majorPVER} || die |
74 | mlink multiarch-wrapper /usr/bin/gst-launch || die |
75 | mlink multiarch-wrapper /usr/bin/gst-launch-${_majorPVER} || die |
76 | mlink multiarch-wrapper /usr/bin/gst-typefind || die |
77 | mlink multiarch-wrapper /usr/bin/gst-typefind-${_majorPVER} || die |
78 | mlink multiarch-wrapper /usr/bin/gst-xmlinspect || die |
79 | mlink multiarch-wrapper /usr/bin/gst-xmlinspect-${_majorPVER} || die |
80 | mlink multiarch-wrapper /usr/bin/gst-xmllaunch || die |
81 | mlink multiarch-wrapper /usr/bin/gst-xmllaunch-${_majorPVER} || die |
82 | mlink multiarch-wrapper /usr/$(mlibdir)/gstreamer-${_majorPVER}/gst-plugin-scanner || die |
83 | fi |
84 | |
85 | minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die |
86 | } |