aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-01-21 03:35:27 +0800
committermarcus <marcus@FreeBSD.org>2004-01-21 03:35:27 +0800
commit3cb409992592f4d4b32a9a7bed63d5ad9e408486 (patch)
tree65eeca78abf4aa9a3db3abf6b6e308928c9ecd48 /Mk
parent12aac5d0195e71464d893a36381c12a33c3337d8 (diff)
downloadfreebsd-ports-gnome-3cb409992592f4d4b32a9a7bed63d5ad9e408486.tar.gz
freebsd-ports-gnome-3cb409992592f4d4b32a9a7bed63d5ad9e408486.tar.zst
freebsd-ports-gnome-3cb409992592f4d4b32a9a7bed63d5ad9e408486.zip
* Chase the shared lib version of OpenLDAP 2.2 [1]
* Make CONFIGURE_MAX_CMD_LEN default to sysctl -n kern.argmax which is more accurate, and has been in FreeBSD since the beginning (NOTE: CONFIGURE_MAX_CMD_LEN is still overrideable from a port's Makefile) [2] Submitted by: eik [1] Requested by: juli [2]
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}