From owner-svn-ports-head@FreeBSD.ORG Thu Mar 27 23:26:05 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 321E3218; Thu, 27 Mar 2014 23:26:05 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 06609835; Thu, 27 Mar 2014 23:26:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2RNQ4RE038434; Thu, 27 Mar 2014 23:26:04 GMT (envelope-from mm@svn.freebsd.org) Received: (from mm@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2RNQ4aW038433; Thu, 27 Mar 2014 23:26:04 GMT (envelope-from mm@svn.freebsd.org) Message-Id: <201403272326.s2RNQ4aW038433@svn.freebsd.org> From: Martin Matuska Date: Thu, 27 Mar 2014 23:26:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349373 - head/ftp/proftpd X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2014 23:26:05 -0000 Author: mm Date: Thu Mar 27 23:26:04 2014 New Revision: 349373 URL: http://svnweb.freebsd.org/changeset/ports/349373 QAT: https://qat.redports.org/buildarchive/r349373/ Log: - Add DOCS option. - When the NLS option is enabled the configure script looks for iconv_open() and libiconv_open() functions in libiconv before trying libc. This means that on FreeBSD 10 proftpd depends on converters/libiconv when it is installed but it should use iconv from libc instead. To fix this add ac_cv_lib_iconv_iconv_open=no and ac_cv_lib_iconv_libiconv_open=no to CONFIGURE_ARGS to bypass those configure tests when ICONV_LIB is empty. - Remove references to -lintl. The configure script detects it correctly. PR: ports/187860 Submitted by: tijl@FreeBSD.org Modified: head/ftp/proftpd/Makefile Modified: head/ftp/proftpd/Makefile ============================================================================== --- head/ftp/proftpd/Makefile Thu Mar 27 23:21:07 2014 (r349372) +++ head/ftp/proftpd/Makefile Thu Mar 27 23:26:04 2014 (r349373) @@ -5,7 +5,7 @@ PORTNAME?= proftpd .if !defined(DISTVERSION) PORTVERSION?= ${PROFTPD_VERSION} .endif -PORTREVISION?= 3 +PORTREVISION?= 4 CATEGORIES?= ftp MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \ https://github.com/downloads/proftpd/proftpd.github.com/ \ @@ -85,7 +85,7 @@ PLIST_FILES+= libexec/proftpd/${m}.a \ .endfor PLIST_DIRSTRY+= libexec/proftpd .else -OPTIONS_DEFINE= HTMLDOCS IPV6 NLS MEMCACHE PCRE +OPTIONS_DEFINE= DOCS HTMLDOCS IPV6 NLS MEMCACHE PCRE OPTIONS_DEFAULT= IPV6 NLS PCRE HTMLDOCS_DESC= Include HTML documentation @@ -158,8 +158,7 @@ CONFIGURE_ARGS+= --disable-ipv6 .if ${PORT_OPTIONS:MNLS} CONFIGURE_ARGS+= --enable-nls -USES+= gettext -PROFTPD_LIBS+= -lintl -L${LOCALBASE}/lib +USES+= gettext iconv PLIST_SUB+= NLS="" .else PLIST_SUB+= NLS="@comment " @@ -198,12 +197,16 @@ CONFIGURE_ARGS+= --with-shared=${_MODULE CONFIGURE_ARGS+= --with-includes=${INCLUDEDIRS} CONFIGURE_ARGS+= --with-libraries=${LIBDIRS} +.include + .if !defined(_BUILDING_PROFTPD_MODULE) -post-patch: -.if ${PORT_OPTIONS:MNLS} - @${REINPLACE_CMD} -e 's|-lsupp|-lsupp -lintl|g' ${WRKSRC}/Makefile.in +.if empty(ICONV_LIB) +CONFIGURE_ARGS+= ac_cv_lib_iconv_iconv_open=no \ + ac_cv_lib_iconv_libiconv_open=no .endif + +post-patch: @${REINPLACE_CMD} -e 's|proftpd\.conf|proftpd.conf.sample|g' ${WRKSRC}/Makefile.in pre-configure: @@ -247,4 +250,4 @@ post-install: @${INSTALL_MAN} ${WRKSRC}/src/ftpdctl.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/ .endif #!defined(_BUILDING_PROFTPD_MODULE) -.include +.include