Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2018 20:09:27 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484216 - head/editors/encryptpad
Message-ID:  <201811052009.wA5K9RgU098273@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Mon Nov  5 20:09:27 2018
New Revision: 484216
URL: https://svnweb.freebsd.org/changeset/ports/484216

Log:
  This port requires USES=c++11-lang to build on architectures that
  use GCC in base.  Also requires switching from freebsd-clang++ to
  freebsd-g++ where GCC needs to be used.
  
  PR:		232012
  Submitted by:	Piotr Kubaj
  Approved by:	maintainer

Modified:
  head/editors/encryptpad/Makefile

Modified: head/editors/encryptpad/Makefile
==============================================================================
--- head/editors/encryptpad/Makefile	Mon Nov  5 20:06:04 2018	(r484215)
+++ head/editors/encryptpad/Makefile	Mon Nov  5 20:09:27 2018	(r484216)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811052009.wA5K9RgU098273>