# $Id: Portfile,v 1.1 2006/04/30 00:38:30 yves Exp $

PortSystem  1.0
PortGroup   gnustep 1.0

name        ArtResources
version     0.1.2
platforms   darwin
maintainers yves@opendarwin.org

description  FreeFonts and Vera fonts for gnustep art backend.
long_description \
    FreeFonts and Vera fonts and mknfonts for gnustep art backend. \
    The Vera fonts are well-suited to on-screen use, and it is recommended \
    that you use these as your default fonts. \
    \
    The FreeFonts are not as well-suited as the Vera fonts to on-screen \
    use, but they contain a lot more characters.

master_sites  http://www.opendarwin.org/~yves/
checksums     md5 4a30d1f3b05d73d13e10264df62ae982
use_bzip2     yes

worksrcdir    .

post-patch {
    reinplace "s|GNUSTEP_ROOT|GNUSTEP_LOCAL_ROOT|g" \
        ${worksrcpath}/Makefile
    reinplace "s|FONT_DEST = |FONT_DEST = ${destroot}|g" \
        ${worksrcpath}/Makefile
}

build.args-append -C mknfonts

pre-destroot {
    xinstall -d ${destroot}${prefix}/GNUstep/Local/Library/Fonts
}
