aboutsummaryrefslogtreecommitdiff
path: root/databases/ldb
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@FreeBSD.org>2013-12-08 18:34:35 +0000
committerTimur I. Bakeyev <timur@FreeBSD.org>2013-12-08 18:34:35 +0000
commit481c38126ffcedeb11e06b5c356f05cd209ba2e0 (patch)
tree8440d147399029e411104a9400c3b754ea482cca /databases/ldb
parent02da201c86576e7b4e12f5d1a0843254b5d296d2 (diff)
downloadports-481c38126ffcedeb11e06b5c356f05cd209ba2e0.tar.gz
ports-481c38126ffcedeb11e06b5c356f05cd209ba2e0.zip
Notes
Diffstat (limited to 'databases/ldb')
-rw-r--r--databases/ldb/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/databases/ldb/Makefile b/databases/ldb/Makefile
index fecf40911c26..05d70c11e4ef 100644
--- a/databases/ldb/Makefile
+++ b/databases/ldb/Makefile
@@ -18,13 +18,11 @@ CONFLICTS= *samba3[0-4]-3.*
USES= pkgconfig
USE_PYTHON_BUILD= -2.7
USE_LDCONFIG= yes
-HAS_CONFIGURE= yes
WAF_TOOL= buildtools/bin/waf
-CONFIGURE_SCRIPT= ${WAF_TOOL} configure
+CONFIGURE_LOG= bin/config.log
USE_OPENLDAP= yes
-
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}
@@ -101,6 +99,7 @@ PLIST_FILES+= include/pyldb.h \
PLIST_DIRSTRY+= %%PYTHON_SITELIBDIR%% \
%%PYTHON_LIBDIR%%
+CONFIGURE_TARGET= configure
ALL_TARGET= build
INSTALL_TARGET= install
@@ -121,6 +120,23 @@ pre-configure:
${FALSE}; \
fi
+do-configure:
+ @(cd ${CONFIGURE_WRKSRC} && \
+ ${SET_LATE_CONFIGURE_ARGS} \
+ if ! ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
+ CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ INSTALL="/usr/bin/install -c ${_BINOWNGRP}" \
+ INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_LIB="${INSTALL_LIB}" \
+ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ ${CONFIGURE_ENV} ${PYTHON_CMD} ${CONFIGURE_WRKSRC}/${WAF_TOOL} ${CONFIGURE_ARGS} ${CONFIGURE_TARGET}; then \
+ ${ECHO_MSG} "===> Script \"${CONFIGURE_SCRIPT}\" failed unexpectedly."; \
+ (${ECHO_CMD} ${CONFIGURE_FAIL_MESSAGE}) | ${FMT} 75 79 ; \
+ ${FALSE}; \
+ fi)
+
pre-build:
-${MKDIR} ${BUILD_WRKSRC}/bin/default/man
.for man in ${MAN1} ${MAN3}