1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Fix build with clang [1]

- Respect CXXFLAGS during build
- Make RUN_DEPENDS path independent

PR:		196088 [1] (based on)
Submitted by:	Real Huang <realhuang21@gmail.com> [1]
This commit is contained in:
Pawel Pekala 2014-12-22 22:31:00 +00:00
parent f05c3f3ebb
commit 342bdeaf97
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375279

View File

@ -20,7 +20,7 @@ LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \
libthrift.so:${PORTSDIR}/devel/thrift-cpp
RUN_DEPENDS= p5-Class-Accessor>0:${PORTSDIR}/devel/p5-Class-Accessor \
p5-Thrift>0:${PORTSDIR}/devel/p5-Thrift \
${PYTHON_SITELIBDIR}/thrift/__init__.py:${PORTSDIR}/devel/py-thrift
${PYTHON_PKGNAMEPREFIX}thrift>0:${PORTSDIR}/devel/py-thrift
GITVERSION= 7359a09
WRKSRC= ${WRKDIR}/facebookarchive-${PORTNAME}-${GITVERSION}
@ -32,10 +32,22 @@ CONFIGURE_ARGS= --with-boost-filesystem=boost_filesystem \
PY_PREFIX="${PREFIX}"
USE_AUTOTOOLS= aclocal automake autoconf
USE_RC_SUBR= ${PORTNAME}
USES= gmake perl5 python
USES= compiler gmake perl5 python
post-patch:
${REINPLACE_CMD} -e 's/^AM_INIT_AUTOMAKE/#/' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e 's/^AM_INIT_AUTOMAKE/#/' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e '/boost/! s/shared_ptr/boost::&/g' \
${WRKSRC}/src/conf.cpp \
${WRKSRC}/src/conn_pool.cpp \
${WRKSRC}/src/dynamic_bucket_updater.cpp \
${WRKSRC}/src/env_default.cpp \
${WRKSRC}/src/file.cpp \
${WRKSRC}/src/scribe_server.cpp \
${WRKSRC}/src/store.cpp \
${WRKSRC}/src/store_queue.cpp
post-configure:
@${REINPLACE_CMD} 's/-O3/${CXXFLAGS}/' ${WRKSRC}/src/Makefile
post-build:
${LOCALBASE}/bin/thrift -o ${WRKSRC} -I ${LOCALBASE}/share --gen "perl" ${WRKSRC}/if/scribe.thrift
@ -48,8 +60,8 @@ post-install:
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
BROKEN= Does not build on FreeBSD 10.0+
.if ${COMPILER_TYPE} == clang
USE_CXXSTD= c++11
.endif
.include <bsd.port.post.mk>