Skip to content

Commit

Permalink
graphics/anttweakbar: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 23, 2023
1 parent 85fe998 commit fc66d17
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions graphics/anttweakbar/Makefile
Expand Up @@ -12,26 +12,33 @@ WWW= http://anttweakbar.sourceforge.net/doc/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/../License.txt

USES= dos2unix gl xorg zip
USES= dos2unix gl localbase:ldflags xorg zip
DOS2UNIX_FILES= Makefile LoadOGLCore.h TwPrecomp.h
USE_GL= gl glu
USE_XORG= x11
USE_LDCONFIG= yes
USE_XORG= x11

WRKSRC= ${WRKDIR}/AntTweakBar
WRKSRC_SUBDIR= src

DOS2UNIX_FILES= Makefile LoadOGLCore.h TwPrecomp.h

LDFLAGS+= -L${LOCALBASE}/lib -lX11
LDFLAGS+= -lX11

BINARY_ALIAS= gcc=${CC}

WRKSRC= ${WRKDIR}/AntTweakBar
WRKSRC_SUBDIR= src

PLIST_FILES= include/AntTweakBar.h \
lib/libAntTweakBar.a \
lib/libAntTweakBar.so \
lib/libAntTweakBar.so.${DISTVERSION:R} \
lib/libAntTweakBar.so.${DISTVERSION}

.include <bsd.port.options.mk>

post-patch:
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
@${REINPLACE_CMD} -e 's|public binary_function|public __binary_function|' \
${WRKSRC}/TwMgr.cpp
.endif

do-install:
${INSTALL_DATA} ${WRKSRC}/../include/AntTweakBar.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/../lib/libAntTweakBar.a ${STAGEDIR}${PREFIX}/lib
Expand Down

0 comments on commit fc66d17

Please sign in to comment.