# -*- 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$ PortSystem 1.0 name unrar set my_name ${name}src version 3.9.5 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 cc7184f461a2fb13d9b80c780993d9f1 \ sha1 7314c643c203cb177dd44de1d507bed60bd65b49 \ rmd160 459b08eebe1d8a231bfb5e34d76e0a958738533d 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.check regex livecheck.url ${homepage}rar_add.htm livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)