Skip to content

Commit

Permalink
x11-toolkits/fox16: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Utilize USES=localbase

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jun 25, 2023
1 parent 3a8cd0d commit abad801
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions x11-toolkits/fox16/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit abad801

Please sign in to comment.