1SUMMARY="SDL2 graphics drawing primitives and other support functions" 2DESCRIPTION=" 3The SDL2_gfx library evolved out of the SDL_gfxPrimitives code which provided \ 4basic drawing routines such as lines, circles or polygons and SDL_rotozoom \ 5which implemented a interpolating rotozoomer for SDL_surfaces." 6HOMEPAGE="http://www.ferzkopp.net/joomla/content/view/19/14/" 7COPYRIGHT="1999-2018 A. Schiffler" 8LICENSE="Zlib" 9REVISION="4" 10SOURCE_URI="http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-$portVersion.tar.gz" 11CHECKSUM_SHA256="63e0e01addedc9df2f85b93a248f06e8a04affa014a835c2ea34bfe34e576262" 12SOURCE_DIR="SDL2_gfx-$portVersion" 13 14ARCHITECTURES="all" 15SECONDARY_ARCHITECTURES="x86" 16 17libVersion="0.0.2" 18libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 19 20PROVIDES=" 21 sdl2_gfx$secondaryArchSuffix = $portVersion compat >= 1 22 lib:libSDL2_gfx_1.0$secondaryArchSuffix = $libVersionCompat 23 " 24REQUIRES=" 25 haiku$secondaryArchSuffix 26 lib:libGL$secondaryArchSuffix 27 lib:libSDL2_2.0$secondaryArchSuffix 28 " 29 30PROVIDES_devel=" 31 sdl2_gfx${secondaryArchSuffix}_devel = $portVersion compat >= 1 32 devel:libSDL2_gfx$secondaryArchSuffix = $libVersionCompat 33 devel:libSDL2_gfx_1.0$secondaryArchSuffix = $libVersionCompat 34 " 35REQUIRES_devel=" 36 sdl2_gfx$secondaryArchSuffix == $portVersion base 37 " 38 39BUILD_REQUIRES=" 40 haiku${secondaryArchSuffix}_devel 41 devel:libSDL2_2.0$secondaryArchSuffix 42 " 43BUILD_PREREQUIRES=" 44 cmd:aclocal 45 cmd:autoreconf 46 cmd:gcc$secondaryArchSuffix 47 cmd:ld$secondaryArchSuffix 48 cmd:libtoolize$secondaryArchSuffix 49 cmd:make 50 cmd:pkg_config$secondaryArchSuffix 51 " 52 53defineDebugInfoPackage sdl2_gfx$secondaryArchSuffix \ 54 $libDir/libSDL2_gfx-1.0.so.$libVersion 55 56BUILD() 57{ 58 autoreconf -fi 59 runConfigure ./configure --disable-mmx 60 make $jobArgs 61} 62 63INSTALL() 64{ 65 make install 66 67 #remove libtool file 68 rm $libDir/*.{a,la} 69 70 prepareInstalledDevelLibs libSDL2_gfx libSDL2_gfx-1.0 71 fixPkgconfig 72 73 packageEntries devel \ 74 $developDir 75} 76 77TEST() 78{ 79 cd Test 80 runConfigure ./configure 81# fails to configure due to missing sdl2_gfx 82 make $jobArgs 83 ls 84} 85