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 | 5685a3853900f46b70b38c259f7224310541abd7 (patch) | |
tree | 266fc66f1684ec43f9cf15fca31ada85db4cba14 /lang | |
parent | 5ac2f6e9a7129e29a62ea5ba4ef0caade5951130 (diff) | |
download | pkgsrc-5685a3853900f46b70b38c259f7224310541abd7.tar.gz |
Warning hack ahead!
Deal with current having iconv.h but no libiconv.
Diffstat (limited to 'lang')
-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 |