source: trunk/dports/archivers/p7zip/Portfile @ 135804

Last change on this file since 135804 was 135804, checked in by larryv@…, 5 years ago

p7zip: Update to 9.38.1 (#47291)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 135804 2015-05-04 04:44:01Z larryv@macports.org $
2
3PortSystem      1.0
4
5name            p7zip
6version         9.38.1
7categories      archivers
8# contains unrar code which has a restrictive license
9license         LGPL-2.1+ Restrictive/Distributable
10maintainers     gmail.com:stuartwesterman openmaintainer
11platforms       darwin
12description     7-Zip implementation
13
14long_description \
15    p7zip is a port of 7-Zip, a file archiver with \
16    highest compression ratio.
17
18homepage        http://p7zip.sourceforge.net/
19
20master_sites    sourceforge:project/${name}/${name}/${version}
21distname        [strsed ${distname} {g/-/_/}]
22use_bzip2       yes
23distfiles       ${distname}_src_all${extract.suffix}
24
25checksums       rmd160  df76939ed67f3835fe4f8e92f2fec1ab4e4328c6 \
26                sha256  fd5019109c9a1bf34ad3257d37a6853eae8151ff50345f0a3ffba7d8c5fdb995
27
28variant universal {}
29
30configure {
31    copy -force ${worksrcpath}/makefile.macosx_32bits ${worksrcpath}/makefile.machine
32    reinplace "s|^CXX=c++|CXX=${configure.cxx}|g" \
33            ${worksrcpath}/makefile.machine
34    reinplace "s|^CC=cc|CC=${configure.cc}|g" \
35            ${worksrcpath}/makefile.machine
36    reinplace "s|-m32||g" \
37            ${worksrcpath}/makefile.machine
38    reinplace "s|\$(LOCAL_FLAGS)|[get_canonical_archflags] \$(LOCAL_FLAGS)|g" \
39            ${worksrcpath}/makefile.machine
40}
41
42# build 7za, 7z and 7zr
43build.target all3
44
45destroot.destdir    DEST_HOME=${prefix} \
46                    DEST_SHARE_DOC=${prefix}/share/doc/${name}-${version} \
47                    DEST_MAN=${prefix}/share/man \
48                    DEST_DIR=${destroot}
Note: See TracBrowser for help on using the repository browser.