Magellan Linux

Annotation of /trunk/extras/gstreamer1.0/gstreamer1.0-1.14.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31464 - (hide annotations) (download)
Fri Jul 13 12:43:24 2018 UTC (5 years, 11 months ago) by niro
File size: 2135 byte(s)
auto added: ver bump to 1.14.1-r1
1 niro 31464 # $Id$
2    
3     PVER="1.14.1"
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.54
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.54"
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 multilib mbuild mtools
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     # use libexecdir=/usr/$(mlibdir)
46     # the makefile installes the libexec data into a gstreamer-0.10 dir
47     # which gets already installed in /usr/$(mlibdir)
48     mconfigure \
49     --libexecdir=/usr/$(mlibdir) \
50     --enable-introspection \
51     --disable-tests \
52     --disable-examples \
53     --disable-gtk-doc \
54     || die
55    
56     # fix broken as-needed support
57     all-abis "sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || die"
58    
59     mmake || die
60     }
61    
62     src_install()
63     {
64     local executables
65     local i
66    
67     if [[ ${ARCH} = x86_64 ]]
68     then
69     executables="gst-inspect gst-launch gst-typefind"
70    
71     # m32
72     MULTILIB_ONLY_ABI=m32 mmake DESTDIR=${BINDIR} install || die
73     for i in ${executables}
74     do
75     mv ${BINDIR}/usr/bin/${i}-${_majorPVER}{,-m32} || die
76     done
77     # m64
78     MULTILIB_ONLY_ABI=m64 mmake DESTDIR=${BINDIR} install || die
79     for i in ${executables}
80     do
81     mv ${BINDIR}/usr/bin/${i}-${_majorPVER}{,-m64} || die
82     done
83     # install multiarch-wrapper
84     for i in ${executables}
85     do
86     mlink multiarch-wrapper /usr/bin/${i}-${_majorPVER} || die
87     done
88     else
89     mmake DESTDIR=${BINDIR} install || die
90     fi
91    
92     minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die
93     }