Ticket #30078: arj.diff
File arj.diff, 1.8 KB (added by nerdling (Jeremy Lavergne), 13 years ago) |
---|
-
files/patch-fardata.c.diff
1 --- fardata.c.orig 2011-08-30 16:06:37.000000000 -0400 2 +++ fardata.c 2011-08-30 16:06:58.000000000 -0400 3 @@ -188,17 +188,6 @@ 4 * 5 */ 6 7 -/* Length-limited strlen() */ 8 - 9 -static int strnlen(const char FAR *s, int count) 10 -{ 11 - const char FAR *sc; 12 - 13 - for(sc=s; *sc!='\0'&&count--; ++sc) 14 - ; 15 - return(sc-s); 16 -} 17 - 18 /* Hex representation of digits */ 19 20 static char adigit(unsigned long n, int is_uc) -
Portfile
23 23 checksums rmd160 80f8a1a8cd203f73def8e957d96563a4dba80153 \ 24 24 sha256 589e4c9bccc8669e7b6d8d6fcd64e01f6a2c21fe10aad56a83304ecc3b96a7db 25 25 26 platform darwin {27 pre-fetch {28 if {${os.major} > 10} {29 ui_error "${name} will only build on Mac OS X 10.6 Snow Leopard or earlier"30 return -code error "incompatible Mac OS X version"31 }32 }33 }34 35 26 post-extract { 36 27 if {[file exists ${prefix}/share/libtool/config/config.guess]} { 37 28 copy -force ${prefix}/share/libtool/config/config.guess ${prefix}/share/libtool/config/config.sub ${autoconf.dir} … … 43 34 patchfiles patch-configure.in patch-environ.c \ 44 35 patch-makefile.in patch-postproc.c \ 45 36 patch-uxspec.c 37 platform darwin { 38 if {${os.major} > 10} { 39 patchfiles-append patch-fardata.c.diff 40 } 41 } 46 42 43 47 44 post-patch { 48 45 # as: Flag option -o has already been seen! 49 46 reinplace {s|-o$@|-o $@|g} ${worksrcpath}/gnu/makefile.in