git: 990db0f2c141 - main - x11-toolkits/swt: Unbrek on HEAD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 May 2023 18:36:22 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=990db0f2c141e28bac086704ee3e39e68923d352 commit 990db0f2c141e28bac086704ee3e39e68923d352 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-05-12 18:33:49 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-05-12 18:36:07 +0000 x11-toolkits/swt: Unbrek on HEAD Approved by: portmgr (blanket) --- x11-toolkits/swt/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/x11-toolkits/swt/Makefile b/x11-toolkits/swt/Makefile index 46e0a00940e3..a41cc26309e9 100644 --- a/x11-toolkits/swt/Makefile +++ b/x11-toolkits/swt/Makefile @@ -43,6 +43,8 @@ WEBKIT_LIB_DEPENDS= libsoup-2.4.so:devel/libsoup \ WEBKIT_MAKE_ENV= BUILD_WEBKIT2EXTENSION=yes WEBKIT_MAKE_ENV_OFF= BUILD_WEBKIT2EXTENSION=no +.include <bsd.port.pre.mk> + post-extract: @(cd ${WRKSRC} && ${UNZIP_CMD} -qo "*.zip") @${CP} ${FILESDIR}/build.xml ${WRKSRC}/build.xml @@ -50,6 +52,10 @@ post-extract: @${CP} ${FILESDIR}/*.css ${WRKSRC}/org/eclipse/swt/internal/gtk/ post-patch: +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079 + ${REINPLACE_CMD} -e 's|-DGTK|-DGTK -Wno-error=deprecated-non-prototype|g' \ + ${WRKSRC}/make_freebsd.mak +.endif ${SED} -e 's|freebsd|dragonfly|g' ${WRKSRC}/make_freebsd.mak \ > ${WRKSRC}/make_dragonfly.mak @@ -58,4 +64,4 @@ do-install: ${INSTALL_LIB} ${WRKSRC}/libswt-*.so ${STAGEDIR}${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/swt.jar ${STAGEDIR}${JAVAJARDIR}/ -.include <bsd.port.mk> +.include <bsd.port.post.mk>