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
RevLine 
[19376]1# $Id: Portfile 81015 2011-07-23 05:39:38Z jmr@macports.org $
[9988]2
[29375]3PortSystem      1.0
[28006]4
[29375]5name            p7zip
[77581]6version         9.20.1
[79521]7revision        1
[29375]8categories      archivers
[81015]9# contains unrar code which has a restrictive license
10license         LGPL-2.1+ Restrictive/Distributable
[70012]11maintainers     nomaintainer
[29375]12platforms       darwin
13description     7-Zip implementation
[28006]14
[9988]15long_description \
[29375]16    p7zip is a port of 7-Zip, a file archiver with \
17    highest compression ratio.
[9988]18
[29375]19homepage        http://p7zip.sourceforge.net/
[9988]20
[81015]21master_sites    sourceforge:project/${name}/${name}/${version}
[29375]22distname        [strsed ${distname} {g/-/_/}]
23use_bzip2       yes
24distfiles       ${distname}_src_all${extract.suffix}
[9988]25
[77581]26checksums           md5     bd6caaea567dc0d995c990c5cc883c89 \
27                    sha1    1cd567e043ee054bf08244ce15f32cb3258306b7 \
28                    rmd160  c3ff2dd12459282b46d9a68ab4af7800ff46039f
[28006]29
[32640]30patchfiles      patch-install.sh.diff
31
[15581]32configure {
[52195]33    copy -force ${worksrcpath}/makefile.macosx_32bits ${worksrcpath}/makefile.machine
[65040]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
[79521]38    reinplace "s|-m32||g" \
39            ${worksrcpath}/makefile.machine
[29375]40    if {[variant_isset universal]} {
[32522]41        reinplace "s|\$(LOCAL_FLAGS)|${configure.universal_cflags} \$(LOCAL_FLAGS)|g" \
42            ${worksrcpath}/makefile.machine
[29375]43    }
[28423]44}
45
[70176]46# build 7za, 7z and 7zr
47build.target all3
48
[52195]49use_parallel_build      yes
50
[29375]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.