git: 8aa68a1654d5 - main - devel/libinjection: Fix libinjection.so

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Mar 2023 19:24:45 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8aa68a1654d5557482f11971bb01083c0ee90803

commit 8aa68a1654d5557482f11971bb01083c0ee90803
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:39:49 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:20:04 +0000

    devel/libinjection: Fix libinjection.so
    
    - Bump PORTREVISION for package change
    
    $+ is not recognized by make, therefore the libinjection.so is incomplete.
---
 devel/libinjection/Makefile             |  1 +
 devel/libinjection/files/patch-Makefile | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/devel/libinjection/Makefile b/devel/libinjection/Makefile
index 750b3e0424f3..7aa44166964c 100644
--- a/devel/libinjection/Makefile
+++ b/devel/libinjection/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libinjection
 PORTVERSION=	3.10.0
+PORTREVISION=	1
 DISTVERSIONPREFIX=	v
 CATEGORIES=	devel
 
diff --git a/devel/libinjection/files/patch-Makefile b/devel/libinjection/files/patch-Makefile
new file mode 100644
index 000000000000..3469da190083
--- /dev/null
+++ b/devel/libinjection/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig	2017-05-21 20:44:26 UTC
++++ Makefile
+@@ -63,7 +63,7 @@ libinjection_html5.o: libinjection.h libinjection_html
+ 	${CC} ${CFLAGS} -c -o libinjection_html5.o libinjection_html5.c
+ 
+ ${SHAREDLIB}: ${OBJECTS}
+-	$(CC) $+ -shared -lc -o $@
++	$(CC) ${OBJECTS} -shared -lc -o $@
+ 
+ ${STATICLIB}: ${OBJECTS}
+ 	rm -f ${STATICLIB}