From e8105f0c40aa6a15c66d5ed68999369d788fb071 Mon Sep 17 00:00:00 2001 From: seb Date: Sat, 9 Aug 2003 09:31:25 +0000 Subject: Warning hack ahead! Deal with current having iconv.h but no libiconv. --- lang/gauche/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lang/gauche') diff --git a/lang/gauche/Makefile b/lang/gauche/Makefile index 1957d038df7..b1918323b41 100644 --- a/lang/gauche/Makefile +++ b/lang/gauche/Makefile @@ -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 @@ BROKEN=Test required on NetBSD/i386 a.out 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 @@ CONFIGURE_ARGS+= --enable-multibyte=${GAUCHE_MULTIBYTE} .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 -- cgit v1.2.3