# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
# $Id: Portfile 115887 2014-01-13 15:56:07Z g5pw@macports.org $

PortSystem          1.0

name                pev
version             0.70
maintainers         g5pw openmaintainer

categories          devel
description         pev is a multiplatform PE analysis toolkit that includes tools to retrieve and parsing information about Windows PE files.
long_description    ${description}

platforms           darwin
license             GPL-3+

homepage            http://sourceforge.net/projects/pev/

depends_lib         port:pcre

master_sites        sourceforge:project/pev/pev-${version}

patchfiles          lib_libpe_Makefile.patch
checksums           rmd160  9ffe6dccecdfbeba09e34f9a212c2abcf3861ef0 \
                    sha256  250396a06930d60a92e9bc86d7afb543d899ba12c007d1be5d09802a02908202

use_configure       no

variant universal {}

worksrcdir          ${name}

build.args-append   CC="${configure.cc} [get_canonical_archflags]" \
                    prefix=${prefix}

destroot.args-append \
                    prefix=${prefix} \
                    datarootdir=${destdir}${prefix}/share
