diff options
author | Timur I. Bakeyev <timur@FreeBSD.org> | 2012-05-03 22:55:40 +0000 |
---|---|---|
committer | Timur I. Bakeyev <timur@FreeBSD.org> | 2012-05-03 22:55:40 +0000 |
commit | 2e62e3630f4bb7d9a84cb546f921a488311f7789 (patch) | |
tree | 5fcd30c8453fd3a51b088281df6821f80f23ba89 /databases/tdb | |
parent | 1a65aa28d0ae86b6838e3abad8500dbfe8bca301 (diff) | |
download | ports-2e62e3630f4bb7d9a84cb546f921a488311f7789.tar.gz ports-2e62e3630f4bb7d9a84cb546f921a488311f7789.zip |
Notes
Diffstat (limited to 'databases/tdb')
-rw-r--r-- | databases/tdb/Makefile | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/databases/tdb/Makefile b/databases/tdb/Makefile index ef80de965b7e..cebffca203af 100644 --- a/databases/tdb/Makefile +++ b/databases/tdb/Makefile @@ -18,6 +18,8 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= timur@FreeBSD.org COMMENT= Trivial Database +LICENSE= GPLv3 + CONFLICTS= *samba3[0-4]-3.* USE_PYTHON_BUILD= yes @@ -27,7 +29,6 @@ WAF_TOOL= buildtools/bin/waf CONFIGURE_SCRIPT= ${WAF_TOOL} configure USE_GNOME= pkgconfig -LICENSE= GPLv3 MAKE_JOBS_SAFE= yes PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig @@ -57,10 +58,12 @@ MAKE_ENV+= NOCOLOR=yes CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man -.if !defined(DISABLE_MAKE_JOBS) +.if !defined(DISABLE_MAKE_JOBS) && !defined(MAKE_JOBS_UNSAFE) +.if defined(MAKE_JOBS_SAFE) || defined(FORCE_MAKE_JOBS) CONFIGURE_ARGS+= --jobs=${MAKE_JOBS_NUMBER} _MAKE_JOBS= --jobs=${MAKE_JOBS_NUMBER} .endif +.endif .if defined(WITH_PYTHON) USE_PYTHON_RUN= yes @@ -74,9 +77,22 @@ CONFIGURE_ARGS+= --disable-python ALL_TARGET= build INSTALL_TARGET= install +.include <bsd.port.pre.mk> + +IGNORE_NONTHREAD_PYTHON=needs port lang/python${PYTHON_SUFFIX} to be build with THREADS support + post-patch: @${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \ - ${WRKSRC}/wscript + ${BUILD_WRKSRC}/wscript + +# Use threading (or multiprocessing) but not thread (renamed in python 3+). +pre-configure: + @if ! ${PYTHON_CMD} -c "import multiprocessing;" 2>/dev/null; then \ + ${ECHO_CMD}; \ + ${ECHO_MSG} "===> ${PKGNAME} "${IGNORE_NONTHREAD_PYTHON:Q}.; \ + ${ECHO_CMD}; \ + ${FALSE}; \ + fi pre-build: .for man in ${MAN8} @@ -86,7 +102,7 @@ pre-build: do-build: @(cd ${BUILD_WRKSRC}; \ - if ! ${SETENV} ${MAKE_ENV} ${BUILD_WRKSRC}/${WAF_TOOL} ${_MAKE_JOBS} ${MAKE_ARGS} build; then \ + if ! ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${BUILD_WRKSRC}/${WAF_TOOL} ${_MAKE_JOBS} ${MAKE_ARGS} build; then \ if [ x != x${BUILD_FAIL_MESSAGE} ] ; then \ ${ECHO_MSG} "===> Compilation failed unexpectedly."; \ (${ECHO_CMD} ${BUILD_FAIL_MESSAGE}) | ${FMT} 75 79 ; \ @@ -95,6 +111,6 @@ do-build: fi) do-install: - @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_WRKSRC}/${WAF_TOOL} ${MAKE_ARGS} install) + @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${INSTALL_WRKSRC}/${WAF_TOOL} ${MAKE_ARGS} install) -.include <bsd.port.mk> +.include <bsd.port.post.mk> |