mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
74 lines
1.9 KiB
Bash
74 lines
1.9 KiB
Bash
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="2"
|
|
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"
|
|
|
|
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
|
|
}
|