# -*- 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 84426 2011-09-26 09:20:32Z jmr@macports.org $

PortSystem              1.0
name                    libLASi
version                 1.1.0
categories              print
license                 LGPL
maintainers             takeshi
description             unicode PostScript printing engine
long_description \
        libLASi is a library written by Larry Siden that provides \
        a C++ stream output interface ( with operator << ) for    \
        creating PostScript documents that can contain characters \
        from any of the scripts and symbol blocks supported in    \
        Unicode and by Owen Taylor's Pango layout engine.
homepage                http://www.unifont.org/lasi/
platforms               darwin
master_sites            sourceforge:lasi
checksums               md5    f18091569ed4fface75453b097c67459         \
                        sha1   6b2db9dc8719eb7f31c63b70e04b2337812379a1 \
                        rmd160 468ffda874ab78676408e8fbe7ab5fee3acc7de7

depends_build           port:cmake     \
                        port:pkgconfig
depends_lib             path:lib/pkgconfig/pango.pc:pango

pre-configure {
    file mkdir ${workpath}/build
}
configure.dir           ${workpath}/build
configure.cmd           cmake
configure.pre_args      -DCMAKE_INSTALL_PREFIX=${prefix}
configure.post_args     ../${distname}

build.dir               ${workpath}/build

if {[variant_isset universal]} {
    configure.args-append -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\"
}
livecheck.type          regex
livecheck.url           ${homepage}
livecheck.regex         {([0-9]+\.[0-9]+\.[0-9]+) Latest Stable Release}
