- Fix build on FreeBSD 10+

This commit is contained in:
Sunpoet Po-Chuan Hsieh
2014-12-04 15:09:40 +00:00
parent 71f91e855a
commit b84186a68e

View File

@@ -18,7 +18,13 @@ LIB_DEPENDS= libleveldb.so:${PORTSDIR}/databases/leveldb
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>