# $Id: Portfile 44538 2008-12-30 06:14:11Z blb@macports.org $

PortSystem      1.0

name            libtool
version         2.2.6a
categories      devel sysutils
maintainers     boeyms openmaintainer
description     GNU Libtool - The GNU Portable Library Tool

long_description \
    GNU libtool is a generic library support script. Libtool hides the  \
    complexity of using shared libraries behind a consistent, portable  \
    interface.

homepage        http://www.gnu.org/software/libtool/
platforms       darwin freebsd
master_sites    gnu

checksums       md5     8ca1ea241cd27ff9832e045fe9afe4fd \
                sha1    7b547877b1b78b547343e4678a531aece8949904 \
                rmd160  f8862338e2c6ea04332fd5aad4aad5bc35d0e152

depends_build   port:automake

worksrcdir      [strsed $distname {s/[a-z]*$//}]

configure.args  --program-prefix=g

use_parallel_build  yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS \
        TODO ${destroot}${docdir}
}

test.run        yes
test.target     check

livecheck.check regex
livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*\[a-z\]?)
