freebsd-ports/databases/kyotocabinet/Makefile
Piotr Kubaj bee6858eea MFH: r561356
databases/kyotocabinet: fix build on GCC architectures

kcdirtest.cc: In member function 'virtual const char* procorder(const char*, int64_t, int32_t, bool, int32_t, bool, int32_t, int32_t, bool)::VisitorIterator::visit_full(const char*, size_t, const char*, size_t, size_t*)':
kcdirtest.cc:1030: error: 'class std::set<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >' has no member named 'emplace'
kcdirtest.cc: In member function 'virtual const char* procorder(const char*, int64_t, int32_t, bool, int32_t, bool, int32_t, int32_t, bool)::VisitorCursor::visit_full(const char*, size_t, const char*, size_t, size_t*)':
kcdirtest.cc:1095: error: 'class std::set<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >' has no member named 'emplace'
2021-01-12 17:46:06 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= kyotocabinet
PORTVERSION= 1.2.79
CATEGORIES= databases
MASTER_SITES= https://dbmx.net/kyotocabinet/pkg/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Straightforward implementation of DBM
LICENSE= GPLv3
BROKEN_mips= fails to link: hidden symbol '__sync_lock_test_and_set_8' in /usr/lib/libgcc.a(stdatomic.o) is referenced by DSO
BROKEN_mips64= fails to link: hidden symbol '__sync_lock_test_and_set_8' in /usr/lib/libgcc.a(stdatomic.o) is referenced by DSO
USES= compiler:c++11-lang gmake
CPPFLAGS+= -fPIC
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
MAKE_ARGS= PCDIR=${PREFIX}/libdata/pkgconfig
REINPLACE_ARGS= -i ''
TEST_TARGET= check
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++ ||g' ${WRKSRC}/configure ${WRKSRC}/doc/spex.html ${WRKSRC}/example/Makefile ${WRKSRC}/lab/kcdict/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libkyotocabinet.so
post-install-DOCS-on:
${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} {} +
${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} {} +
.include <bsd.port.mk>