engine.cc:539:46: error: non-constant-expression cannot be narrowed from type
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >::size_type' (aka 'unsigned long') to 'int' in
initializer list [-Wc++11-narrowing]
datum key = {(char *)config.key.c_str(), config.key.length()};
^~~~~~~~~~~~~~~~~~~
engine.cc:539:46: note: insert an explicit cast to silence this issue
datum key = {(char *)config.key.c_str(), config.key.length()};
^~~~~~~~~~~~~~~~~~~
static_cast<int>( )
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p472224_s334983/logs/dbtool-1.9.1.log
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dbtool
|
|
PORTVERSION= 1.9.1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://www.daemon.de/idisk/Apps/dbtool/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Store and retrieve data in a key/value format in a hash database
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libpcre.so:devel/pcre
|
|
|
|
USES= gmake localbase shebangfix
|
|
SHEBANG_FILES= samples/account-db/accdb
|
|
bash_OLD_CMD= /bin/sh
|
|
GNU_CONFIGURE= yes
|
|
|
|
PORTEXAMPLES= *
|
|
PLIST_FILES= bin/dbtool man/man1/dbtool.1.gz
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
OPTIONS_SINGLE= BACKEND
|
|
OPTIONS_SINGLE_BACKEND= BDB GDBM
|
|
OPTIONS_DEFAULT= GDBM
|
|
|
|
BACKEND_DESC= Database backend
|
|
BDB_USES= bdb
|
|
BDB_CONFIGURE_ON= --with-berkeley \
|
|
--with-bdb-include-dir=${BDB_INCLUDE_DIR} \
|
|
--with-bdb-lib-dir=${BDB_LIB_DIR}
|
|
EXAMPLES_RUN_DEPENDS= bash:shells/bash
|
|
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm
|
|
GDBM_CONFIGURE_ON= --with-gdbm \
|
|
--with-gdbm-dir=${LOCALBASE}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/try_libs=/s|"-ldb_cxx.*"|"-ldb_cxx"| ; \
|
|
/try_headers=/s|"db.*"|"db_cxx.h"|' ${WRKSRC}/configure
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|