Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2015 07:13:33 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399631 - head/security/krb5
Message-ID:  <201510190713.t9J7DXPA086420@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Mon Oct 19 07:13:33 2015
New Revision: 399631
URL: https://svnweb.freebsd.org/changeset/ports/399631

Log:
  Fix READLINE option.
  Add support for libedit (LIBEDIT option).
  Both command line editing options now supported by RADIO button.

Modified:
  head/security/krb5/Makefile

Modified: head/security/krb5/Makefile
==============================================================================
--- head/security/krb5/Makefile	Sun Oct 18 23:34:54 2015	(r399630)
+++ head/security/krb5/Makefile	Mon Oct 19 07:13:33 2015	(r399631)
@@ -27,7 +27,7 @@ USE_LDCONFIG=		yes
 USE_CSTD=		gnu99
 GNU_CONFIGURE=		yes
 USES=			cpe gettext gmake perl5 libtool:build \
-			gssapi:bootstrap,mit
+			gssapi:bootstrap,mit pkgconfig:both
 CONFIGURE_ARGS?=	--enable-shared --without-system-verto \
 			--disable-rpath --localstatedir="${PREFIX}/var"
 CONFIGURE_ENV=		INSTALL="${INSTALL}" INSTALL_LIB="${INSTALL_LIB}" YACC="${YACC}"
@@ -37,8 +37,10 @@ CPE_VENDOR=		mit
 CPE_VERSION=		5-${PORTVERSION}
 CPE_PRODUCT=		kerberos
 
-OPTIONS_DEFINE=		KRB5_PDF KRB5_HTML DNS_FOR_REALM LDAP READLINE
+OPTIONS_DEFINE=		KRB5_PDF KRB5_HTML DNS_FOR_REALM LDAP
 OPTIONS_DEFAULT=	KRB5_PDF KRB5_HTML
+OPTIONS_RADIO=		CMD_LINE_EDITING
+OPTIONS_RADIO_CMD_LINE_EDITING=	READLINE LIBEDIT
 KRB5_PDF_DESC=		Install krb5 PDF documentation
 KRB5_HTML_DESC=		Install krb5 HTML documentation
 DNS_FOR_REALM_DESC=	Enable DNS lookups for Kerberos realm names
@@ -53,7 +55,7 @@ LDFLAGS+=		-L${LOCALBASE}/lib -L${OPENSS
 USE_OPENSSL=		yes
 USE_RC_SUBR=		kpropd
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 # Fix up -Wl,-rpath in LDFLAGS
 .if !empty(KRB5_HOME)
@@ -85,8 +87,17 @@ PLIST_SUB+=		LDAP="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MREADLINE}
-USES+=			readline:port
+USES+=			readline
 CONFIGURE_ARGS+=	--with-readline
+.else
+CONFIGURE_ARGS+=	--without-readline
+.endif
+
+.if ${PORT_OPTIONS:MLIBEDIT}
+USES+=			libedit
+CONFIGURE_ARGS+=	--with-libedit
+.else
+CONFIGURE_ARGS+=	--without-libedit
 .endif
 
 .if defined(PROGRAM_TRANSFORM_NAME) && ${PROGRAM_TRANSFORM_NAME} != ""
@@ -149,4 +160,4 @@ post-install:
 	@${ECHO} "for more information.                                 "
 	@${ECHO} "------------------------------------------------------"
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510190713.t9J7DXPA086420>