aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authortimur <timur@FreeBSD.org>2013-12-09 02:34:35 +0800
committertimur <timur@FreeBSD.org>2013-12-09 02:34:35 +0800
commit178cd250673674cb1c88fe47d7e3ad964b361e2e (patch)
tree8440d147399029e411104a9400c3b754ea482cca /databases
parentcbffaab488aeeea4d7b2bc85cb4e60a11fa80657 (diff)
downloadfreebsd-ports-gnome-178cd250673674cb1c88fe47d7e3ad964b361e2e.tar.gz
freebsd-ports-gnome-178cd250673674cb1c88fe47d7e3ad964b361e2e.tar.zst
freebsd-ports-gnome-178cd250673674cb1c88fe47d7e3ad964b361e2e.zip
Modify do-configure target not to depend from GNU_CONFIGURE
Diffstat (limited to 'databases')
-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}