Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2013 18:34:35 +0000 (UTC)
From:      "Timur I. Bakeyev" <timur@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335917 - head/databases/ldb
Message-ID:  <201312081834.rB8IYZd1092263@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: timur
Date: Sun Dec  8 18:34:35 2013
New Revision: 335917
URL: http://svnweb.freebsd.org/changeset/ports/335917

Log:
  Modify do-configure target not to depend from GNU_CONFIGURE

Modified:
  head/databases/ldb/Makefile

Modified: head/databases/ldb/Makefile
==============================================================================
--- head/databases/ldb/Makefile	Sun Dec  8 18:05:35 2013	(r335916)
+++ head/databases/ldb/Makefile	Sun Dec  8 18:34:35 2013	(r335917)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312081834.rB8IYZd1092263>