libiconv problem on dansguardian-(devel)
Boris Samorodov
bsam at passap.ru
Thu Oct 17 12:38:39 UTC 2013
17.10.2013 15:19, Marko Cupać пишет:
> I cannot compile either of the two with NTLM option enabled:
> www/dansguardian
> www/dansguardian-devel
>
> This is on 9.2-RELEASE i386.
>
> Both fail with the same error message:
>
> ---- error message ----
> checking for NTLM support... yes
> checking for iconv... no
> no
> checking for iconv in -liconv... no
> no
> checking for libiconv in -liconv... no
> configure: error: no native or standard library iconv function found! (needed by NTLM plugin - try again with "--with-libiconv"?)
> ===> Script "configure" failed unexpectedly.
> ---- error message ----
>
> Any idea how to fix this?
I think that the right way is to include iconv to Uses unconditionally
(keeping in mind that --with-libiconv=${LOCALBASE} also was used
unconditionally before switching to Uses/iconv.mk). The same for
www/dansguardian-devel.
The proposed patch attached.
--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile (revision 330630)
+++ Makefile (working copy)
@@ -14,7 +14,7 @@
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
USE_RC_SUBR= dansguardian
-USES= pkgconfig
+USES= pkgconfig iconv
CONFLICTS= dansguardian-2.12.*
LATEST_LINK= dansguardian
@@ -97,8 +97,7 @@
.endif
.if ${PORT_OPTIONS:MNTLM}
-CONFIGURE_ARGS+= --enable-ntlm ${ICONV_CONFIGURE_BASE}
-USES+= iconv
+CONFIGURE_ARGS+= --enable-ntlm
PLIST_SUB+= NTLMCONF=""
.else
PLIST_SUB+= NTLMCONF="@comment "
More information about the freebsd-ports
mailing list