summaryrefslogtreecommitdiff
path: root/chat/centericq
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-06-29 19:41:08 +0000
committerjlam <jlam@pkgsrc.org>2003-06-29 19:41:08 +0000
commit4845a552137cf267e1c21a9d4d68274718d4067c (patch)
treec0d7de7097c3a3c7062ebfdd882a654567113712 /chat/centericq
parent89e1b65bc9882564a2d4d40f3a797757e0a2d9b2 (diff)
downloadpkgsrc-4845a552137cf267e1c21a9d4d68274718d4067c.tar.gz
Don't assume iconv_*() live in libiconv since they may be a part of glibc
on Linux systems.
Diffstat (limited to 'chat/centericq')
-rw-r--r--chat/centericq/Makefile17
1 files changed, 10 insertions, 7 deletions
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 <iconv.h> 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 <iconv.h> 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"