a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20471 2006-11-03 15:27:05Z blair@macports.org $
PortSystem 1.0
name tree
version 1.5.0
categories sysutils
maintainers nomaintainer@macports.org
description display tree-view of directories with optional color/HTML output
long_description Tree is a simple utility that displays a \
tree-view of directories and files. It has \
options to use ANSI color escape-sequences or \
ASCII graphic characters, and can also output in \
HTML format. Tree was written by Steve Baker \
for Linux.
master_sites ftp://mama.indstate.edu/linux/tree/
extract.suffix .tgz
checksums md5 e0d090c564e7ea5afa16bac80620c7e0
platforms darwin
configure {
reinplace "s%extern size_t MB_CUR_MAX%extern int MB_CUR_MAX%" \
${worksrcpath}/tree.c
}
build.args CFLAGS="-no-cpp-precomp"
destroot.args BINDIR=${destroot}${prefix}/bin \
MANDIR=${destroot}${prefix}/share/man/man1
post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 0644 -W ${worksrcpath} README CHANGES LICENSE \
${destroot}${prefix}/share/doc/${name}
}