1SUMMARY="A common library for parsing mms:// and mmsh:// type network streams"
2DESCRIPTION="LibMMS is a common library for parsing mms:// and mmsh:// type \
3network streams. These are commonly used to stream Windows Media Video \
4content over the web. LibMMS itself is only for receiving MMS stream, it \
5doesn't handle sending at all."
6HOMEPAGE="https://sourceforge.net/projects/libmms/"
7COPYRIGHT="2009 Xine project"
8LICENSE="GNU LGPL v2.1"
9REVISION="4"
10SOURCE_URI="https://downloads.sourceforge.net/libmms/libmms-$portVersion.tar.gz"
11CHECKSUM_SHA256="3c05e05aebcbfcc044d9e8c2d4646cd8359be39a3f0ba8ce4e72a9094bee704f"
12PATCHES="libmms-$portVersion.patchset"
13
14ARCHITECTURES="all"
15SECONDARY_ARCHITECTURES="x86"
16
17PROVIDES="
18	libmms$secondaryArchSuffix = $portVersion
19	lib:libmms$secondaryArchSuffix = 0.0.2 compat >= 0
20	"
21REQUIRES="
22	haiku$secondaryArchSuffix
23	lib:libglib_2.0$secondaryArchSuffix
24	lib:libiconv$secondaryArchSuffix
25	lib:libintl$secondaryArchSuffix
26	"
27
28PROVIDES_devel="
29	libmms${secondaryArchSuffix}_devel = $portVersion
30	devel:libmms$secondaryArchSuffix = 0.0.2 compat >= 0
31	"
32REQUIRES_devel="
33	libmms$secondaryArchSuffix == $portVersion base
34	"
35
36BUILD_REQUIRES="
37	haiku${secondaryArchSuffix}_devel
38	devel:libglib_2.0$secondaryArchSuffix
39	"
40BUILD_PREREQUIRES="
41	cmd:aclocal
42	cmd:autoconf
43	cmd:awk
44	cmd:gcc$secondaryArchSuffix
45	cmd:libtoolize$secondaryArchSuffix
46	cmd:make
47	cmd:pkg_config$secondaryArchSuffix
48	"
49
50BUILD()
51{
52	export CFLAGS="-D_BSD_SOURCE"
53	export LDFLAGS="-lnetwork -lbsd"
54
55	autoreconf -vfi
56	runConfigure ./configure --disable-static
57	make $jobArgs
58}
59
60INSTALL()
61{
62	make install
63
64	rm $libDir/libmms.la
65
66	prepareInstalledDevelLib libmms
67	fixPkgconfig
68
69	packageEntries devel \
70		$developDir
71}
72