# $Id: Portfile 75159 2011-01-17 02:00:53Z rmstonecipher@macports.org $

PortSystem              1.0

name                    libharu
version                 2.2.0
revision                2
categories              print
platforms               darwin
maintainers             and.damore openmaintainer
description             a free, cross platform, open source library for generating PDF files
long_description        ${description} \
                        It supports supporting the following features: \
                        1.      Generating PDF files with lines, text, images. \
                        2.      Outline, text annotation, link annotation. \
                        3.      Compressing document with deflate-decode. \
                        4.      Embedding PNG, Jpeg images. \
                        5.      Embedding Type1 font and TrueType font. \
                        6.      Creating encrypted PDF files. \
                        7.      Using various character sets (ISO8859-1~16, MSCP1250~8, KOI8-R). \
                        8.      Supporting CJK fonts and encodings.

homepage                http://libharu.org
master_sites            ${homepage}/files/
use_bzip2               yes

depends_lib             port:libpng

checksums               md5     1f366cfcb3d38627bad2654073e3307f \
                        sha1    a76765426165974395fdc0e4de6a81eeaf7a237a \
                        rmd160  3e2cbef26fcd89f8664acbfcfdc8d88caf2015da

patchfiles              patch-hpdf_h.diff

configure.args-append --with-png=${prefix} \
                      --with-zlib=${prefix}
