svn commit: r484216 - head/editors/encryptpad

Mark Linimon linimon at FreeBSD.org
Mon Nov 5 20:09:28 UTC 2018


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>


More information about the svn-ports-all mailing list