aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-01-20 19:35:27 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-01-20 19:35:27 +0000
commit8be6ffc4f3fda903005a356bfee167ca3f62ff34 (patch)
tree2091c6c55ceb0f63152f703e06af464a1f8eb998 /Mk
parentf442d4d0208ad071580b719ed766926a149d1685 (diff)
downloadports-8be6ffc4f3fda903005a356bfee167ca3f62ff34.tar.gz
ports-8be6ffc4f3fda903005a356bfee167ca3f62ff34.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 93c15fe9e666..12229173a992 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1595,7 +1595,8 @@ WANT_OPENLDAP_VER= ${USE_OPENLDAP_VER}
.if defined(USE_OPENLDAP)
.if !empty(WANT_OPENLDAP_VER:M2[0-9]) && \
exists(${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client/Makefile)
-LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client
+OPENLDAP_LIB_VER= ${WANT_OPENLDAP_VER:C/^2[0-1]$/2/:C/^2([2-9])$/20\1/}
+LIB_DEPENDS+= ldap.${OPENLDAP_LIB_VER}:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client
.else
BROKEN= "unknown OpenLDAP version: ${WANT_OPENLDAP_VER}"
.endif
@@ -2552,7 +2553,13 @@ CONFIGURE_LOG?= config.log
CONFIGURE_FAIL_MESSAGE?= "Please report the problem to ${MAINTAINER} [maintainer] and attach the \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an \`ls ${PKG_DBDIR}\`)."
# Maximum command line length
-CONFIGURE_MAX_CMD_LEN?=16384
+.if !defined(CONFIGURE_MAX_CMD_LEN)
+.if exists(/sbin/sysctl)
+CONFIGURE_MAX_CMD_LEN!= /sbin/sysctl -n kern.argmax
+.else
+CONFIGURE_MAX_CMD_LEN!= /usr/sbin/sysctl -n kern.argmax
+.endif
+.endif
.if defined(GNU_CONFIGURE)
CONFIGURE_ARGS+= --prefix=${PREFIX} ${CONFIGURE_TARGET}