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

PortSystem          1.0

name                bsdiff
version             4.3
revision            1
categories          devel
license             BSD
platforms           darwin
maintainers         nomaintainer

description         Generates and applies patches to binary files

long_description    This is a pair of tools for building (bsdiff) and applying \
                    (bspatch) binary patches. When applied to two versions of \
                    the same executable the patches produced are significantly \
                    smaller than those generated by other binary diff tools \
                    (e.g. xdelta).

homepage            http://www.daemonology.net/bsdiff/
master_sites        ${homepage}

checksums           rmd160  27bb255b5dd5aa56d3a076dac9ca76d238a79a04 \
                    sha256  18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48

depends_lib         port:bzip2

patchfiles          patch-bspatch.c.diff \
                    patch-Makefile.diff

use_configure       no

variant universal {}

build.env-append    CC="${configure.cc}" \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

destroot.destdir    PREFIX=${destroot}${prefix}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar