diff options
Diffstat (limited to '')
-rw-r--r-- | Mk/bsd.port.mk | 11 |
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} |