svn commit: r373939 - head/databases/p5-Tie-LevelDB

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Thu Dec 4 15:09:41 UTC 2014


Author: sunpoet
Date: Thu Dec  4 15:09:40 2014
New Revision: 373939
URL: https://svnweb.freebsd.org/changeset/ports/373939
QAT: https://qat.redports.org/buildarchive/r373939/

Log:
  - Fix build on FreeBSD 10+

Modified:
  head/databases/p5-Tie-LevelDB/Makefile

Modified: head/databases/p5-Tie-LevelDB/Makefile
==============================================================================
--- head/databases/p5-Tie-LevelDB/Makefile	Thu Dec  4 15:09:10 2014	(r373938)
+++ head/databases/p5-Tie-LevelDB/Makefile	Thu Dec  4 15:09:40 2014	(r373939)
@@ -18,7 +18,13 @@ LIB_DEPENDS=	libleveldb.so:${PORTSDIR}/d
 
 MAKE_ARGS=	CC="${CXX}"
 USE_PERL5=	configure
-USES=		gmake perl5
+USES=		compiler gmake perl5
+
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang
+CFLAGS+=	-Wno-reserved-user-defined-literal
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e '/build_detect_platform/d' \
@@ -29,10 +35,4 @@ post-patch:
 		-e 's|g++|${CXX}|' \
 			${WRKSRC}/Makefile.PL
 
-.include <bsd.port.pre.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
-BROKEN=		Does not build on FreeBSD 10.0+
-.endif
-
 .include <bsd.port.post.mk>


More information about the svn-ports-head mailing list