svn commit: r448085 - head/net/sshping
Emanuel Haupt
ehaupt at FreeBSD.org
Thu Aug 17 10:53:48 UTC 2017
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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list