# $Id: Portfile 135804 2015-05-04 04:44:01Z larryv@macports.org $ PortSystem 1.0 name p7zip version 9.38.1 categories archivers # contains unrar code which has a restrictive license license LGPL-2.1+ Restrictive/Distributable maintainers gmail.com:stuartwesterman openmaintainer platforms darwin description 7-Zip implementation long_description \ p7zip is a port of 7-Zip, a file archiver with \ highest compression ratio. homepage http://p7zip.sourceforge.net/ master_sites sourceforge:project/${name}/${name}/${version} distname [strsed ${distname} {g/-/_/}] use_bzip2 yes distfiles ${distname}_src_all${extract.suffix} checksums rmd160 df76939ed67f3835fe4f8e92f2fec1ab4e4328c6 \ sha256 fd5019109c9a1bf34ad3257d37a6853eae8151ff50345f0a3ffba7d8c5fdb995 variant universal {} configure { copy -force ${worksrcpath}/makefile.macosx_32bits ${worksrcpath}/makefile.machine reinplace "s|^CXX=c++|CXX=${configure.cxx}|g" \ ${worksrcpath}/makefile.machine reinplace "s|^CC=cc|CC=${configure.cc}|g" \ ${worksrcpath}/makefile.machine reinplace "s|-m32||g" \ ${worksrcpath}/makefile.machine reinplace "s|\$(LOCAL_FLAGS)|[get_canonical_archflags] \$(LOCAL_FLAGS)|g" \ ${worksrcpath}/makefile.machine } # build 7za, 7z and 7zr build.target all3 destroot.destdir DEST_HOME=${prefix} \ DEST_SHARE_DOC=${prefix}/share/doc/${name}-${version} \ DEST_MAN=${prefix}/share/man \ DEST_DIR=${destroot}