Updated sdl_gfx to support secondaryArchSuffix, TODO: get TEST to work

This commit is contained in:
Scott McCreary
2013-11-03 04:05:40 -08:00
parent 3dbc2af624
commit a1e46ff4f8
2 changed files with 43 additions and 32 deletions

View File

@@ -8,32 +8,33 @@ COPYRIGHT="1999-2012 A. Schiffler"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
sdl_gfx = $portVersion compat >= 2
sdl_gfx$secondaryArchSuffix = $portVersion compat >= 2
lib:libSDL_gfx = 14.9.1 compat >= 14
"
REQUIRES="
haiku
libsdl
haiku$secondaryArchSuffix >= $haikuVersion
libsdl$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libsdl
devel:libsdl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku_devel
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:aclocal
cmd:autoconf
cmd:gcc
cmd:ld
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:pkg_config
cmd:sdl_config
cmd:sdl_config$secondaryArchSuffix
"
SOURCE_DIR="SDL_gfx-$portVersion"
@@ -63,22 +64,28 @@ INSTALL()
}
PROVIDES_devel="
devel:SDL_gfx = 14.9.1 compat >= 0
devel:libSDL_gfx = 14.9.1 compat >= 0
devel:libSDL_gfx = $portVersion compat >= 2.0
devel:sdl_gfx = 14.9.1 compat >= 0
sdl_gfx${secondaryArchSuffix}_devel = $portVersion compat >= 2
devel:sdl_gfx$secondaryArchSuffix = 14.9.1 compat >= 14
devel:libSDL_gfx$secondaryArchSuffix = 14.9.1 compat >= 14
"
REQUIRES_devel="
sdl_gfx == $portVersion base
sdl_gfx$secondaryArchSuffix == $portVersion base
"
TEST()
{
cd Test
./autogen.sh
runConfigure ./configure
# fails to configure due to missing sdl_gfx
make
ls
TestABGR
TestFonts
TestFramerate
TestImageFilter
TestGfxBlit
TestGfxPrimitives
TestGfxTexture
TestRotozoom
TestShrink
}