# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       makefile 1.0

name            libb64
version         1.2.1
categories      mail net
license         Permissive

conflicts       base64

maintainers     nomaintainer
description     C library for fast encoding/decoding into and from base64
long_description \
                libb64 is a library of ANSI C routines for fast encoding/decoding data \
                into and from a base64-encoded format. C++ wrappers are included, \
                as well as the source code for standalone encoding and decoding executables.

homepage        https://libb64.sourceforge.net
master_sites    sourceforge
checksums       rmd160  4d830ddfce762c3ca6f441c5c2dca5326d072bd7 \
                sha256  20106f0ba95cfd9c35a13c71206643e3fb3e46512df3e2efb2fdbf87116314b2 \
                size    23316

use_zip         yes

patchfiles      patch-no-examples.diff

use_parallel_build  no

destroot {
    xinstall -m 755 ${worksrcpath}/base64/base64 ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/src/libb64.a ${destroot}${prefix}/lib
    file copy ${worksrcpath}/include/b64 ${destroot}${prefix}/include
}
