From ad865bc696e7ba0eab45443a974659b4b1e633bf Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 29 Jun 2003 19:41:08 +0000 Subject: Don't assume iconv_*() live in libiconv since they may be a part of glibc on Linux systems. --- chat/centericq/Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'chat') diff --git a/chat/centericq/Makefile b/chat/centericq/Makefile index e7f19634649..1f740b95023 100644 --- a/chat/centericq/Makefile +++ b/chat/centericq/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2003/06/29 02:04:20 jlam Exp $ +# $NetBSD: Makefile,v 1.22 2003/06/29 19:41:08 jlam Exp $ # DISTNAME= centericq-4.9.4 @@ -17,12 +17,6 @@ USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-ssl --with-openssl=${SSLBASE} -# -# libiconv depends on configure scripts to include before -# trying to link against -liconv. Unfortunately, centericq's script -# doesn't do this, so fake it. -# -CONFIGURE_ENV+= ac_cv_lib_iconv_iconv=yes LIBS= ${LDFLAGS} USE_PERL5= run @@ -37,6 +31,15 @@ INCOMPAT_CURSES+= NetBSD-1.6_*-* NetBSD-1.6.[1-9]_*-* NetBSD-1.6[A-T]-* .include "../../lang/perl5/buildlink2.mk" .include "../../security/openssl/buildlink2.mk" +.if defined(BUILDLINK_LIBICONV_LDADD) && !empty(BUILDLINK_LIBICONV_LDADD) +# +# libiconv depends on configure scripts to include before +# trying to link against -liconv. Unfortunately, centericq's script +# doesn't do this, so fake it. +# +CONFIGURE_ENV+= ac_cv_lib_iconv_iconv=yes +.endif + .include "../../mk/bsd.pkg.mk" .if ${MACHINE_ARCH} == "alpha" -- cgit v1.2.3