# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 66511 2010-04-16 00:04:00Z snc@macports.org $

PortSystem 1.0

name            testdisk
version         6.11
revision        4
categories      sysutils
platforms       darwin
maintainers     snc openmaintainer
description     TestDisk is a powerful free data recovery utility.
long_description    \
        TestDisk was primarily designed to help recover     \
        lost partitions and/or make non-booting disks bootable  \
        again when these symptoms are caused by faulty      \
        software, certain types of viruses or human error   \
        (such as accidentally erasing your Partition Table).    \
        Partition table recovery using TestDisk is really easy.

patchfiles	patch-configure.diff
depends_build   port:ncurses

depends_lib     port:e2fsprogs \
                port:libiconv \
                port:jpeg \
                port:ncurses \
                port:ntfsprogs \
                port:openssl \
                port:zlib \
		port:libewf

use_bzip2       yes

homepage        http://www.cgsecurity.org/wiki/TestDisk
master_sites    http://www.cgsecurity.org/
checksums       md5 11f8fe95dcd190b69b782efa65b29ba1 \
                sha1 6d25ceaed5a7f5e35466b0ad75a4bca104f66532 \
                rmd160 0021601688ec779debd0a225305845b42605aaf9

configure.cppflags-append   -I${prefix}/include/ossp

configure.args-append   --with-ncurses-lib=${prefix}/lib \
                        --with-ncurses-includes=${prefix}/include/ncurses \
                        --with-iconv-lib=${prefix}/lib \
                        --with-iconv-includes=${prefix}/include

# needed for testdisk 6.11's configure script
configure.cflags-append	-fnested-functions
