Updated sdl_net to add secondaryArchSuffix support

This commit is contained in:
Scott McCreary
2013-11-03 02:01:44 -08:00
parent 1fc7b020e8
commit 7626791faa
3 changed files with 17 additions and 71 deletions

View File

@@ -7,35 +7,39 @@ LICENSE="Zlib"
COPYRIGHT="1997-2012 Sam Lantinga"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
SECONDARY_ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
sdl_net =$portVersion
lib:libSDL_net_1.2 = $portVersion compat >= 1.2
devel:libSDL_net = $portVersion compat >= 1.2
sdl_net$secondaryArchSuffix = $portVersion
lib:libSDL_net$secondaryArchSuffix = 1.2_0.8.0 compat >= 1.2_0
lib:libSDL_net_1.2$secondaryArchSuffix = 0.8.0 compat >= 1.2
"
REQUIRES="
haiku
libsdl
haiku$secondaryArchSuffix >= $haikuVersion
libsdl$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libsdl
devel:libsdl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku_devel
haiku${secondaryArchSuffix}_devel
cmd:aclocal
cmd:autoconf
cmd:gcc
cmd:ld
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:pkg_config
cmd:sdl_config
"
PATCHES="sdl_net-1.2.8.patch"
SOURCE_DIR="SDL_net-$portVersion"
BUILD()
{
libtoolize --force --copy --install
@@ -49,7 +53,6 @@ INSTALL()
{
make install
prepareInstalledDevelLib libSDL_net
fixPkgconfig
@@ -58,10 +61,11 @@ INSTALL()
}
PROVIDES_devel="
devel:SDL_net = 0.8.0 compat >= 0
devel:libSDL_net = 0.8.0 compat >= 0
sdl_net${secondaryArchSuffix} = $portVersion compat >= 1.2
devel:libSDL_net$secondaryArchSuffix = 1.2_0.8.0 compat >= 0
devel:libSDL_net_1.2$secondaryArchSuffix = 0.8.0 compat >= 0
"
REQUIRES_devel="
sdl_net == $portVersion base
sdl_net$secondaryArchSuffix == $portVersion base
"