# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ PortSystem 1.0 name unrar set my_name ${name}src version 3.9.6 categories archivers platforms darwin freebsd maintainers nox openmaintainer description Extract, view & test RAR archives long_description \ The unRAR utility is a minor part of the RAR archiver and \ contains RAR uncompression algorithm. unRAR requires very \ small volume of memory to operate. homepage http://www.rarlab.com/ master_sites ${homepage}rar/ distname ${my_name}-${version} checksums md5 07d7c5dd3d3b778fc1870a981c43a3d3 \ sha1 b2c0f08060b8ec92f4439d41ed4c613f4b801ed8 \ rmd160 a5b73bf63de0888c17dd2203a40d47d9ba1a0a78 worksrcdir ${name} use_configure no set CXXFLAGS ${configure.cxxflags} set LDFLAGS ${configure.ldflags} if {[variant_isset universal]} { set CXXFLAGS "${CXXFLAGS} ${configure.universal_cxxflags}" set LDFLAGS "${LDFLAGS} ${configure.universal_ldflags}" } build.env-append CXX=${configure.cxx} build.env-append CXXFLAGS="${CXXFLAGS}" build.env-append LDFLAGS="${LDFLAGS}" build.args -f makefile.unix use_parallel_build yes destroot { set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin xinstall -m 0644 -W ${worksrcpath} license.txt readme.txt ${destroot}${docdir} } variant universal {} livecheck.type regex livecheck.url ${homepage}rar_add.htm livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)