# -*- 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

PortSystem              1.0
PortGroup               cmake 1.1

name                    libLASi
version                 1.1.3
revision                1
categories              print
license                 LGPL
maintainers             {takeshi @tenomoto} openmaintainer
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                https://unifont.org/lasi/
platforms               darwin
master_sites            sourceforge:lasi
checksums           rmd160  9f18235090fcd5ac7b633ed119b0757816fd1b37 \
                    sha256  5e5d2306f7d5a275949fb8f15e6d79087371e2a1caa0d8f00585029d1b47ba3b \
                    size    726769

depends_build-append    port:pkgconfig

depends_lib             path:lib/pkgconfig/pango.pc:pango

post-configure {
    reinplace "s|@rpath|${prefix}/lib|" ${workpath}/build/src/CMakeFiles/LASi.dir/link.txt
}

cmake.out_of_source     yes
cmake.build_type        Release

build.target            LASi/fast

livecheck.distname      ${name}
