# $Id: Portfile 31059 2007-11-15 01:05:10Z nox@macports.org $

PortSystem      1.0

name            flip
version         20050821
categories      textproc
platforms       darwin
maintainers     nomaintainer
description     convert text file line endings

long_description \
    Flip converts line endings of text files between Macintosh, Unix and \
    MS-DOS formats. It automatically recognizes the current line endings, \
    and leaves binary files and timestamps intact. It does not convert \
    files to a different character set.

homepage        http://ccrma-www.stanford.edu/~craig/utility/flip/
use_bzip2       yes

checksums       md5 27ddb3be9f81617c016aecb776513315 \
                sha1 3cd1526d359d18fc3ae8cd6e57af25726ff56fc9 \
                rmd160 c9c4f727a41fb943b7516ba71f03fc35f70f482e 

use_configure   no

build {
    system "cd ${worksrcpath} && \
        g++ [join ${configure.cflags}] -o flip flip.cpp"
}

destroot {
    xinstall -s ${worksrcpath}/flip ${destroot}${prefix}/bin
}

variant universal {
    configure.cflags-append ${configure.universal_cflags}
}

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

