Skip to content

Commit

Permalink
mail/nbsmtp: Does not build with clang 15
Browse files Browse the repository at this point in the history
Notified by:	pkg-fallout
  • Loading branch information
ehaupt committed Feb 13, 2023
1 parent de7ce20 commit ce282f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mail/nbsmtp/Makefile
Expand Up @@ -18,6 +18,12 @@ LDFLAGS+= -L${OPENSSLLIB}

PLIST_FILES= bin/nbsmtp man/man5/nbsmtprc.5.gz man/man8/nbsmtp.8.gz

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
USE_GCC= yes
.endif

post-patch:
${REINPLACE_CMD} -e 's@\(-o nbsmtp\)@$$(LDFLAGS) \1@g' \
${WRKSRC}/Makefile.in
Expand All @@ -27,4 +33,4 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/nbsmtprc.5 ${STAGEDIR}${MANPREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/nbsmtp.8 ${STAGEDIR}${MANPREFIX}/man/man8

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit ce282f9

Please sign in to comment.