source: trunk/dports/archivers/arc/Portfile @ 68755

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

arc: support changing build_arch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 68755 2010-06-12 17:08:18Z ryandesign@macports.org $
2
3PortSystem        1.0
4name              arc
5version           5.21o
6revision          1
7categories        archivers sysutils
8description       create and extract files from dos .arc archives
9maintainers       crazic.ru:jc
10platforms         darwin
11long_description  ${description}
12homepage          http://arc.sourceforge.net/
13master_sites      sourceforge
14extract.suffix    .tgz
15
16checksums         md5 3b30c739b42b2fe8ac4ec0a05f34f284 \
17                  sha1 4b803eae04976072fae88d4dbfc4b3e45796f8f3 \
18                  rmd160 2897f62452f59efcb757cd5447d6d330df0cfdd1
19
20patchfiles        patch-Makefile patch-marc.c
21
22use_configure     no
23
24set CFLAGS        ${configure.cflags}
25
26variant universal {
27        set CFLAGS    "${CFLAGS} ${configure.universal_cflags}"
28}
29if {![variant_isset universal]} {
30        set CFLAGS    "${CFLAGS} ${configure.cc_archflags}"
31}
32
33build.args        CC=${configure.cc} \
34                  OPT="${CFLAGS}"
35
36destroot {
37        xinstall -W ${worksrcpath} ${name} m${name} ${destroot}${prefix}/bin
38        xinstall -W ${worksrcpath} -m 444 ${name}.1 ${destroot}${prefix}/share/man/man1
39
40        set docdir ${prefix}/share/doc/${name}-${version}
41        xinstall -d ${destroot}${docdir}
42        xinstall -W ${worksrcpath} -m 644 Arc[strsed ${version} {g/[^0-9]//}].doc Arcinfo COPYING LICENSE \
43                ${destroot}${docdir}
44}
45
46livecheck.regex "<title>${name} ${name}-(\\d+(?:\\.\\d+)*\[a-z\]?) released.*</title>"
47
Note: See TracBrowser for help on using the repository browser.