# $Id: Portfile 57758 2009-09-16 07:48:28Z ryandesign@macports.org $

PortSystem              1.0

name                    ttf2eot
version                 0.0.2-2
platforms               darwin
categories              print www
maintainers             ryandesign
license                 BSD/LGPLv2/LGPLv2.1
homepage                http://code.google.com/p/ttf2eot/
master_sites            googlecode

description             TrueType font (ttf) to Embeddable OpenType font (eot) \
                        converter

long_description        ${name} converts TrueType font (ttf) files into \
                        Embeddable OpenType font (eot) files for use in CSS \
                        @font-face rules for Internet Explorer for Windows

checksums               md5     97c9ceb0ded362bf2e6dd3a3a9360f8d \
                        sha1    c9a64216e7a090cb50f7a5074865218623dea75d \
                        rmd160  9710d38f4c33a42863d3c4a5aceffe6aac55f0ec

pre-fetch {
    if {"big" == ${os.endian}} {
        ui_error "${name} does not currently work on PowerPC Macs."
        ui_error "See http://code.google.com/p/ttf2eot/issues/detail?id=14"
        return -code error "incompatible processor"
    }
}

patchfiles              patch-Makefile.diff

use_configure           no

build.target            ${name}
build.env               CXX=${configure.cxx}

destroot {
    xinstall -m 755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} README ${docdir}
}
