diff options
-rw-r--r-- | editors/encryptpad/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/editors/encryptpad/Makefile b/editors/encryptpad/Makefile index 157a2e662bed..9466c8b55095 100644 --- a/editors/encryptpad/Makefile +++ b/editors/encryptpad/Makefile @@ -16,7 +16,8 @@ LICENSE_FILE= ${WRKSRC}/license.txt BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libbotan-2.so:security/botan2 -USES= desktop-file-utils gl gmake pkgconfig qt:5 shared-mime-info shebangfix +USES= compiler:c++11-lang desktop-file-utils gl gmake pkgconfig qt:5 \ + shared-mime-info shebangfix USE_GL= gl USE_QT= core gui widgets buildtools_build qmake_build SHEBANG_FILES= deps/libencryptmsg/configure @@ -29,6 +30,14 @@ OPTIONS_DEFINE= DOCS PORTDOCS= * +.include <bsd.port.pre.mk> + +post-patch: +.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64 + ${REINPLACE_CMD} -e 's/freebsd-clang/freebsd-g++/' \ + ${WRKSRC}/build/Makefile.qt_ui +.endif + do-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} MAKE=${MAKE_CMD} \ ./configure.sh --all --use-system-libs @@ -51,4 +60,4 @@ post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}/${DOCSDIR} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |