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

Last change on this file since 79521 was 79521, checked in by jeremyhu@…, 9 years ago

p7zip: Build for the correct architecture

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 79521 2011-06-16 16:25:42Z jeremyhu@macports.org $
2
3PortSystem      1.0
4
5name            p7zip
6version         9.20.1
7revision        1
8categories      archivers
9maintainers     nomaintainer
10platforms       darwin
11description     7-Zip implementation
12
13long_description \
14    p7zip is a port of 7-Zip, a file archiver with \
15    highest compression ratio.
16
17homepage        http://p7zip.sourceforge.net/
18
19master_sites    sourceforge
20distname        [strsed ${distname} {g/-/_/}]
21use_bzip2       yes
22distfiles       ${distname}_src_all${extract.suffix}
23
24checksums           md5     bd6caaea567dc0d995c990c5cc883c89 \
25                    sha1    1cd567e043ee054bf08244ce15f32cb3258306b7 \
26                    rmd160  c3ff2dd12459282b46d9a68ab4af7800ff46039f
27
28patchfiles      patch-install.sh.diff
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    if {[variant_isset universal]} {
39        reinplace "s|\$(LOCAL_FLAGS)|${configure.universal_cflags} \$(LOCAL_FLAGS)|g" \
40            ${worksrcpath}/makefile.machine
41    }
42}
43
44# build 7za, 7z and 7zr
45build.target all3
46
47use_parallel_build      yes
48
49destroot.destdir    DEST_HOME=${prefix} \
50                    DEST_SHARE_DOC=${prefix}/share/doc/${name}-${version} \
51                    DEST_MAN=${prefix}/share/man \
52                    DEST_DIR=${destroot}
Note: See TracBrowser for help on using the repository browser.