Skip to content

Commit

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

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 20, 2023
1 parent 05706f9 commit 31ead56
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion comms/uird/Makefile
Expand Up @@ -10,20 +10,29 @@ WWW= http://kbinstuff.googlepages.com/uirduniversalirreceiverdaemon

USES= perl5 gmake tar:tgz

WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= ${PORTNAME}

WRKSRC= ${WRKDIR}/${PORTNAME}

PLIST_FILES= bin/uird
PORTDOCS= Documentation

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif

post-patch:
@${REINPLACE_CMD} -e 's|gcc|$${CC}\ $${CFLAGS}|; /strip/d' \
${WRKSRC}/Makefile

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/uird ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

Expand Down

0 comments on commit 31ead56

Please sign in to comment.