From f50c09806c5b0c199aa00788cc152dadec2a2ae7 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 19 Jul 2023 18:01:32 +0200 Subject: devel/libphk: Fix build with llvm16 - Add LICENSE Beerware - Refresh patches Sponsored by: The FreeBSD Foundation --- devel/libphk/Makefile | 9 +++++++++ devel/libphk/files/patch-phk__expr.c | 8 ++++---- devel/libphk/files/patch-test_argv_Makefile | 4 ++-- devel/libphk/files/patch-test_expr_Makefile | 4 ++-- 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): \ + 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 .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 -- cgit v1.2.3