mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
77 lines
1.5 KiB
Bash
77 lines
1.5 KiB
Bash
SUMMARY="SDL2 graphics drawing primitives and other support functions"
|
|
DESCRIPTION="
|
|
The SDL2_gfx library evolved out of the SDL_gfxPrimitives code which provided \
|
|
basic drawing routines such as lines, circles or polygons and SDL_rotozoom \
|
|
which implemented a interpolating rotozoomer for SDL_surfaces.
|
|
"
|
|
HOMEPAGE="http://www.ferzkopp.net/joomla/content/view/19/14/"
|
|
SOURCE_URI="http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d69bcbceb811b4e5712fbad3ede737166327f44b727f1388c32581dbbe8c599a"
|
|
LICENSE="Zlib"
|
|
COPYRIGHT="1999-2012 A. Schiffler"
|
|
REVISION="1"
|
|
SOURCE_DIR="SDL2_gfx-$portVersion"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
|
|
PROVIDES="
|
|
sdl2_gfx = $portVersion compat >= 1
|
|
lib:libsdl2_gfx_1.0 = 0.0.1 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libsdl2
|
|
lib:libgl
|
|
"
|
|
PROVIDES_devel="
|
|
sdl2_gfx_devel = $portVersion compat >= 1
|
|
devel:libsdl2_gfx
|
|
"
|
|
REQUIRES_devel="
|
|
sdl2_gfx == $portVersion base
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsdl2
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc${secondaryArchSuffix}
|
|
cmd:ld${secondaryArchSuffix}
|
|
cmd:libtool
|
|
cmd:make
|
|
cmd:pkg_config${secondaryArchSuffix}
|
|
cmd:sdl2_config${secondaryArchSuffix}
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure --disable-mmx
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
#remove libtool file
|
|
rm $libDir/*.la
|
|
|
|
prepareInstalledDevelLib libSDL2_gfx
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd Test
|
|
runConfigure ./configure
|
|
# fails to configure due to missing sdl_gfx
|
|
make
|
|
ls
|
|
}
|