svn commit: r513793 - head/x11/cool-retro-term

Mark Linimon linimon at FreeBSD.org
Fri Oct 4 22:40:29 UTC 2019


Author: linimon
Date: Fri Oct  4 22:40:28 2019
New Revision: 513793
URL: https://svnweb.freebsd.org/changeset/ports/513793

Log:
  Prepare for powerpc-on-clang by deleting hard-coded tests for architecture
  as a stand-in for "are we running on gcc".  (PR 239181)
  
  As a side-effect, adding the stanza
  
    MAKE_ENV= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT}
  
  obviates the need for hardcoding definitions for CC, CXX, and CPP
  (later linimon testing).
  
  PR:		239181
  Approved by:	danfe (maintainer-timeout, > 2 months)

Modified:
  head/x11/cool-retro-term/Makefile

Modified: head/x11/cool-retro-term/Makefile
==============================================================================
--- head/x11/cool-retro-term/Makefile	Fri Oct  4 22:31:59 2019	(r513792)
+++ head/x11/cool-retro-term/Makefile	Fri Oct  4 22:40:28 2019	(r513793)
@@ -16,7 +16,7 @@ GH_ACCOUNT=	Swordfish90
 GH_PROJECT=	qmltermwidget:qtw
 GH_TAGNAME=	0.2.0:qtw
 
-USES=		gmake gl qmake qt:5
+USES=		compiler gmake gl qmake qt:5
 USE_GL=		gl
 USE_QT=		qmake_build buildtools_build core declarative gui \
 		network sql widgets graphicaleffects_run \
@@ -24,12 +24,11 @@ USE_QT=		qmake_build buildtools_build core declarative
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+.if ${CHOSEN_COMPILER_TYPE} == gcc
 USE_GCC=	yes
 .else
-CC=		clang
-CXX=		clang++
-CPP=		clang-cpp
+BUILD_DEPENDS+=	clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
+MAKE_ENV=	LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT}
 .endif
 
 post-extract:


More information about the svn-ports-head mailing list