# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 116082 2014-01-17 20:56:43Z devans@macports.org $

PortSystem      1.0

name            libass
version         0.10.2
categories      multimedia
license         ISC
maintainers     tds.net:coax openmaintainer
platforms       darwin
description     subtitle renderer for the ASS/SSA subtitle format

long_description \
    libass is a portable subtitle renderer for the \
    ASS/SSA (Advanced Substation Alpha/Substation Alpha) \
    subtitle format. It is mostly compatible with VSFilter.

depends_build   port:pkgconfig
depends_lib     port:fribidi \
                port:fontconfig \
                port:enca

configure.args  --enable-enca \
                --enable-fontconfig \
                --disable-harfbuzz \
                --disable-silent-rules

homepage        http://code.google.com/p/libass/
master_sites    googlecode

checksums       rmd160  9f79b17e28a1819b3141ea5d6335a727ccb92443 \
                sha256  6d3422b12ba8affc9fb1db2aaa905915f4c15c83a62bd3167a1c0fa9d2c465ff

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} COPYING Changelog ${destroot}${docdir}
}
