git: 00f843c01247 - main - www/http-parser: unbreak the port's build against WITH_DEBUG

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Thu, 09 Dec 2021 06:07:08 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=00f843c0124714c6272631d2d096daa94776ccde

commit 00f843c0124714c6272631d2d096daa94776ccde
Author:     Michael Zhilin <mizhka@FreeBSD.org>
AuthorDate: 2021-12-09 06:06:28 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-12-09 06:06:28 +0000

    www/http-parser: unbreak the port's build against WITH_DEBUG
    
    When building WITH_DEBUG, bsd.port.mk would change the target from
    `install-strip' to plain `install', thus it must be patched in the
    same way as `install-strip' to avoid using -D option which meaning
    is different in GNU and BSD implementations of install(1).
    
    PR:     260277
---
 www/http-parser/files/patch-Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/www/http-parser/files/patch-Makefile b/www/http-parser/files/patch-Makefile
index b9d0e718c74b..b17097ae0660 100644
--- a/www/http-parser/files/patch-Makefile
+++ b/www/http-parser/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig	2019-04-16 06:33:39 UTC
+--- Makefile.orig	2020-03-24 10:54:06 UTC
 +++ Makefile
 @@ -54,7 +54,7 @@ CPPFLAGS_BENCH = $(CPPFLAGS_FAST)
  
@@ -9,7 +9,15 @@
  CFLAGS_BENCH = $(CFLAGS_FAST) -Wno-unused-parameter
  CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
  
-@@ -137,8 +137,8 @@ install: library
+@@ -131,14 +131,14 @@ tags: http_parser.c http_parser.h test.c
+ 	ctags $^
+ 
+ install: library
+-	$(INSTALL) -D  http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
+-	$(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
++	$(INSTALL) http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
++	$(INSTALL) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
+ 	ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
  	ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT)
  
  install-strip: library