# $Id: Portfile 69520 2010-07-08 20:19:52Z jmr@macports.org $

PortSystem 1.0

name                createtorrent
version             1.1.4
revision        1
categories          sysutils
platforms           darwin
maintainers         nomaintainer
description         command line utility to create BitTorrent files
long_description    CreateTorrent is a small and fast command line utility to \
                    create BitTorrent files easily. BitTorrent files can be \
                    made from either one file or a collection of files that \
                    are grouped together into a directory.

homepage            http://www.createtorrent.com/
master_sites        ${homepage}
checksums           md5 922b18eeec74ea81f22a3392e2680307 \
                    sha1 f96fec9b8e1daa06d180f985f58b6d57a05d262d \
                    rmd160 3b15ca3db419d1043925aa0f6014afffd15b35fe
patchfiles          patch-configure

livecheck.type      regex
livecheck.regex     "<a href=createtorrent-(.*?).tar.gz>"

depends_lib         lib:libssl:openssl

configure.cflags-append	"-I${prefix}/include/"

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog \
        ${destroot}${prefix}/share/doc/${name}
}
