diff --git a/media-libs/sdl2_gfx/sdl2_gfx-2.0.x_svn.recipe b/media-libs/sdl2_gfx/sdl2_gfx-2.0.x_svn.recipe new file mode 100644 index 000000000..85b324c8d --- /dev/null +++ b/media-libs/sdl2_gfx/sdl2_gfx-2.0.x_svn.recipe @@ -0,0 +1,88 @@ +SUMMARY="SDL2_gfx - 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/" +SRC_URI="svn+svn://svn.code.sf.net/p/sdl2gfx/code/trunk" +#CHECKSUM_MD5="abc123" + +LICENSE="Zlib" +COPYRIGHT="1999-2012 A. Schiffler" + +REVISION="1" + +ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + sdl2_gfx = $portVersion compat >= 2 + lib:libSDL2_gfx = 14.9.1 compat >= 14 + " + +REQUIRES=" + haiku + libsdl2 + " + +BUILD_REQUIRES=" + devel:libsdl2 + " + +BUILD_PREREQUIRES=" + haiku_devel + cmd:aclocal + cmd:autoconf + cmd:gcc + cmd:ld + cmd:libtool + cmd:make + cmd:pkg_config + cmd:sdl2_config + " + +SOURCE_DIR="SDL2_gfx-$portVersion" + +#BUILD_PACKAGE_ACTIVATION_PHASE = "TEST" + +BUILD() +{ + ./autogen.sh + rm aclocal.m4 + libtoolize --force --copy --install + aclocal --force --install -I acinclude + aclocal -I acinclude + automake --foreign --include-deps --add-missing --copy + autoconf + autoreconf + runConfigure ./configure --disable-mmx + make +} + +INSTALL() +{ + make install + + prepareInstalledDevelLib libSDL2_gfx + fixPkgconfig + + packageEntries devel \ + $developDir +} + +PROVIDES_devel=" + devel:SDL2_gfx = 14.9.1 compat >= 0 + devel:libSDL2_gfx = 14.9.1 compat >= 0 + devel:libSDL2_gfx = $portVersion compat >= 2.0 + devel:sdl2_gfx = 14.9.1 compat >= 0 + " + +REQUIRES_devel=" + sdl2_gfx == $portVersion base + " + + +TEST() +{ + cd Test + runConfigure ./configure +# fails to configure due to missing sdl_gfx + make + ls +}