Skip to content

Commit

Permalink
deskutils/gtimer: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Utilize USES=localbase
- Pet portclippy

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 5, 2023
1 parent a93afe3 commit 5c61e9c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions deskutils/gtimer/Makefile
Expand Up @@ -12,13 +12,20 @@ LICENSE= GPLv2

RUN_DEPENDS= xdg-open:devel/xdg-utils

USES= gettext perl5 gmake gnome pkgconfig xorg
USE_XORG= x11 xscrnsaver
USES= gettext gmake gnome localbase perl5 pkgconfig xorg
USE_GNOME= gtk20
USE_XORG= x11 xscrnsaver

GNU_CONFIGURE= yes

CPPFLAGS+= -I${LOCALBASE}/include -Wno-return-type
LIBS+= -L${LOCALBASE}/lib -lX11
CPPFLAGS+= -Wno-return-type
LIBS+= -lX11

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif

post-patch:
@${REINPLACE_CMD} -e 's|1.1.7|${PORTVERSION}|g' ${WRKSRC}/configure
Expand Down

0 comments on commit 5c61e9c

Please sign in to comment.