From owner-svn-ports-head@FreeBSD.ORG Thu Mar 13 00:28:13 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E95AF361; Thu, 13 Mar 2014 00:28:12 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D5B6AA22; Thu, 13 Mar 2014 00:28:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2D0SCuF082606; Thu, 13 Mar 2014 00:28:12 GMT (envelope-from timur@svn.freebsd.org) Received: (from timur@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2D0SCGB082605; Thu, 13 Mar 2014 00:28:12 GMT (envelope-from timur@svn.freebsd.org) Message-Id: <201403130028.s2D0SCGB082605@svn.freebsd.org> From: "Timur I. Bakeyev" Date: Thu, 13 Mar 2014 00:28:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348018 - head/databases/tdb X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2014 00:28:13 -0000 Author: timur Date: Thu Mar 13 00:28:12 2014 New Revision: 348018 URL: http://svnweb.freebsd.org/changeset/ports/348018 QAT: https://qat.redports.org/buildarchive/r348018/ Log: Convert to the staged environment Modified: head/databases/tdb/Makefile Modified: head/databases/tdb/Makefile ============================================================================== --- head/databases/tdb/Makefile Thu Mar 13 00:11:45 2014 (r348017) +++ head/databases/tdb/Makefile Thu Mar 13 00:28:12 2014 (r348018) @@ -15,13 +15,11 @@ LICENSE= GPLv3 CONFLICTS= *samba3[0-4]-3.* +USES= compiler pkgconfig USE_PYTHON_BUILD= 2 USE_LDCONFIG= yes -HAS_CONFIGURE= yes WAF_TOOL= buildtools/bin/waf -CONFIGURE_SCRIPT= ${WAF_TOOL} configure -USES= pkgconfig - +CONFIGURE_LOG= bin/config.log PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;} @@ -29,17 +27,19 @@ PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR CONFIGURE_ARGS+= --prefix=${PREFIX} \ --mandir=${MANPREFIX}/man \ --infodir=${PREFIX}/${INFO_PATH}/${INFO_SUBDIR} +# Support staging +DESTDIRNAME= --destdir -OPTIONS_DEFINE= PYTHON -OPTIONS_DEFAULT= PYTHON - -NO_STAGE= yes .include -MAN8= tdbbackup.8 \ - tdbdump.8 \ - tdbrestore.8 \ - tdbtool.8 +.include + +.if ! ${PORT_OPTIONS:MMANPAGES} +CONFIGURE_ENV+= XSLTPROC="true" +.else +BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl \ + xsltproc:${PORTSDIR}/textproc/libxslt +.endif PLIST_FILES= bin/tdbbackup \ bin/tdbdump \ @@ -50,31 +50,37 @@ PLIST_FILES= bin/tdbbackup \ lib/libtdb.so.1 \ %%PKGCONFIGDIR%%/tdb.pc -CONFIGURE_ENV+= XSLTPROC="/usr/bin/true" +# No fancy color error messages +.if ${COMPILER_TYPE} == "clang" +CFLAGS+= -fno-color-diagnostics +.endif CONFIGURE_ENV+= NOCOLOR=yes MAKE_ENV+= NOCOLOR=yes .if !defined(DISABLE_MAKE_JOBS) && !defined(MAKE_JOBS_UNSAFE) CONFIGURE_ARGS+= --jobs=${MAKE_JOBS_NUMBER} -_MAKE_JOBS= --jobs=${MAKE_JOBS_NUMBER} +_MAKE_JOBS+= --jobs=${MAKE_JOBS_NUMBER} .endif -.if ${PORT_OPTIONS:MPYTHON} USE_PYTHON_RUN= yes PLIST_FILES+= %%PYTHON_SITELIBDIR%%/tdb.so PLIST_DIRSTRY+= %%PYTHON_SITELIBDIR%% \ %%PYTHON_LIBDIR%% -.else -CONFIGURE_ARGS+= --disable-python -.endif +TDB_MAN8= man/man8/tdbbackup.8.gz \ + man/man8/tdbdump.8.gz \ + man/man8/tdbrestore.8.gz \ + man/man8/tdbtool.8.gz + +PLIST_FILES+= ${TDB_MAN8} + +CONFIGURE_TARGET= configure ALL_TARGET= build INSTALL_TARGET= install IGNORE_NONTHREAD_PYTHON=needs port lang/python${PYTHON_SUFFIX} to be build with THREADS support post-patch: - @${REINPLACE_CMD} -e 's|python|python${PYTHON_VER}|' ${BUILD_WRKSRC}/${WAF_TOOL} @${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \ ${BUILD_WRKSRC}/wscript @@ -87,11 +93,30 @@ 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: -.for man in ${MAN8} - @${MKDIR} ${BUILD_WRKSRC}/bin/default/man - @${INSTALL_MAN} ${FILESDIR}/${man} ${BUILD_WRKSRC}/bin/default/man -.endfor +.if ! ${PORT_OPTIONS:MMANPAGES} + -${MKDIR} ${BUILD_WRKSRC}/bin/default/man +. for man in ${TDB_MAN8} + ${INSTALL_MAN} ${FILESDIR}/`basename ${man} .gz` ${BUILD_WRKSRC}/bin/default/man +. endfor +.endif do-build: @(cd ${BUILD_WRKSRC}; \