# -*- 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 76430 2011-02-23 03:20:42Z ryandesign@macports.org $

PortSystem              1.0

name                    hexdiff
version                 0.0.50
categories              textproc
platforms               darwin
maintainers             ryandesign

homepage                http://tboudet.free.fr/hexdiff/
master_sites            ${homepage}

distname                ${name}
dist_subdir             ${name}/${version}
worksrcdir              HexDiff

description             displays differences between two binary files

long_description        Visuel Hexdiff is a curses-based application \
                        designed to make it easy to visually detect the \
                        differences between two binary files

checksums               md5     68dbf4c610f4fd1817401bcf6c671b71 \
                        sha1    a84948b1d8c26e5a8e14b1a2a6e18f4e05a69f2f \
                        rmd160  8d8dfd719e1329b9f5ecc3df7fedcf83024baea9

depends_lib             port:ncurses

patchfiles              patch-Makefile \
                        patch-sel_file.c

use_configure           no

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

build.args              COMP="${configure.cc} ${archflags}" \
                        CFLAGS=${configure.cflags} \
                        CPPFLAGS=${configure.cppflags} \
                        LDFLAGS=${configure.ldflags}

destroot.args           OU_LE_METTRE=${destroot}${prefix}

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