Ticket #40486: multimarkdown.patch

File multimarkdown.patch, 1.4 KB (added by 521E328E-2A13-4749-826A-E4EF4F22A0F1@…, 11 years ago)
  • Portfile

     
    44PortSystem          1.0
    55PortGroup           github 1.0
    66
    7 github.setup        fletcher MultiMarkdown-4 4.2.1
     7github.setup        fletcher MultiMarkdown-4 4.3
    88name                multimarkdown
    99categories          textproc
    1010# peg-markdown is released under both the GPL and MIT licenses.
     
    3636    system -W ${worksrcpath} "git submodule update --init"
    3737}
    3838
    39 # https://github.com/fletcher/MultiMarkdown-4/issues/13
    40 patchfiles          patch-Makefile.diff
    41 
    4239use_configure       no
    4340
    4441variant universal {}
  • files/patch-Makefile.diff

     
    1 --- Makefile.orig       2013-08-15 21:30:50.000000000 -0500
    2 +++ Makefile    2013-08-15 21:31:09.000000000 -0500
    3 @@ -15,16 +15,16 @@
    4  ALL : $(PROGRAM) enumMap.txt
    5  
    6  %.o : %.c parser.h
    7 -       gcc -c $(CFLAGS) -o $@ $<
    8 +       $(CC) -c $(CFLAGS) -o $@ $<
    9  
    10  parser.c : parser.leg greg/greg parser.h
    11         greg/greg -o parser.c parser.leg
    12  
    13  $(GREG): greg
    14 -       CC=gcc $(MAKE) -C greg
    15 +       $(MAKE) -C greg
    16  
    17  $(PROGRAM) : $(OBJS)
    18 -       gcc $(CFLAGS) -o $@ $(OBJS)
    19 +       $(CC) $(CFLAGS) -o $@ $(OBJS)
    20  
    21  clean:
    22         rm -f $(PROGRAM) $(OBJS) parser.c enumMap.txt speed*.txt; \