- Allow build with clang [1]

- Remove explicit -lstdc++
- Bump PORTREVISION for package change

Submitted by:	vanilla [1]
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-12-30 09:08:08 +00:00
parent a2bfde6910
commit f6144636ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338063
2 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= kyotocabinet
PORTVERSION= 1.2.76
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://fallabs.com/${PORTNAME}/pkg/ \
LOCAL/sunpoet
@ -18,7 +19,6 @@ CPPFLAGS+= -fPIC
GNU_CONFIGURE= yes
MAKE_ARGS= PCDIR=${PREFIX}/libdata/pkgconfig
REINPLACE_ARGS= -i ''
USE_GCC= any
USE_LDCONFIG= yes
USES= gmake
@ -28,6 +28,7 @@ NOT_FOR_ARCHS_REASON= does not link
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++ ||g' ${WRKSRC}/configure ${WRKSRC}/doc/spex.html ${WRKSRC}/example/Makefile ${WRKSRC}/lab/kcdict/Makefile
.if !${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile.in
.endif

View File

@ -0,0 +1,11 @@
--- kccommon.h.orig 2012-05-25 00:27:59.000000000 +0800
+++ kccommon.h 2013-12-28 01:25:49.838357594 +0800
@@ -82,7 +82,7 @@
using ::snprintf;
}
-#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_MSC_VER)
+#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_MSC_VER) || defined(_LIBCPP_VERSION)
#include <unordered_map>
#include <unordered_set>