diff options
author | seb <seb@pkgsrc.org> | 2003-08-09 09:31:25 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2003-08-09 09:31:25 +0000 |
commit | e8105f0c40aa6a15c66d5ed68999369d788fb071 (patch) | |
tree | 266fc66f1684ec43f9cf15fca31ada85db4cba14 /lang/gauche | |
parent | 553f3358ea77f68bfec7e26485a527b6a4e2f44f (diff) | |
download | pkgsrc-e8105f0c40aa6a15c66d5ed68999369d788fb071.tar.gz |
Warning hack ahead!
Deal with current having iconv.h but no libiconv.
Diffstat (limited to 'lang/gauche')
-rw-r--r-- | lang/gauche/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
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 |