Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2023 19:45:36 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 32c04687e66f - main - devel/libphk: Fix build with llvm15
Message-ID:  <202306121945.35CJjaDH074273@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=32c04687e66fa73d7936c272237d08e365fe9be9

commit 32c04687e66fa73d7936c272237d08e365fe9be9
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-12 19:41:33 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-12 19:45:17 +0000

    devel/libphk: Fix build with llvm15
    
    - Pet protclippy
    - Adopt port
---
 devel/libphk/Makefile  | 15 +++++++++++----
 devel/libphk/pkg-plist |  2 +-
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/devel/libphk/Makefile b/devel/libphk/Makefile
index def8bddf69b0..dc623e7c3753 100644
--- a/devel/libphk/Makefile
+++ b/devel/libphk/Makefile
@@ -5,19 +5,26 @@ CATEGORIES=	devel
 MASTER_SITES=	http://phk.freebsd.dk/phkrel/
 DISTNAME=	Libphk.${PORTVERSION:C/0.3.//}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	PHK's utilities functions
 WWW=		http://phk.freebsd.dk/phkrel/
 
 USES=		uidfix tar:tgz
 
-WRKSRC=		${WRKDIR}/Libphk
-
 # XXX static PIE libraries not yet supported by the base system
 MAKE_FLAGS+=	WITHOUT_PIE=true
-
 MAKE_JOBS_UNSAFE=	yes
 
+WRKSRC=		${WRKDIR}/Libphk
+
+.include <bsd.port.options.mk>
+
+.if defined(NO_PROFILE) || ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079 )
+PLIST_SUB+=	PROFILE="@comment "
+.else
+PLIST_SUB+=	PROFILE=""
+.endif
+
 post-patch:
 	@${SED} -i -e 's!/usr/local!$${PREFIX}!g' ${WRKSRC}/Makefile
 
diff --git a/devel/libphk/pkg-plist b/devel/libphk/pkg-plist
index c5c2d6f7af61..0dffe0247a3d 100644
--- a/devel/libphk/pkg-plist
+++ b/devel/libphk/pkg-plist
@@ -8,7 +8,7 @@ include/phk_event.h
 include/phk_modbus.h
 include/phk_lineup.h
 lib/libphk.a
-lib/libphk_p.a
+%%PROFILE%%lib/libphk_p.a
 man/man3/libphk.3.gz
 man/man3/phk_argv.3.gz
 man/man3/phk_binheap.3.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306121945.35CJjaDH074273>