Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2023 18:09:58 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: abad80143b96 - main - x11-toolkits/fox16: Fix build with llvm16
Message-ID:  <202306251809.35PI9wXX092059@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=abad80143b961d4b2431114a4a5160d0efd04284

commit abad80143b961d4b2431114a4a5160d0efd04284
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 23:49:25 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-25 18:09:47 +0000

    x11-toolkits/fox16: Fix build with llvm16
    
    - Utilize USES=localbase
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 x11-toolkits/fox16/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/x11-toolkits/fox16/Makefile b/x11-toolkits/fox16/Makefile
index 24819db2fb4f..ab05351f6a92 100644
--- a/x11-toolkits/fox16/Makefile
+++ b/x11-toolkits/fox16/Makefile
@@ -16,15 +16,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libpng.so:graphics/png \
 		libtiff.so:graphics/tiff
 
-USES=		compiler:features gl jpeg libtool pathfix xorg
+USES=		compiler:features gl jpeg libtool localbase:ldflags pathfix xorg
 USE_GL=		gl glu
 USE_XORG=	x11 xext xfixes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-opengl --with-x --with-xim
 USE_LDCONFIG=	yes
 
-CPPFLAGS+=	-I${LOCALBASE}/include -fPIC
-LDFLAGS+=	-L${LOCALBASE}/lib
+CPPFLAGS+=	-fPIC
 
 PLIST_SUB=	MAJORVER="${MAJORVER}"
 
@@ -84,6 +83,10 @@ CXXFLAGS+=	-fexpensive-optimizations -finline-functions
 .  endif
 .endif
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+=  -Dregister=
+.endif
+
 post-patch:
 # Rename man pages as in manpage.1 --> manpage-16.1 to avoid
 # conflicts with fox14 and fox17



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