# $Id$

PortSystem      1.0

name            libsdl_ttf-framework
version         20110120
categories      devel graphics
platforms       darwin
license         BSD
supported_archs noarch
maintainers     jmr openmaintainer
description     Framework version of libsdl_ttf

long_description \
    ${description}

homepage        http://www.libsdl.org/projects/SDL_ttf/
distfiles

depends_run     port:libsdl_ttf port:libsdl-framework

use_configure   no
build           {}

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

    ln -sf ${prefix}/lib/libSDL_ttf.dylib ${destroot}${path}/Versions/A/SDL_ttf
    ln -sf Versions/A/SDL_ttf ${destroot}${path}/SDL_ttf

    ln -sf ${prefix}/include/SDL/SDL_ttf.h ${destroot}${path}/Versions/A/Headers
    ln -sf Versions/A/Headers ${destroot}${path}/Headers
}

livecheck.type  none