Skip to content

Commit

Permalink
converters/wkhtmltopdf: Fix build with llvm16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 16, 2023
1 parent 6c200f6 commit d063fe8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions converters/wkhtmltopdf/Makefile
Expand Up @@ -78,6 +78,13 @@ post-patch:
${ECHO} 'LIBS+= -lcrypto' >>${WRKSRC}/src/pdf/pdf.pro
${MKDIR} ${WRKSRC}/build/app ${WRKSRC}/build/qt \
${WRKSRC}/build/wkhtmltox
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
${REINPLACE_CMD} -e "s|register int|int|g" \
${PATCH_WRKSRC}/src/corelib/kernel/qcore_unix_p.h
${REINPLACE_CMD} -e "s|register UWORD32|UWORD32|g" \
${PATCH_WRKSRC}/../qt-5db36ec/src/3rdparty/md5/md5.cpp
.endif


post-build:
cd ${WRKSRC}/build/app && ${SETENV} ${MAKE_ENV} \
Expand Down

0 comments on commit d063fe8

Please sign in to comment.