Ticket #12676: arc-doc-universal.diff

File arc-doc-universal.diff, 3.2 KB (added by nox@…, 17 years ago)
  • files/patch-Makefile

     
    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)
    66 #SYSTEM = -DGEMDOS=1 -fstrength-reduce -fomit-frame-pointer -finline-functions -fdefer-pop -mpcrel
     
    1010+#SYSTEM = -DSYSV=1
    1111 
    1212-OPT = -O
    13 +OPT = -O2
    1413 # For MWC 3.0 on the Atari ST, use:
    1514 #CFLAGS = -VCOMPAC -VPEEP
    1615 CFLAGS = $(OPT) $(SYSTEM)
    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
  • Portfile

     
    33PortSystem        1.0
    44name              arc
    55version           5.21o
     6revision          1
    67categories        archivers sysutils
    78description       create and extract files from dos .arc archives
    89maintainers       jc@crazic.ru
     
    1011homepage          http://arc.sourceforge.net/
    1112master_sites      sourceforge
    1213extract.suffix    .tgz
    13 checksums         md5 3b30c739b42b2fe8ac4ec0a05f34f284
    1414
    15 use_configure     no
     15checksums         md5 3b30c739b42b2fe8ac4ec0a05f34f284 \
     16                  sha1 4b803eae04976072fae88d4dbfc4b3e45796f8f3 \
     17                  rmd160 2897f62452f59efcb757cd5447d6d330df0cfdd1
    1618
    1719patchfiles        patch-Makefile patch-marc.c
    1820
    19 post-build  {
    20     system "strip ${build.dir}/$name ${build.dir}/m$name"
     21use_configure     no
     22
     23set CFLAGS        ${configure.cflags}
     24
     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
    26 
    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
     29build.args        "OPT=\"${CFLAGS}\""
     30
     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 {}
     44
     45livecheck.regex "<title>${name} ${name}-(\\d+(?:\\.\\d+)*\[a-z\]?) released.*</title>"
    3346