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

Last change on this file since 100613 was 81015, checked in by jmr@…, 9 years ago

p7zip: set license, update master_sites to avoid redirects

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