From owner-svn-ports-head@freebsd.org Thu Aug 17 10:53:48 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 237E9DDAB55; Thu, 17 Aug 2017 10:53:48 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E17086C28A; Thu, 17 Aug 2017 10:53:47 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7HArksA074152; Thu, 17 Aug 2017 10:53:46 GMT (envelope-from ehaupt@FreeBSD.org) Received: (from ehaupt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7HArkM7074151; Thu, 17 Aug 2017 10:53:46 GMT (envelope-from ehaupt@FreeBSD.org) Message-Id: <201708171053.v7HArkM7074151@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ehaupt set sender to ehaupt@FreeBSD.org using -f From: Emanuel Haupt Date: Thu, 17 Aug 2017 10:53:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448085 - head/net/sshping X-SVN-Group: ports-head X-SVN-Commit-Author: ehaupt X-SVN-Commit-Paths: head/net/sshping X-SVN-Commit-Revision: 448085 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2017 10:53:48 -0000 Author: ehaupt Date: Thu Aug 17 10:53:46 2017 New Revision: 448085 URL: https://svnweb.freebsd.org/changeset/ports/448085 Log: Fix build on FreeBSD 11.x versions prior to LLVM 4.0.0 base import. Notified by: pkg-fallout (110i386-default, 110amd64-default) Modified: head/net/sshping/Makefile Modified: head/net/sshping/Makefile ============================================================================== --- head/net/sshping/Makefile Thu Aug 17 10:45:47 2017 (r448084) +++ head/net/sshping/Makefile Thu Aug 17 10:53:46 2017 (r448085) @@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libssh.so:security/libssh -USES= compiler:c++14-lang localbase:ldflags +USES= localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= spook @@ -23,6 +23,13 @@ LDFLAGS+= -lssh PLIST_FILES= bin/sshping +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} <= 1100511 +BUILD_DEPENDS= clang40:devel/llvm40 +CXX= clang++40 +.endif + do-build: ${CXX} ${CXXFLAGS} ${LDFLAGS} -I ${WRKSRC}/ext \ ${WRKSRC}/src/sshping.cxx -o ${WRKSRC}/bin/sshping @@ -30,4 +37,4 @@ do-build: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin -.include +.include