gstreamer-1.16.1.recipe revision eedb4151
1SUMMARY="Open source multimedia framework"
2DESCRIPTION="GStreamer is a library for constructing graphs of media-handling components. \
3The applications it supports range from simple Ogg/Vorbis playback, audio/video streaming \
4to complex audio (mixing) and video (non-linear editing) processing."
5HOMEPAGE="https://gstreamer.freedesktop.org/"
6COPYRIGHT="Erik Walthinsen"
7LICENSE="GNU LGPL v2"
8REVISION="1"
9SOURCE_URI="https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$portVersion.tar.xz"
10CHECKSUM_SHA256="02211c3447c4daa55919c5c0f43a82a6fbb51740d57fc3af0639d46f1cf4377d"
11
12ARCHITECTURES="!x86_gcc2 x86 x86_64"
13SECONDARY_ARCHITECTURES="x86"
14
15PROVIDES="
16	gstreamer$secondaryArchSuffix = $portVersion
17	cmd:gst_inspect_1.0$secondaryArchSuffix = $portVersion
18	cmd:gst_launch_1.0$secondaryArchSuffix = $portVersion
19	cmd:gst_stats_1.0$secondaryArchSuffix = $portVersion
20	cmd:gst_typefind_1.0$secondaryArchSuffix = $portVersion
21	lib:libgstbase_1.0$secondaryArchSuffix = 0.1601.0 compat >= 0
22	lib:libgstcontroller_1.0$secondaryArchSuffix = 0.1601.0 compat >= 0
23	lib:libgstnet_1.0$secondaryArchSuffix = 0.1601.0 compat >= 0
24	lib:libgstreamer_1.0$secondaryArchSuffix = 0.1601.0 compat >= 0
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	lib:libglib_2.0$secondaryArchSuffix
29	lib:libiconv$secondaryArchSuffix
30	lib:libintl$secondaryArchSuffix
31	lib:libxml2$secondaryArchSuffix
32	lib:libz$secondaryArchSuffix
33	"
34
35PROVIDES_devel="
36	gstreamer${secondaryArchSuffix}_devel = $portVersion
37	devel:libgstbase_1.0$secondaryArchSuffix = 0.1601.0 compat >= 0
38	devel:libgstcontroller_1.0$secondaryArchSuffix = 0.1601.0 compat >= 0
39	devel:libgstnet_1.0$secondaryArchSuffix = 0.1601.0 compat >= 0
40	devel:libgstreamer_1.0$secondaryArchSuffix = 0.1601.0 compat >= 0
41	"
42REQUIRES_devel="
43	gstreamer$secondaryArchSuffix == $portVersion base
44	"
45
46BUILD_REQUIRES="
47	haiku${secondaryArchSuffix}_devel
48	devel:libglib_2.0$secondaryArchSuffix
49	devel:libiconv$secondaryArchSuffix
50	devel:libintl$secondaryArchSuffix
51	devel:libxml2$secondaryArchSuffix
52	devel:libz$secondaryArchSuffix
53	"
54BUILD_PREREQUIRES="
55	cmd:aclocal
56	cmd:autoconf
57	cmd:bison
58	cmd:flex
59	cmd:gcc$secondaryArchSuffix
60	cmd:grep
61	cmd:ld$secondaryArchSuffix
62	cmd:libtoolize$secondaryArchSuffix
63	cmd:make
64	cmd:pkg_config$secondaryArchSuffix
65	cmd:python3
66	cmd:which
67	"
68
69BUILD()
70{
71	runConfigure ./configure \
72		--disable-gst-debug \
73		--disable-debug \
74		--disable-tests \
75		--disable-failing-tests \
76		--disable-check \
77		--disable-examples \
78		--disable-nls \
79		LIBS=-lnetwork
80	make $jobArgs
81}
82
83INSTALL()
84{
85	make install
86
87	rm $libDir/libgst*.la $libDir/gstreamer-1.0/*.la
88
89	prepareInstalledDevelLibs libgstreamer-1.0 libgstbase-1.0 \
90		libgstcontroller-1.0 libgstnet-1.0
91	fixPkgconfig
92
93	mv -f $includeDir/gstreamer-1.0/gst $includeDir/
94	rm -rf $includeDir/gstreamer-1.0
95
96	# devel package
97	packageEntries devel \
98			$developDir \
99			$dataDir/aclocal \
100			$dataDir/gtk-doc
101}
102