svn commit: r385854 - head/databases/pgrouting

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat May 9 02:06:44 UTC 2015


Author: amdmi3
Date: Sat May  9 02:06:43 2015
New Revision: 385854
URL: https://svnweb.freebsd.org/changeset/ports/385854

Log:
  - Fix build on 10.x by using newer clang
  
  PR:		200037
  Submitted by:	amdmi3
  Approved by:	coder at tuxfamily.org (maintainer)

Modified:
  head/databases/pgrouting/Makefile

Modified: head/databases/pgrouting/Makefile
==============================================================================
--- head/databases/pgrouting/Makefile	Sat May  9 02:04:06 2015	(r385853)
+++ head/databases/pgrouting/Makefile	Sat May  9 02:06:43 2015	(r385854)
@@ -18,7 +18,7 @@ LIB_DEPENDS=	libboost_system.so:${PORTSD
 		libgmp.so:${PORTSDIR}/math/gmp
 RUN_DEPENDS=	${LOCALBASE}/share/postgresql/contrib/postgis-2.1/postgis.sql:${PORTSDIR}/databases/postgis21
 
-USES=		cmake pgsql pkgconfig
+USES=		compiler:features cmake pgsql pkgconfig
 USE_LDCONFIG=	yes
 
 CFLAGS+=	-I${LOCALBASE}/include
@@ -26,6 +26,13 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 
 .include <bsd.port.pre.mk>
 
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 36
+BUILD_DEPENDS+=	clang36:${PORTSDIR}/lang/clang36
+CPP=		clang-cpp36
+CC=		clang36
+CXX=		clang++36
+.endif
+
 .if ${PGSQL_VER} >= 9.1
 PLIST_SUB+=	OLDPG="@comment " NEWPG=""
 


More information about the svn-ports-all mailing list