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-0 4-11 11:47:25.000000000 -07002 +++ Makefile 2007-0 4-11 11:48:38.000000000 -07003 @@ -35,17 +35,1 7 @@ 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 @@ 4 4 # On Solaris, use -DSYSV=1 -DNEED_ALPHASORT and set SYSVOBJ=scandir.o 5 5 # (See the Sysvarcstuf shar file) 6 6 #SYSTEM = -DGEMDOS=1 -fstrength-reduce -fomit-frame-pointer -finline-functions -fdefer-pop -mpcrel … … 10 10 +#SYSTEM = -DSYSV=1 11 11 12 12 -OPT = -O 13 +OPT = -O214 13 # For MWC 3.0 on the Atari ST, use: 15 14 #CFLAGS = -VCOMPAC -VPEEP 16 15 CFLAGS = $(OPT) $(SYSTEM) 17 16 18 17 # GNU's gcc is very nice, if you've got it. Otherwise just cc. 19 18 -#CC = cgcc -mshort -mbaserel 20 19 -CC = cc 21 20 +CC = gcc 21 +#CC = cc 22 22 23 23 # tmclock is only needed on Unix systems... 24 24 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
3 3 PortSystem 1.0 4 4 name arc 5 5 version 5.21o 6 revision 1 6 7 categories archivers sysutils 7 8 description create and extract files from dos .arc archives 8 9 maintainers jc@crazic.ru … … 10 11 homepage http://arc.sourceforge.net/ 11 12 master_sites sourceforge 12 13 extract.suffix .tgz 13 checksums md5 3b30c739b42b2fe8ac4ec0a05f34f28414 14 15 use_configure no 15 checksums md5 3b30c739b42b2fe8ac4ec0a05f34f284 \ 16 sha1 4b803eae04976072fae88d4dbfc4b3e45796f8f3 \ 17 rmd160 2897f62452f59efcb757cd5447d6d330df0cfdd1 16 18 17 19 patchfiles patch-Makefile patch-marc.c 18 20 19 post-build { 20 system "strip ${build.dir}/$name ${build.dir}/m$name" 21 use_configure no 22 23 set CFLAGS ${configure.cflags} 24 25 if {[variant_isset universal]} { 26 set CFLAGS "${CFLAGS} ${configure.universal_cflags}" 21 27 } 22 28 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 29 build.args "OPT=\"${CFLAGS}\"" 30 31 destroot { 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} 30 41 } 31 42 32 universal_variant no 43 variant universal {} 44 45 livecheck.regex "<title>${name} ${name}-(\\d+(?:\\.\\d+)*\[a-z\]?) released.*</title>" 33 46