Ticket #45484: patch-Makefile.diff.diff

File patch-Makefile.diff.diff, 2.4 KB (added by jpo@…, 10 years ago)
  • patch-Makefile.diff

    old new  
    1 --- Makefile.orig       2010-07-20 09:17:25.000000000 +0200
    2 +++ Makefile    2010-07-20 09:18:24.000000000 +0200
    3 @@ -1,10 +1,10 @@
    4  .SUFFIXES:     .html .xml .sgml .1 .3 .7 .md5 .tar.gz .1.txt .3.txt .7.txt .1.sgml .3.sgml .7.sgml .h .h.html .1.ps .3.ps .7.ps
    5  
    6 -PREFIX         = /usr/local
    7 +PREFIX         = @PREFIX@
    8  BINDIR         = $(PREFIX)/bin
    9  INCLUDEDIR     = $(PREFIX)/include
    10  LIBDIR         = $(PREFIX)/lib
    11 -MANDIR         = $(PREFIX)/man
    12 +MANDIR         = $(PREFIX)/share/man
    13  EXAMPLEDIR     = $(PREFIX)/share/examples/mandoc
    14  INSTALL                = install
    15  INSTALL_PROGRAM        = $(INSTALL) -m 0755
    16 @@ -169,7 +169,7 @@
    17         mkdir -p $(DESTDIR)$(MANDIR)/man7
    18         $(INSTALL_PROGRAM) mandoc $(DESTDIR)$(BINDIR)
    19         $(INSTALL_MAN) mandoc.1 $(DESTDIR)$(MANDIR)/man1
    20 -       $(INSTALL_MAN) man.7 mdoc.7 roff.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7
    21 +       $(INSTALL_MAN) mdoc.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7
    22         $(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR)
     1--- Makefile.orig       2014-08-10 13:26:46.000000000 -0400
     2+++ Makefile    2014-10-20 01:03:29.000000000 -0400
     3@@ -36,11 +36,11 @@
    234 
    24  uninstall:
     5 CFLAGS         += -g -DHAVE_CONFIG_H
     6 CFLAGS         += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
     7-PREFIX          = /usr/local
     8+PREFIX          = @PREFIX@
     9 BINDIR          = $(PREFIX)/bin
     10 INCLUDEDIR      = $(PREFIX)/include/mandoc
     11 LIBDIR          = $(PREFIX)/lib/mandoc
     12-MANDIR          = $(PREFIX)/man
     13+MANDIR          = $(PREFIX)/share/man
     14 EXAMPLEDIR      = $(PREFIX)/share/examples/mandoc
     15 
     16 INSTALL                 = install
     17@@ -67,18 +67,18 @@
     18 # system that's not OpenBSD or NetBSD.  If uncommented, apropos(1)
     19 # and makewhatis(8) will use manpath(1) to get the MANPATH variable.
     20 #
     21-#CFLAGS                += -DUSE_MANPATH
     22+CFLAGS         += -DUSE_MANPATH
     23 
     24 # On some systems, SQLite3 may be installed below /usr/local.
     25 # In that case, uncomment the following two lines.
     26 #
     27-#CFLAGS                += -I/usr/local/include
     28-#DBLIB         += -L/usr/local/lib
     29+CFLAGS         += -I$(PREFIX)/include
     30+DBLIB          += -L$(PREFIX)/lib
     31 
     32 # OpenBSD has the ohash functions in libutil.
     33 # Comment the following line if your system doesn't.
     34 #
     35-DBLIB          += -lutil
     36+#DBLIB         += -lutil
     37 
     38 SBINDIR                 = $(PREFIX)/sbin
     39 
     40@@ -97,7 +97,7 @@
     41 # If your system does not support static binaries, comment this,
     42 # for example on Mac OS X.
     43 #
     44-STATIC          = -static
     45+#STATIC                 = -static
     46 
     47 # Linux requires -pthread for statical linking.
     48 #