aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-19 16:01:32 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-19 17:30:37 +0000
commitf50c09806c5b0c199aa00788cc152dadec2a2ae7 (patch)
tree73063d410a2c4f750215f5133833129e5854f1f4
parent1f947192e8b64f1eb3ca89de202cbbd0c0e25c65 (diff)
downloadports-f50c09806c5b0c199aa00788cc152dadec2a2ae7.tar.gz
ports-f50c09806c5b0c199aa00788cc152dadec2a2ae7.zip
devel/libphk: Fix build with llvm16
- Add LICENSE Beerware - Refresh patches Sponsored by: The FreeBSD Foundation
-rw-r--r--devel/libphk/Makefile9
-rw-r--r--devel/libphk/files/patch-phk__expr.c8
-rw-r--r--devel/libphk/files/patch-test_argv_Makefile4
-rw-r--r--devel/libphk/files/patch-test_expr_Makefile4
4 files changed, 17 insertions, 8 deletions
diff --git a/devel/libphk/Makefile b/devel/libphk/Makefile
index dc623e7c3753..baad9d4a7016 100644
--- a/devel/libphk/Makefile
+++ b/devel/libphk/Makefile
@@ -9,6 +9,14 @@ MAINTAINER= bofh@FreeBSD.org
COMMENT= PHK's utilities functions
WWW= http://phk.freebsd.dk/phkrel/
+LICENSE= Beerware
+LICENSE_NAME= Beerware
+LICENSE_TEXT= "THE BEER-WARE LICENSE" (Revision 42): \
+ <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you \
+ can do whatever you want with this stuff. If we meet some day, and you think \
+ this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
USES= uidfix tar:tgz
# XXX static PIE libraries not yet supported by the base system
@@ -20,6 +28,7 @@ WRKSRC= ${WRKDIR}/Libphk
.include <bsd.port.options.mk>
.if defined(NO_PROFILE) || ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079 )
+CFLAGS+= -Wno-error=unused-but-set-variable
PLIST_SUB+= PROFILE="@comment "
.else
PLIST_SUB+= PROFILE=""
diff --git a/devel/libphk/files/patch-phk__expr.c b/devel/libphk/files/patch-phk__expr.c
index 1552f4182969..1ee09bae095b 100644
--- a/devel/libphk/files/patch-phk__expr.c
+++ b/devel/libphk/files/patch-phk__expr.c
@@ -1,6 +1,6 @@
---- phk_expr.c~ 2008-04-29 18:50:56.000000000 +0000
-+++ phk_expr.c 2008-09-08 09:17:19.205920000 +0000
-@@ -52,8 +52,8 @@
+--- phk_expr.c.orig 2008-04-29 18:50:56 UTC
++++ phk_expr.c
+@@ -52,8 +52,8 @@ dbg(struct e *e, const char *w)
{
if (1)
return;
@@ -11,7 +11,7 @@
}
/*
-@@ -289,7 +289,7 @@
+@@ -289,7 +289,7 @@ phk_expr(const char *p, char **errs)
if (e->err != NULL) {
if (errs != NULL)
asprintf(errs, "Expression error:\n%s\n%*.*s^ %s\n",
diff --git a/devel/libphk/files/patch-test_argv_Makefile b/devel/libphk/files/patch-test_argv_Makefile
index dc3d577904ea..81e89aab7d36 100644
--- a/devel/libphk/files/patch-test_argv_Makefile
+++ b/devel/libphk/files/patch-test_argv_Makefile
@@ -1,6 +1,6 @@
---- test/argv/Makefile.orig
+--- test/argv/Makefile.orig 2006-09-09 11:49:52 UTC
+++ test/argv/Makefile
-@@ -4,7 +4,7 @@
+@@ -4,7 +4,7 @@ PROG += test_argv
CFLAGS += -I${.CURDIR}/../..
LDADD += -L../.. -lphk
diff --git a/devel/libphk/files/patch-test_expr_Makefile b/devel/libphk/files/patch-test_expr_Makefile
index ebe69d23d6b4..e3ce274722d3 100644
--- a/devel/libphk/files/patch-test_expr_Makefile
+++ b/devel/libphk/files/patch-test_expr_Makefile
@@ -1,6 +1,6 @@
---- test/expr/Makefile.orig
+--- test/expr/Makefile.orig 2008-04-29 16:35:38 UTC
+++ test/expr/Makefile
-@@ -5,7 +5,7 @@
+@@ -5,7 +5,7 @@ CFLAGS += -I${.CURDIR}/../..
LDADD += -L../.. -lphk -lm
DPADD += ../../libphk.a