Ignore:
Timestamp:
Sep 14, 2007, 12:46:51 PM (12 years ago)
Author:
nox@…
Message:

arc (closes #12676):

  • Added universal support.
  • Added standard doc installation.
  • Fixed livecheck.
  • Added sha1 and rmd160 checksums.
  • destroot now uses xinstall instead of file copy.
Location:
trunk/dports/archivers/arc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/arc/Portfile

    r27955 r29064  
    44name              arc
    55version           5.21o
     6revision          1
    67categories        archivers sysutils
    78description       create and extract files from dos .arc archives
     
    1112master_sites      sourceforge
    1213extract.suffix    .tgz
    13 checksums         md5 3b30c739b42b2fe8ac4ec0a05f34f284
     14
     15checksums         md5 3b30c739b42b2fe8ac4ec0a05f34f284 \
     16                  sha1 4b803eae04976072fae88d4dbfc4b3e45796f8f3 \
     17                  rmd160 2897f62452f59efcb757cd5447d6d330df0cfdd1
     18
     19patchfiles        patch-Makefile patch-marc.c
    1420
    1521use_configure     no
    1622
    17 patchfiles        patch-Makefile patch-marc.c
     23set CFLAGS        ${configure.cflags}
    1824
    19 post-build {
    20     system "strip ${build.dir}/$name ${build.dir}/m$name"
     25if {[variant_isset universal]} {
     26        set CFLAGS    "${CFLAGS} ${configure.universal_cflags}"
    2127}
    2228
    23 destroot    {
    24     xinstall -m 755 -d ${destroot}/${prefix}/bin
    25     xinstall -m 755 -d ${destroot}/${prefix}/share/man/man1
     29build.args        "OPT=\"${CFLAGS}\""
    2630
    27     file copy ${worksrcpath}/$name ${destroot}/${prefix}/bin
    28     file copy ${worksrcpath}/m$name ${destroot}/${prefix}/bin
    29     file copy ${worksrcpath}/$name.1 ${destroot}/${prefix}/share/man/man1
     31destroot {
     32        cd ${worksrcpath}
     33
     34        xinstall ${name} m${name} ${destroot}${prefix}/bin
     35        xinstall -m 0444 ${name}.1 ${destroot}${prefix}/share/man/man1
     36
     37        set docdir ${prefix}/share/doc/${name}-${version}
     38        xinstall -d ${destroot}${docdir}
     39        xinstall -m 0644 Arc[strsed ${version} {g/[^0-9]//}].doc Arcinfo COPYING LICENSE \
     40                ${destroot}${docdir}
    3041}
    3142
    32 universal_variant no
     43variant universal {}
    3344
     45livecheck.regex "<title>${name} ${name}-(\\d+(?:\\.\\d+)*\[a-z\]?) released.*</title>"
     46
  • trunk/dports/archivers/arc/files/patch-Makefile

    r23864 r29064  
    1 --- Makefile.orig       2007-04-11 11:47:25.000000000 -0700
    2 +++ Makefile    2007-04-11 11:48:38.000000000 -0700
    3 @@ -35,17 +35,17 @@ PROG =
     1--- Makefile.orig       2007-08-29 18:30:18.000000000 +0200
     2+++ Makefile    2007-08-29 18:31:01.000000000 +0200
     3@@ -35,17 +35,16 @@
    44 # On Solaris, use -DSYSV=1 -DNEED_ALPHASORT and set SYSVOBJ=scandir.o
    55 # (See the Sysvarcstuf shar file)
     
    1111 
    1212-OPT = -O
    13 +OPT = -O2
    1413 # For MWC 3.0 on the Atari ST, use:
    1514 #CFLAGS = -VCOMPAC -VPEEP
     
    1716 
    1817 # GNU's gcc is very nice, if you've got it. Otherwise just cc.
    19  #CC = cgcc -mshort -mbaserel
     18-#CC = cgcc -mshort -mbaserel
    2019-CC = cc
    2120+CC = gcc
     21+#CC = cc
    2222 
    2323 # tmclock is only needed on Unix systems...
    2424 TMCLOCK = tmclock.o
    25 @@ -72,7 +72,7 @@ marc$(PROG):  $(MOBJ) $(TMCLOCK)
    26         $(CC) $(OPT) -o marc$(PROG) $(MOBJ) $(TMCLOCK) $(LIBS)
    27  
    28  clean:
    29 -       -rm *.o arc$(PROG) marc$(PROG)
    30 +       -rm -f *.o arc$(PROG) marc$(PROG)
    31  
    32  arc.o: $(SRCDIR)arc.c  $(HEADER)
    33         $(CC) $(CFLAGS) -c $(SRCDIR)arc.c
Note: See TracChangeset for help on using the changeset viewer.