Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2023 04:38:01 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: 611b86aeb776 - main - x11-toolkits/plib: Fix build with llvm16
Message-ID:  <202306240438.35O4c1il073576@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=611b86aeb776d312137a82d24bb98ca58c384a18

commit 611b86aeb776d312137a82d24bb98ca58c384a18
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 00:41:02 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 04:37:51 +0000

    x11-toolkits/plib: Fix build with llvm16
    
    - Utilize USES=localbase
    - Pet portclippy
    - Adopt port
    
    Sponsored by:   The FreeBSD Foundation
---
 x11-toolkits/plib/Makefile | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/x11-toolkits/plib/Makefile b/x11-toolkits/plib/Makefile
index f053200e5bf6..d19072835cde 100644
--- a/x11-toolkits/plib/Makefile
+++ b/x11-toolkits/plib/Makefile
@@ -4,25 +4,31 @@ PORTREVISION=	8
 CATEGORIES=	x11-toolkits
 MASTER_SITES=	http://plib.sourceforge.net/dist/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Portable library for joystick/sound/OpenGL GUI/3D math
 WWW=		http://plib.sourceforge.net/
 
 LICENSE=	LGPL20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cpe gl gmake xorg
+USES=		cpe gl gmake localbase:ldflags xorg
 CPE_VENDOR=	${PORTNAME}_project
-USE_XORG=	xt xi xmu xext x11
 USE_GL=		glu
+USE_XORG=	xt xi xmu xext x11
+
 GNU_CONFIGURE=	yes
 
 CXXFLAGS+=	-fPIC
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-lpthread -L${LOCALBASE}/lib
+LDFLAGS+=	-lpthread
 
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-src-js-jsBSD.cxx
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+=  -Dregister=
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|-lpthread||g ; \
 		 s|-ldl||g ; \



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