summaryrefslogtreecommitdiff
path: root/lang/gauche
diff options
context:
space:
mode:
authorjlam <jlam>2006-03-31 18:35:22 +0000
committerjlam <jlam>2006-03-31 18:35:22 +0000
commit546eb2b51642f6630732774e96ff7f97b2317593 (patch)
treef685b58299f818ad17138e9c0f44d230528513b6 /lang/gauche
parent1699ae1d3d3c075b4463547da843605e80ff347a (diff)
downloadpkgsrc-546eb2b51642f6630732774e96ff7f97b2317593.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')
-rw-r--r--lang/gauche/Makefile28
-rw-r--r--lang/gauche/PLIST6
-rw-r--r--lang/gauche/distinfo6
-rw-r--r--lang/gauche/options.mk3
-rw-r--r--lang/gauche/patches/patch-aa14
-rw-r--r--lang/gauche/patches/patch-af13
-rw-r--r--lang/gauche/patches/patch-ag13
7 files changed, 56 insertions, 27 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"
diff --git a/lang/gauche/PLIST b/lang/gauche/PLIST
index 9a8e85c74d1..b3aae34cae4 100644
--- a/lang/gauche/PLIST
+++ b/lang/gauche/PLIST
@@ -1,9 +1,11 @@
-@comment $NetBSD: PLIST,v 1.13 2006/02/16 18:09:27 wiz Exp $
+@comment $NetBSD: PLIST,v 1.14 2006/03/31 18:35:22 jlam Exp $
bin/gauche-cesconv
bin/gauche-config
bin/gauche-install
bin/gauche-package
bin/gosh
+info/gauche-refe.info
+info/gauche-refj.info
lib/gauche/${PKGVERSION}/${MACHINE_GNU_PLATFORM}/auxsys.so
lib/gauche/${PKGVERSION}/${MACHINE_GNU_PLATFORM}/binary.so
lib/gauche/${PKGVERSION}/${MACHINE_GNU_PLATFORM}/fcntl.so
@@ -59,8 +61,8 @@ lib/gauche/${PKGVERSION}/include/gc.h
lib/gauche/${PKGVERSION}/include/gc_config_macros.h
lib/gauche/${PKGVERSION}/include/gc_pthread_redirects.h
lib/libgauche.so
-lib/libgauche.so.${PKGVERSION}
lib/libgauche.so.0
+lib/libgauche.so.${PKGVERSION}
man/man1/gauche-config.1
man/man1/gosh.1
share/aclocal/gauche.m4
diff --git a/lang/gauche/distinfo b/lang/gauche/distinfo
index d8dcab8cc26..973ffe4df6b 100644
--- a/lang/gauche/distinfo
+++ b/lang/gauche/distinfo
@@ -1,10 +1,12 @@
-$NetBSD: distinfo,v 1.19 2006/03/31 17:40:12 jlam Exp $
+$NetBSD: distinfo,v 1.20 2006/03/31 18:35:22 jlam Exp $
SHA1 (Gauche-0.8.6.tgz) = 8ce200011da2eff925c8ccf65502529df379f2b8
RMD160 (Gauche-0.8.6.tgz) = e6986c2602926b6a5c16a41838212bd041a4fbae
Size (Gauche-0.8.6.tgz) = 2881800 bytes
-SHA1 (patch-aa) = 0532c0fdd7d7d94528f476cce5111740c0a8f851
+SHA1 (patch-aa) = 21aa160a43ce7eb0de636dd422c8d9b59b71f8ee
SHA1 (patch-ab) = 7c05e4e266078903871e13084c217ba6930275ce
SHA1 (patch-ac) = 7e5e0056f6e1cf685edf8dd0bd5b7ea87b05348c
SHA1 (patch-ad) = 25d6ed22d3a3d8d0360575ab8be5c5f1f0cf447e
SHA1 (patch-ae) = 0f76f4ba32b21d9c34335713e17bac70b8f8f9fd
+SHA1 (patch-af) = 3f269e0c65830eeed9c5723cda02a9a66a8aa475
+SHA1 (patch-ag) = 97d19d33e2ae59bb894716bd289206b9b12ed38c
diff --git a/lang/gauche/options.mk b/lang/gauche/options.mk
index 89841cce70c..0b2f32e4ebe 100644
--- a/lang/gauche/options.mk
+++ b/lang/gauche/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.3 2005/12/05 23:55:09 rillig Exp $
+# $NetBSD: options.mk,v 1.4 2006/03/31 18:35:22 jlam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gauche
PKG_SUPPORTED_OPTIONS= gdbm multibyte
@@ -15,6 +15,7 @@ PKG_SUGGESTED_OPTIONS= gdbm multibyte
.if !empty(PKG_OPTIONS:Mgdbm)
. include "../../databases/gdbm/buildlink3.mk"
PLIST_SUBST+= USE_GDBM=''
+MAKE_ENV+= GDBM_LDFLAGS=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gdbm}/lib
.else
PLIST_SUBST+= USE_GDBM='@comment '
.endif
diff --git a/lang/gauche/patches/patch-aa b/lang/gauche/patches/patch-aa
index 1f0eede3255..dd1dc8685c0 100644
--- a/lang/gauche/patches/patch-aa
+++ b/lang/gauche/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.6 2006/03/31 17:40:12 jlam Exp $
+$NetBSD: patch-aa,v 1.7 2006/03/31 18:35:22 jlam Exp $
---- configure.orig 2005-11-05 01:00:47.000000000 +0000
+--- configure.orig 2005-11-04 20:00:47.000000000 -0500
+++ configure
@@ -1631,7 +1631,7 @@ _ACEOF
@@ -94,3 +94,13 @@ $NetBSD: patch-aa,v 1.6 2006/03/31 17:40:12 jlam Exp $
SHLIB_SO_CFLAGS="-fPIC"
SHLIB_SO_LDFLAGS="$rpath -shared -o"
SHLIB_SO_SUFFIX="so"
+@@ -9276,7 +9341,9 @@ fi;
+ if test "${with_iconv_lib+set}" = set; then
+ withval="$with_iconv_lib"
+
++ if test "x$withval" != x; then
+ ICONV_NAME="$with_iconv_lib"; ICONV_LIB="-l$with_iconv_lib"
++ fi
+
+ fi;
+
diff --git a/lang/gauche/patches/patch-af b/lang/gauche/patches/patch-af
new file mode 100644
index 00000000000..913d633d1f8
--- /dev/null
+++ b/lang/gauche/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.3 2006/03/31 18:35:22 jlam Exp $
+
+--- ext/dbm/Makefile.in.orig 2005-08-28 18:51:19.000000000 -0400
++++ ext/dbm/Makefile.in
+@@ -12,6 +12,8 @@ SCMFILES = @DBM_SCMFILES@
+ GENERATED = Makefile dbmconf.h
+ XCLEANFILES = gdbm.c ndbm.c odbm.c *_head.c *_tail.c
+
++XLDFLAGS = $(GDBM_LDFLAGS)
++
+ all : $(LIBFILES)
+
+ gdbm_OBJECTS = gdbm_head.$(OBJEXT) gdbm.$(OBJEXT) gdbm_tail.$(OBJEXT)
diff --git a/lang/gauche/patches/patch-ag b/lang/gauche/patches/patch-ag
new file mode 100644
index 00000000000..6851fa1a09f
--- /dev/null
+++ b/lang/gauche/patches/patch-ag
@@ -0,0 +1,13 @@
+$NetBSD: patch-ag,v 1.5 2006/03/31 18:35:22 jlam Exp $
+
+--- ext/charconv/Makefile.in.orig 2005-09-10 05:05:28.000000000 -0400
++++ ext/charconv/Makefile.in
+@@ -5,7 +5,7 @@ top_srcdir = @top_srcdir@
+ include ../Makefile.ext
+
+ XCPPFLAGS = @ICONV_CPPFLAGS@
+-XLDFLAGS = @ICONV_LDFLAGS@
++XLDFLAGS = @ICONV_LDFLAGS@ $(ICONV_LDFLAGS)
+ XLIBS = @ICONV_LIB@
+
+ SCM_CATEGORY = gauche