Ticket #29847: nawk-20110810.diff

File nawk-20110810.diff, 1.9 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • files/patch-makefile

     
    1 --- makefile.orig       2009-04-21 23:56:03.000000000 -0700
    2 +++ makefile    2009-04-21 23:56:05.000000000 -0700
     1--- makefile.orig       2011-06-11 09:13:08.000000000 -0500
     2+++ makefile    2011-08-12 18:53:56.000000000 -0500
    33@@ -25,12 +25,14 @@
    44 CFLAGS = -g
    55 CFLAGS = -O2
     
    1010 CC = cc
    1111 CC = gcc -Wall -g -Wwrite-strings
    1212 CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov
    13  CC = gcc -O4
     13 CC = gcc -O4 -Wall -pedantic -fno-strict-aliasing
    1414+CC = __CC__ -Wall -g
    1515 
    1616 YACC = bison -y
  • Portfile

     
    11# $Id$
    22
    33PortSystem 1.0
     4
    45name             nawk
    5 version          20110506
     6version          20110810
    67categories       lang
    78maintainers      toby
    89description      the one true awk
     
    1213
    1314master_sites     ${homepage}
    1415distname         awk
    15 checksums        md5 4d2b1002db5979a2f3a578e11b7d2fb3 \
    16                  sha1 567eb99d30337cb323bee39284527cecd3d45b02 \
    17                  rmd160 b9286a65f6f1887ede837e2b6328c13bfc327fa3
     16
     17checksums        sha1    333d93c746aa16e33c5c4aaf505009914cea4770 \
     18                 rmd160  0c8536e9d2212b05f77b9939a6d386dd819aaa66
     19
    1820dist_subdir      ${name}/${version}
    1921
    2022extract.mkdir    yes
     
    2224patchfiles       patch-makefile patch-run.c
    2325
    2426configure {
    25         reinplace s|__CFLAGS__|${configure.cflags}| ${worksrcpath}/makefile
     27        reinplace s|__CFLAGS__|[get_canonical_archflags]| ${worksrcpath}/makefile
    2628        reinplace s|__CC__|${configure.cc}| ${worksrcpath}/makefile
    2729}
    2830
     
    3436}
    3537
    3638livecheck.type  md5
    37 livecheck.md5   f794a7e47760bdacf89ed769c6789805
     39livecheck.md5   d570dfc1f684c4e4dfadcb33469011ad