# $Id: Portfile 90445 2012-03-05 22:08:09Z cal@macports.org $

PortSystem 1.0

name                libsdl_gfx
version             2.0.23
categories          devel graphics
platforms           macosx
maintainers         mww
license             LGPL-2.1
description         graphics primitives SDL extension
long_description    The SDL_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. The current components of \
                    the SDL_gfx library are: Graphic Primitives, \
                    Rotozoomer, Framerate control, MMX image filters. \
                    It is backwards compatible to the above mentioned \
                    code. It is written in plain C and can be used in C++ \
                    code.

homepage            http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx
master_sites        http://www.ferzkopp.net/Software/SDL_gfx-2.0/
distname            SDL_gfx-${version}

checksums           sha1    aae60e7fed539f3f8a0a0bd6da3bbcf625642596 \
                    rmd160  e793cf8fea390561513e2e743e644abc11bb3f36 \
                    sha256  41bd601d65bba19eeac80a62570ce120098414ece22de402a8ee81b10e07faea

use_autoreconf      yes

depends_lib         port:libsdl port:libiconv

post-extract {
    file mkdir ${worksrcpath}/m4
}

configure.args      --disable-mmx \
                    --disable-sdltest
build.args          LIBTOOL=glibtool

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
        LICENSE NEWS README ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      freecode
livecheck.name      sdl_gfx
