Summary: Graphic primitives, rotozoomer, framerate control and image filters Name: SDL_gfx Version: 2.0.25 Release: 1 License: LGPLv2 Group: System Environment/Libraries URL: http://www.ferzkopp.net/Software/SDL_gfx-2.0/ Source0: http://www.ferzkopp.net/Software/SDL_gfx-2.0/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: SDL-devel >= 1.2.14-3 Requires: SDL >= 1.2.14-3 %description The SDL_gfx library offers several components: Graphic Primitives, Rotozoomer, Framerate control, and MMX image filters. The Primitives component provides basic drawing routines: pixels, hlines, vlines, lines, aa-lines, rectangles, circles, ellipses, trigons, polygons, Bezier curves, and an 8x8 pixmap font for drawing onto any SDL Surface. Full alpha blending, hardware surface locking, and all surface depths are supported. The Rotozoomer can use interpolation for high quality output. %package devel Summary: Header files and static libraries for SDL_gfx Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: SDL-devel >= 1.2.14-3 %description devel This package contains the header files and static libraries for SDL_gfx. If you want to develop programs using SDL_gfx, you will need to install this package. %prep %setup -q %patch0 %build export CONFIG_SHELL=/usr/bin/ksh export CONFIG_ENV_ARGS=/usr/bin/ksh # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="xlc -q64" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-static \ --disable-mmx # remove "-mthreads" from libtool cat config.status | sed 's| -mthreads||g' > config.status.tmp mv -f config.status.tmp config.status chmod 0755 config.status ./config.status make %{?_smp_mflags} cp .libs/lib%{name}.so.15 lib%{name}.so.0 make distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-static \ --disable-mmx # remove "-mthreads" from libtool cat config.status | sed 's| -mthreads||g' > config.status.tmp mv -f config.status.tmp config.status chmod 0755 config.status ./config.status make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" # create the shared library with 32-bit and 64-bit shared objects rm -f ${RPM_BUILD_ROOT}%{_libdir}/libSDL_gfx.a cd .libs cp lib%{name}.so.15 lib%{name}.so.0 ${AR} -rv ${RPM_BUILD_ROOT}%{_libdir}/lib%{name}.a lib%{name}.so.0 ${AR} -q ${RPM_BUILD_ROOT}%{_libdir}/lib%{name}.a ../lib%{name}.so.0 ( cd ${RPM_BUILD_ROOT} for dir in include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc LICENSE README AUTHORS COPYING %{_libdir}/*.a /usr/lib/*.a %files devel %defattr(-,root,system,-) %{_includedir}/* %{_libdir}/*.la /usr/include/* /usr/lib/*.la %changelog * Fri Feb 07 2014 Michael Perzl - 2.0.25-1 - updated to version 2.0.25 * Sun Jul 22 2012 Michael Perzl - 2.0.24-1 - updated to version 2.0.24 * Sun Dec 04 2011 Michael Perzl - 2.0.23-1 - updated to version 2.0.23 * Sun Sep 12 2010 Michael Perzl - 2.0.22-1 - updated to version 2.0.22 * Tue Jun 01 2010 Michael Perzl - 2.0.21-1 - updated to version 2.0.21 * Tue Jun 01 2010 Michael Perzl - 2.0.21-1 - updated to version 2.0.21 * Mon Sep 28 2009 Michael Perzl - 2.0.20-1 - updated to version 2.0.20 * Thu Apr 23 2009 Michael Perzl - 2.0.19-1 - updated to version 2.0.19 * Mon Dec 22 2008 Michael Perzl - 2.0.18-1 - updated to version 2.0.18 * Sat Nov 01 2008 Michael Perzl - 2.0.17-1 - first version for AIX5L v5.1 and higher