gst_libav-1.16.1.recipe revision b1dd760d
1SUMMARY="LibAV based gstreamer plugin"
2DESCRIPTION="GStreamer LibAV plug-in contains one plugin with a set of elements using the \
3LibAV library code. It contains most popular decoders as well as very fast colorspace \
4conversion elements."
5HOMEPAGE="https://gstreamer.freedesktop.org/"
6COPYRIGHT="Erik Walthinsen"
7LICENSE="GNU LGPL v2
8	GNU GPL v2"
9REVISION="1"
10SOURCE_URI="https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-$portVersion.tar.xz"
11CHECKSUM_SHA256="e8a5748ae9a4a7be9696512182ea9ffa6efe0be9b7976916548e9d4381ca61c4"
12SOURCE_DIR="gst-libav-$portVersion"
13
14ARCHITECTURES="!x86_gcc2 x86 x86_64"
15SECONDARY_ARCHITECTURES="x86"
16
17PROVIDES="
18	gst_libav$secondaryArchSuffix = $portVersion
19	"
20REQUIRES="
21	haiku$secondaryArchSuffix
22	lib:libbz2$secondaryArchSuffix
23	lib:libglib_2.0$secondaryArchSuffix
24	lib:libgstapp_1.0$secondaryArchSuffix
25	lib:libgstaudio_1.0$secondaryArchSuffix
26	lib:libgstreamer_1.0$secondaryArchSuffix
27	lib:libgstvideo_1.0$secondaryArchSuffix
28	lib:libiconv$secondaryArchSuffix
29	lib:libintl$secondaryArchSuffix
30	lib:liborc_0.4$secondaryArchSuffix
31	lib:libxml2$secondaryArchSuffix
32	lib:libz$secondaryArchSuffix
33	"
34SUPPLEMENTS="
35	gstreamer$secondaryArchSuffix
36	"
37
38BUILD_REQUIRES="
39	haiku${secondaryArchSuffix}_devel
40	devel:libbz2$secondaryArchSuffix
41	devel:libglib_2.0$secondaryArchSuffix
42	devel:libgstapp_1.0$secondaryArchSuffix
43	devel:libgstaudio_1.0$secondaryArchSuffix
44	devel:libgstreamer_1.0$secondaryArchSuffix
45	devel:libgstvideo_1.0$secondaryArchSuffix
46	devel:libiconv$secondaryArchSuffix
47	devel:libintl$secondaryArchSuffix
48	devel:liborc_0.4$secondaryArchSuffix
49	devel:libxml2$secondaryArchSuffix
50	devel:libz$secondaryArchSuffix
51	"
52BUILD_PREREQUIRES="
53	cmd:aclocal
54	cmd:autoconf
55	cmd:automake
56	cmd:bison
57	cmd:flex
58	cmd:gcc$secondaryArchSuffix
59	cmd:grep
60	cmd:ld$secondaryArchSuffix
61	cmd:libtoolize$secondaryArchSuffix
62	cmd:make
63	cmd:orcc$secondaryArchSuffix
64	cmd:pkg_config$secondaryArchSuffix
65	cmd:python
66	cmd:python3
67	cmd:yasm
68	cmd:which
69	"
70
71BUILD()
72{
73	cd $sourceDir
74	./configure \
75		--enable-orc \
76		--enable-gpl \
77		--with-libav-extra-configure="--disable-mmx --disable-asm"
78	make $jobArgs
79}
80
81INSTALL()
82{
83	mkdir -p $libDir/gstreamer-1.0
84	cp -f $sourceDir/ext/libav/.libs/libgstlibav.so $libDir/gstreamer-1.0
85	strip $libDir/gstreamer-1.0/libgstlibav.so
86}
87