svn commit: r338063 - in head/databases/kyotocabinet: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Dec 30 09:08:09 UTC 2013
Author: sunpoet
Date: Mon Dec 30 09:08:08 2013
New Revision: 338063
URL: http://svnweb.freebsd.org/changeset/ports/338063
Log:
- Allow build with clang [1]
- Remove explicit -lstdc++
- Bump PORTREVISION for package change
Submitted by: vanilla [1]
Added:
head/databases/kyotocabinet/files/
head/databases/kyotocabinet/files/patch-kccommon.h (contents, props changed)
Modified:
head/databases/kyotocabinet/Makefile
Modified: head/databases/kyotocabinet/Makefile
==============================================================================
--- head/databases/kyotocabinet/Makefile Mon Dec 30 08:45:30 2013 (r338062)
+++ head/databases/kyotocabinet/Makefile Mon Dec 30 09:08:08 2013 (r338063)
@@ -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
Added: head/databases/kyotocabinet/files/patch-kccommon.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/kyotocabinet/files/patch-kccommon.h Mon Dec 30 09:08:08 2013 (r338063)
@@ -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>
More information about the svn-ports-head
mailing list