freebsd-ports/sysutils/replicant/Makefile
Antoine Brodin 379e1a7d95 Mark BROKEN: Fails to build
with gcc:
  CXX    common/libreplicant_la-bootstrap.lo
In file included from /usr/local/include/po6/net/socket.h:37:0,
                 from /usr/local/include/po6/net/hostname.h:41,
                 from /usr/local/include/busybee_single.h:35,
                 from common/bootstrap.cc:37:
/usr/include/netinet/tcp.h:50:2: error: 'u_short' does not name a type
/usr/include/netinet/tcp.h:51:2: error: 'u_short' does not name a type
...
with clang:
  CXX    client/libreplicant_la-replicant.lo
clang++: warning: -lrt: 'linker' input unused when '-c' is present
client/replicant.cc:116:21: error: no matching constructor for initialization of 'busybee_st'
    , m_busybee(new busybee_st(m_busybee_mapper.get(), 0))
                    ^          ~~~~~~~~~~~~~~~~~~~~~~~~~
...

Reported by:	pkg-fallout
With hat:	portmgr
2014-07-27 21:20:42 +00:00

46 lines
1.3 KiB
Makefile

# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= replicant
PORTVERSION= 0.2.1
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://hyperdex.org/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Replicant is a tool for creating replicated state machines
BROKEN= Fails to build
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libpo6.pc:${PORTSDIR}/devel/libpo6
LIB_DEPENDS= libbusybee.so:${PORTSDIR}/devel/busybee \
libe.so:${PORTSDIR}/devel/libe \
libglog.so:${PORTSDIR}/devel/glog \
libleveldb.so:${PORTSDIR}/databases/leveldb \
libpopt.so:${PORTSDIR}/devel/popt
ONLY_FOR_ARCHS= amd64
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
# The -D-efines and -include beat the code into shape on GCC 4.7/4.8
# GCC 4.6 from ports and 9.1's base clang are fine,
# upstream bug report at <https://github.com/rescrv/po6/issues/5>
# This hack causes harmless "warning: '__STDC_LIMIT_MACROS' macro redefined"
CPPFLAGS+= -D__STDC_LIMIT_MACROS -Du_int32_t=uint32_t \
-include stdint.h -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USES= pathfix pkgconfig
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 900014 || !exists(/usr/bin/clang++)
# No clang++ installed, use GCC from ports:
USE_GCC= yes
.else
CC= clang
CXX= clang++
CPP= clang-cpp
.endif
.include <bsd.port.post.mk>