summaryrefslogtreecommitdiff
path: root/lang/gauche/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-03-31 18:35:22 +0000
committerjlam <jlam@pkgsrc.org>2006-03-31 18:35:22 +0000
commitf2c4259b7fddeb6cc0f6376f08aa04a18bf5265f (patch)
treef685b58299f818ad17138e9c0f44d230528513b6 /lang/gauche/Makefile
parent6218d3fa88c7c0358444379cf77afebe0f0f6cea (diff)
downloadpkgsrc-f2c4259b7fddeb6cc0f6376f08aa04a18bf5265f.tar.gz
* Clean up the way this package was trying to pass in rpath flags for
iconv and gdbm. We now patch Makefile.in instead of the configure script and just pass in thr rpath flags via environment variables. * Honor PKGINFODIR.
Diffstat (limited to 'lang/gauche/Makefile')
-rw-r--r--lang/gauche/Makefile28
1 files changed, 8 insertions, 20 deletions
diff --git a/lang/gauche/Makefile b/lang/gauche/Makefile
index 8b7002f22d4..98d7135ac76 100644
--- a/lang/gauche/Makefile
+++ b/lang/gauche/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2006/03/31 17:41:07 jlam Exp $
+# $NetBSD: Makefile,v 1.37 2006/03/31 18:35:22 jlam Exp $
#
DISTNAME= Gauche-0.8.6
@@ -15,37 +15,25 @@ DEPENDS+= slib-[0-9]*:../../devel/slib
.include "options.mk"
-# This is ad-hoc. TRT would be to fix configure scripts, but that
-# would be also very tedious...
-SUBST_CLASSES+= lgdbm
-SUBST_STAGE.lgdbm= pre-configure
-SUBST_FILES.lgdbm= configure
-SUBST_SED.lgdbm= -e 's|"-lgdbm"|"${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gdbm}/lib -lgdbm"|g'
-
EVAL_PREFIX+= SLIB_PREFIX=slib
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-slib=${SLIB_PREFIX}/share/slib
-CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
CONFIGURE_ARGS+= --enable-multibyte=utf-8
CONFIGURE_ARGS+= --enable-threads=none # must match w/ boehm-gc
CONFIGURE_ENV+= AS="${CC} -x assembler-with-cpp -c"
-_WITH_ICONV_LIB= ${BUILDLINK_LIBICONV_LDADD:M-l*:C/-l//}
-LDFLAGS+= ${BUILDLINK_LIBICONV_LDADD}
+CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
+CONFIGURE_ARGS+= --with-iconv-lib=${BUILDLINK_LDADD.iconv:M-l*:S/-l//:Q}
+MAKE_ENV+= ICONV_LDFLAGS=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib
USE_TOOLS+= gzip makeinfo
INFO_FILES= gauche-refe.info gauche-refj.info
-post-install:
- gzip -d ${PREFIX}/info/gauche-ref*gz
-
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
-.if !empty(_WITH_ICONV_LIB)
-CONFIGURE_ARGS+= --with-iconv-lib=${_WITH_ICONV_LIB:Q}
-.else
-BUILDLINK_TRANSFORM+= rm:-liconv
-.endif
+post-install:
+ gzip -d ${PREFIX}/${PKGINFODIR}/gauche-ref*gz
+
+.include "../../mk/bsd.pkg.mk"