From 5bbb70ecd7e7639483be47462a063cd76c19f5bd Mon Sep 17 00:00:00 2001 From: Begasus Date: Sat, 7 May 2016 01:29:42 +0200 Subject: [PATCH] sdl2_net, add new recipe (#589) --- media-libs/sdl2_net/sdl2_net-2.0.1.recipe | 73 +++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 media-libs/sdl2_net/sdl2_net-2.0.1.recipe diff --git a/media-libs/sdl2_net/sdl2_net-2.0.1.recipe b/media-libs/sdl2_net/sdl2_net-2.0.1.recipe new file mode 100644 index 000000000..4445787f3 --- /dev/null +++ b/media-libs/sdl2_net/sdl2_net-2.0.1.recipe @@ -0,0 +1,73 @@ +SUMMARY="Simple Direct Layer Net Library" +DESCRIPTION=" +sdl2_net s a network library that is used with the SDL library, \ +and almost as portable. It allows a programmer to use network functionality \ +without having to code different things for different platforms. It also \ +simplyfies the handling of network connections and data transfer." +HOMEPAGE="http://www.libsdl.org/projects/SDL_net/" +COPYRIGHT="1997-2012 Sam Lantinga" +LICENSE="Zlib" +REVISION="1" +SOURCE_URI="https://www.libsdl.org/projects/SDL_net/release/SDL2_net-$portVersion.tar.gz" +CHECKSUM_SHA256="15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21" +SOURCE_DIR="SDL2_net-$portVersion" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86 x86_64" + +PROVIDES=" + sdl2_net$secondaryArchSuffix = $portVersion compat >= 2.0 + lib:libSDL2_net$secondaryArchSuffix = $portVersion compat >= 2.0 + lib:libSDL2_net_2.0$secondaryArchSuffix = 0.0.1 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgl$secondaryArchSuffix + lib:libsdl2_2.0$secondaryArchSuffix + " + +PROVIDES_devel=" + sdl2_net${secondaryArchSuffix}_devel = $portVersion compat >= 2.0 + devel:libSDL2_net$secondaryArchSuffix = $portVersion compat >= 2.0 + devel:libSDL2_net_2.0$secondaryArchSuffix = 0.0.1 compat >= 0 + " +REQUIRES_devel=" + sdl2_net$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + devel:libsdl2$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtool + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + touch INSTALL NEWS README AUTHORS ChangeLog + libtoolize --force --copy --install + aclocal --force --install -I acinclude + autoconf + automake --add-missing + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libSDL2_net libSDL2_net-2.0 + fixPkgconfig + + packageEntries devel \ + $developDir +}