Files
haikuports/media-libs/sdl_net/sdl_net-1.2.8.recipe
2015-11-12 14:39:59 +01:00

74 lines
1.9 KiB
Bash

SUMMARY="Simple Direct Media Layer net library"
DESCRIPTION="With sdl_net users are able to use the same networking code on \
multiple platforms including Linux, Windows, and Haiku. The library makes \
handling data transfer and network connections easy. It features a sample \
chat client and server application; the chat client uses the GUIlib GUI \
framework library."
HOMEPAGE="http://www.libsdl.org/projects/SDL_net"
COPYRIGHT="1997-2012 Sam Lantinga"
LICENSE="Zlib"
REVISION="5"
SOURCE_URI="http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz"
CHECKSUM_SHA256="5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4"
SOURCE_DIR="SDL_net-$portVersion"
PATCHES="sdl_net-1.2.8.patch"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sdl_net$secondaryArchSuffix = $portVersion
lib:libSDL_net_1.2$secondaryArchSuffix = 0.8.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
"
PROVIDES_devel="
sdl_net${secondaryArchSuffix}_devel = $portVersion compat >= 1.2
devel:libSDL_net$secondaryArchSuffix =$portVersion compat >= 1.2
devel:libSDL_net_1.2$secondaryArchSuffix = 0.8.0 compat >= 0
"
REQUIRES_devel="
sdl_net$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsdl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:sdl_config$secondaryArchSuffix
"
BUILD()
{
libtoolize --force --copy --install
aclocal --force --install -I acinclude
touch NEWS AUTHORS ChangeLog
automake --add-missing
autoconf
runConfigure ./configure
make
}
INSTALL()
{
make install
prepareInstalledDevelLib libSDL_net
prepareInstalledDevelLib libSDL_net-1.2
fixPkgconfig
packageEntries devel $developDir
}