1SUMMARY="Simple Direct Layer Net Library"
2DESCRIPTION="
3sdl2_net s a network library that is used with the SDL library, \
4and almost as portable. It allows a programmer to use network functionality \
5without having to code different things for different platforms. It also \
6simplyfies the handling of network connections and data transfer."
7HOMEPAGE="http://www.libsdl.org/projects/SDL_net/"
8COPYRIGHT="1997-2012 Sam Lantinga"
9LICENSE="Zlib"
10REVISION="4"
11SOURCE_URI="https://www.libsdl.org/projects/SDL_net/release/SDL2_net-$portVersion.tar.gz"
12CHECKSUM_SHA256="15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21"
13SOURCE_DIR="SDL2_net-$portVersion"
14
15ARCHITECTURES="all"
16SECONDARY_ARCHITECTURES="x86_gcc2 x86"
17
18PROVIDES="
19	sdl2_net$secondaryArchSuffix = $portVersion compat >= 2.0
20	lib:libSDL2_net_2.0$secondaryArchSuffix = 0.0.1 compat >= 0
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	lib:libgl$secondaryArchSuffix
25	lib:libsdl2_2.0$secondaryArchSuffix
26	"
27
28PROVIDES_devel="
29	sdl2_net${secondaryArchSuffix}_devel = $portVersion compat >= 2.0
30	devel:libSDL2_net$secondaryArchSuffix = $portVersion compat >= 2.0
31	devel:libSDL2_net_2.0$secondaryArchSuffix = 0.0.1 compat >= 0
32	"
33REQUIRES_devel="
34	sdl2_net$secondaryArchSuffix == $portVersion base
35	"
36
37BUILD_REQUIRES="
38	devel:libsdl2$secondaryArchSuffix
39	"
40BUILD_PREREQUIRES="
41	haiku${secondaryArchSuffix}_devel
42	cmd:aclocal
43	cmd:autoconf
44	cmd:automake
45	cmd:gcc$secondaryArchSuffix
46	cmd:ld$secondaryArchSuffix
47	cmd:libtool
48	cmd:make
49	cmd:pkg_config$secondaryArchSuffix
50	"
51
52BUILD()
53{
54	touch INSTALL NEWS README AUTHORS ChangeLog
55	libtoolize --force --copy --install
56	aclocal --force --install -I acinclude
57	autoconf
58	automake --add-missing
59	runConfigure ./configure --disable-static
60	make $jobArgs
61}
62
63INSTALL()
64{
65	make install
66
67	prepareInstalledDevelLibs libSDL2_net libSDL2_net-2.0
68	fixPkgconfig
69
70	rm $developLibDir/*.la
71
72	packageEntries devel \
73			$developDir
74}
75