pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gauche Warning hack ahead!



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1c5b43f434e
branches:  trunk
changeset: 459847:c1c5b43f434e
user:      seb <seb%pkgsrc.org@localhost>
date:      Sat Aug 09 09:31:25 2003 +0000

description:
Warning hack ahead!
Deal with current having iconv.h but no libiconv.

diffstat:

 lang/gauche/Makefile |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 883a2c78e8f9 -r c1c5b43f434e lang/gauche/Makefile
--- a/lang/gauche/Makefile      Sat Aug 09 09:12:41 2003 +0000
+++ b/lang/gauche/Makefile      Sat Aug 09 09:31:25 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2003/07/17 21:44:20 grant Exp $
+# $NetBSD: Makefile,v 1.16 2003/08/09 09:31:25 seb Exp $
 #
 
 DISTNAME=      Gauche-0.6.3
@@ -29,9 +29,12 @@
 GNU_CONFIGURE= yes
 USE_BUILDLINK2=        yes
 CONFIGURE_ARGS+=       --with-slib=${PREFIX}/share/slib
-CONFIGURE_ARGS+=       --with-iconv=${BUILDLINK_PREFIX.libiconv} --with-iconv-lib=iconv
+CONFIGURE_ARGS+=       --with-iconv=${BUILDLINK_PREFIX.iconv}
 CONFIGURE_ENV+=                AS="${CC} -x assembler-with-cpp -c"
 
+_WITH_ICONV_LIB=       ${BUILDLINK_LIBICONV_LDADD:M-l*:C/-l//}
+LDFLAGS+=              ${BUILDLINK_LIBICONV_LDADD}
+
 USE_NEW_TEXINFO=       YES
 USE_MAKEINFO=          YES
 INFO_FILES=            gauche-refe.info gauche-refj.info
@@ -43,3 +46,9 @@
 
 .include "../../converters/libiconv/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
+
+.if !empty(_WITH_ICONV_LIB)
+CONFIGURE_ARGS+=       --with-iconv-lib=${_WITH_ICONV_LIB}
+.else
+BUILDLINK_TRANSFORM+=  S:-liconv:
+.endif



Home | Main Index | Thread Index | Old Index