# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem      1.0

name            libsdl_gfx-framework
set my_name     SDL_gfx
version         20110120
categories      devel graphics
platforms       macosx
supported_archs noarch
maintainers     nomaintainer
description     Framework version of libsdl_gfx

long_description \
    ${description}

homepage        http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/
distfiles

depends_run     port:libsdl_gfx port:libsdl-framework

use_configure   no
build           {}

destroot {
    set path ${frameworks_dir}/SDL_gfx.framework
    xinstall -d ${destroot}${path}/Versions/A/Headers

    ln -sf ${prefix}/lib/libSDL_gfx.dylib ${destroot}${path}/Versions/A/SDL_gfx
    ln -sf Versions/A/SDL_gfx ${destroot}${path}/SDL_gfx
    ln -sf Versions/A/Headers ${destroot}${path}/Headers

    set headers {
        framerate
        gfxBlitFunc
        gfxPrimitives
        gfxPrimitives_font
        imageFilter
        rotozoom
    }

    foreach h ${headers} {
        ln -s ${prefix}/include/SDL/SDL_${h}.h \
            ${destroot}${path}/Versions/A/Headers
    }
}

livecheck.type  none