Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27189 - (show annotations) (download)
Wed Dec 2 14:48:27 2015 UTC (8 years, 6 months ago) by niro
File size: 2206 byte(s)
-does not respect --program-suffix=-$(mabi) properly
1 # $Id$
2
3 PVER="1.6.1"
4 _realPNAME="gstreamer"
5 _majorPVER="1.0"
6
7 PNAME="gstreamer${_majorPVER}"
8 PBUILD="r1"
9
10 STATE="disabled"
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.44
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.44"
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 )
41
42 UP2DATE="updatecmd http://gstreamer.freedesktop.org/src/${_realPNAME}/ | grep ${_realPNAME}-${_majorPVER%.*} | lasttarball xz"
43
44 src_compile()
45 {
46 # use libexecdir=/usr/$(mlibdir)
47 # the makefile installes the libexec data into a gstreamer-0.10 dir
48 # which gets already installed in /usr/$(mlibdir)
49 mconfigure \
50 --libexecdir=/usr/$(mlibdir) \
51 --enable-introspection \
52 --disable-tests \
53 --disable-examples \
54 --disable-gtk-doc \
55 || die
56
57 # fix broken as-needed support
58 all-abis "sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || die"
59
60 mmake || die
61 }
62
63 src_install()
64 {
65 local executables
66 local i
67
68 if [[ ${ARCH} = x86_64 ]]
69 then
70 executables="gst-feedback gst-feedback gst-inspect gst-launch gst-typefind gst-xmlinspect gst-xmllaunch"
71
72 # m32
73 MULTILIB_ONLY_ABI=m32 mmake DESTDIR=${BINDIR} install || die
74 for i in ${executables}
75 do
76 mv ${BINDIR}/usr/bin/${i}-${_majorPVER}{,-m32} || die
77 done
78 # m64
79 MULTILIB_ONLY_ABI=m32 mmake DESTDIR=${BINDIR} install || die
80 for i in ${executables}
81 do
82 mv ${BINDIR}/usr/bin/${i}-${_majorPVER}{,-m64} || die
83 done
84 # install multiarch-wrapper
85 for i in ${executables}
86 do
87 mlink multiarch-wrapper /usr/bin/${i}-${_majorPVER} || die
88 done
89 else
90 mmake DESTDIR=${BINDIR} install || die
91 fi
92
93 minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die
94 }