summaryrefslogtreecommitdiff
path: root/lang/stalin/patches
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-01-21 02:04:56 +0000
committerjtb <jtb@pkgsrc.org>2001-01-21 02:04:56 +0000
commit02f0c14ae4d56f478b786f78e41d366de260e201 (patch)
tree15c5e47e99ccd117729592ecac3dc7d7c16ddc7c /lang/stalin/patches
parent778c32c17365c9dad81f3aca3d1c70d9da6519bd (diff)
downloadpkgsrc-02f0c14ae4d56f478b786f78e41d366de260e201.tar.gz
Minor improvements. Don't use "-freg-struct-return" if compiling on
the Alpha. This probably won't fix the recent problems in the bulk builds. Install "libstalin.a" in ${PREFIX}/lib/stalin instead of ${PREFIX}/lib.
Diffstat (limited to 'lang/stalin/patches')
-rw-r--r--lang/stalin/patches/patch-aa24
-rw-r--r--lang/stalin/patches/patch-ab4
-rw-r--r--lang/stalin/patches/patch-ac4
-rw-r--r--lang/stalin/patches/patch-ad4
-rw-r--r--lang/stalin/patches/patch-ae17
-rw-r--r--lang/stalin/patches/patch-af18
-rw-r--r--lang/stalin/patches/patch-ag6
-rw-r--r--lang/stalin/patches/patch-ah6
-rw-r--r--lang/stalin/patches/patch-ai6
-rw-r--r--lang/stalin/patches/patch-aj12
-rw-r--r--lang/stalin/patches/patch-ak6
-rw-r--r--lang/stalin/patches/patch-al9
12 files changed, 61 insertions, 55 deletions
diff --git a/lang/stalin/patches/patch-aa b/lang/stalin/patches/patch-aa
index 1ca2a627306..f3ab4a46ad5 100644
--- a/lang/stalin/patches/patch-aa
+++ b/lang/stalin/patches/patch-aa
@@ -1,9 +1,10 @@
-$NetBSD: patch-aa,v 1.1.1.1 2000/12/10 11:07:34 jtb Exp $
+$NetBSD: patch-aa,v 1.2 2001/01/21 02:04:56 jtb Exp $
---- /dev/null Sun Dec 10 10:00:27 2000
+--- /dev/null Sun Jan 21 00:09:25 2001
+++ Makefile
@@ -0,0 +1,30 @@
+CFLAGS = -O2 -fomit-frame-pointer -freg-struct-return
++CFLAGS_ALPHA= -O2 -fomit-frame-pointer
+INCLUDES= -I${GC_PREFIX}/include -I${X11BASE}/include -I${MESA_PREFIX}/include
+LDFLAGS = -L${GC_PREFIX}/lib -L${X11BASE}/lib -L${MESA_PREFIX}/lib
+LIBS = -lgc -lm
@@ -12,24 +13,23 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/12/10 11:07:34 jtb Exp $
+
+all-alpha: stalin-alpha libstalin.a
+
-+OPTIONS = -I ./include -On -du -dI -t -c -db \
-+ -clone-size-limit 0 -split-even-if-no-widening \
-+ -do-not-align-strings \
-+ -treat-all-symbols-as-external \
-+ -do-not-index-constant-structure-types-by-expression \
-+ -do-not-index-allocated-structure-types-by-expression
-+
+stalin-32: stalin-32.o
-+ $(CC) -O -o stalin $@.o $(LDFLAGS) $(LIBS)
++ $(CC) $(CFLAGS) -o stalin $@.o $(LDFLAGS) $(LIBS)
+
+stalin-alpha: stalin-alpha.o
-+ $(CC) -O -o stalin $@.o $(LDFLAGS) $(LIBS)
++ $(CC) $(CFLAGS_ALPHA) -o stalin $@.o $(LDFLAGS) $(LIBS)
+
+LIBOBJS = xlib-c.o gl-c.o
+
+libstalin.a: include/xlib-c.o include/gl-c.o
-+ $(AR) cru $@ $(LIBOBJS)
++ $(AR) $(ARFLAGS) $@ $(LIBOBJS)
+ $(RANLIB) $@
+
++stalin-32.o:
++ $(CC) $(CFLAGS) $(INCLUDES) -c stalin-32.c
++
++stalin-alpha.o:
++ $(CC) $(CFLAGS_ALPHA) $(INCLUDES) -c stalin-alpha.c
++
+.c.o:
+ $(CC) $(CFLAGS) $(INCLUDES) -c $<
diff --git a/lang/stalin/patches/patch-ab b/lang/stalin/patches/patch-ab
index ce558f4e873..0960013ae15 100644
--- a/lang/stalin/patches/patch-ab
+++ b/lang/stalin/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.1.1.1 2000/12/10 11:07:34 jtb Exp $
+$NetBSD: patch-ab,v 1.2 2001/01/21 02:04:56 jtb Exp $
--- stalin.sc.orig Sat Nov 18 18:48:05 2000
+++ stalin.sc
@@ -7,7 +7,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/10 11:07:34 jtb Exp $
(initialize-stalin!)
(set! *include-path*
- (append '(".") include-path '("/usr/local/stalin/include")))
-+ (append '(".") include-path '("%%PREFIX%%/lib/stalin")))
++ (append '(".") include-path '("@PREFIX@/lib/stalin")))
(set! *bounds-checks?* (not disable-bounds-checks?))
(set! *memory-checks?* (not disable-memory-checks?))
(set! *overflow-checks?* (not disable-overflow-checks?))
diff --git a/lang/stalin/patches/patch-ac b/lang/stalin/patches/patch-ac
index 9ea80e51235..e138de0ef14 100644
--- a/lang/stalin/patches/patch-ac
+++ b/lang/stalin/patches/patch-ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.1.1.1 2000/12/10 11:07:34 jtb Exp $
+$NetBSD: patch-ac,v 1.2 2001/01/21 02:04:56 jtb Exp $
--- stalin-32.c.orig Sat May 15 22:34:50 1999
+++ stalin-32.c
@@ -15,7 +15,7 @@ $NetBSD: patch-ac,v 1.1.1.1 2000/12/10 11:07:34 jtb Exp $
t80266.s1.tag = NULL_TYPE;
t80267.s0.tag = STRING_TYPE;
- t80267.s0.value.string_type = "/usr/local/stalin/include";
-+ t80267.s0.value.string_type = "%%PREFIX%%/lib/stalin";
++ t80267.s0.value.string_type = "@PREFIX@/lib/stalin";
t80267.s1.tag = NULL_TYPE;
t80305.s0.tag = EXTERNAL_SYMBOL_TYPE;
t80305.s0.value.external_symbol_type = q82;
diff --git a/lang/stalin/patches/patch-ad b/lang/stalin/patches/patch-ad
index 461d8315014..af94f73d634 100644
--- a/lang/stalin/patches/patch-ad
+++ b/lang/stalin/patches/patch-ad
@@ -1,4 +1,4 @@
-$NetBSD: patch-ad,v 1.1.1.1 2000/12/10 11:07:34 jtb Exp $
+$NetBSD: patch-ad,v 1.2 2001/01/21 02:04:56 jtb Exp $
--- stalin-alpha.c.orig Sat Nov 18 18:47:17 2000
+++ stalin-alpha.c
@@ -15,7 +15,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/10 11:07:34 jtb Exp $
t80266.s1.tag = NULL_TYPE;
t80267.s0.tag = STRING_TYPE;
- t80267.s0.value.string_type = "/usr/local/stalin/include";
-+ t80267.s0.value.string_type = "%%PREFIX%%/lib/stalin";
++ t80267.s0.value.string_type = "@PREFIX@/lib/stalin";
t80267.s1.tag = NULL_TYPE;
t80305.s0.tag = EXTERNAL_SYMBOL_TYPE;
t80305.s0.value.external_symbol_type = q82;
diff --git a/lang/stalin/patches/patch-ae b/lang/stalin/patches/patch-ae
index 65ffef7d1eb..d3e41cd298e 100644
--- a/lang/stalin/patches/patch-ae
+++ b/lang/stalin/patches/patch-ae
@@ -1,8 +1,17 @@
-$NetBSD: patch-ae,v 1.2 2000/12/10 12:20:48 jtb Exp $
+$NetBSD: patch-ae,v 1.3 2001/01/21 02:04:56 jtb Exp $
---- /dev/null Sun Dec 10 09:45:42 2000
+--- /dev/null Sun Dec 10 08:43:45 2000
+++ stalinc
-@@ -0,0 +1,3 @@
+@@ -0,0 +1,12 @@
+#!/bin/sh
+
-+exec %%PREFIX%%/bin/stalin -I %%PREFIX%%/lib/stalin -I %%PREFIX%%/include -I %%PREFIX%%/lib -I %%GC_PREFIX%%/include -I %%GC_PREFIX%%/lib -Ob -Om -On -Or -Ot -d -d1 -du -dI -k -copt -O2 -copt -fomit-frame-pointer -copt -freg-struct-return $@
++STALIN_INCLUDES=-I @PREFIX@/lib/stalin -I @PREFIX@/include \
++ -I @PREFIX@/lib -I @GC_PREFIX@/include -I @GC_PREFIX@/lib \
++ -I @X11BASE@/lib -I @X11BASE@/include \
++ -I @MESA_PREFIX@/lib -I @MESA_PREFIX@/include
++
++STALIN_OPTIONS= -Ob -Om -On -Or -Ot -d -d1 -du -dI -k \
++ -copt -O2 -copt -fomit-frame-pointer \
++ -copt -freg-struct-return
++
++exec @PREFIX@/bin/stalin $STALIN_INCLUDES $STALIN_OPTIONS $@
diff --git a/lang/stalin/patches/patch-af b/lang/stalin/patches/patch-af
index 99b9df4eddb..c137497e09a 100644
--- a/lang/stalin/patches/patch-af
+++ b/lang/stalin/patches/patch-af
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.1.1.1 2000/12/10 11:07:35 jtb Exp $
+$NetBSD: patch-af,v 1.2 2001/01/21 02:04:56 jtb Exp $
--- stalin.1.orig Sun Dec 10 08:53:20 2000
+++ stalin.1
@@ -7,35 +7,35 @@ $NetBSD: patch-af,v 1.1.1.1 2000/12/10 11:07:35 jtb Exp $
compiler.
.SH FILES
-.I /usr/local/stalin/include/
-+.I %%PREFIX%%/lib/stalin/
++.I @PREFIX@/lib/stalin/
default directory for Scheme include files and library archive files
.br
-.I /usr/local/stalin/include/Scheme-to-C-compatibility.sc
-+.I %%PREFIX%%/lib/stalin/Scheme-to-C-compatibility.sc
++.I @PREFIX@/lib/stalin/Scheme-to-C-compatibility.sc
include file for Scheme->C compatibility
.br
-.I /usr/local/stalin/include/QobiScheme.sc
-+.I %%PREFIX%%/lib/stalin/QobiScheme.sc
++.I @PREFIX@/lib/stalin/QobiScheme.sc
include file for QobiScheme
.br
-.I /usr/local/stalin/include/xlib.sc
-+.I %%PREFIX%%/lib/stalin/xlib.sc
++.I @PREFIX@/lib/stalin/xlib.sc
include file for Xlib FPI
.br
-.I /usr/local/stalin/include/xlib-original.sc
-+.I %%PREFIX%%/lib/stalin/xlib-original.sc
++.I @PREFIX@/lib/stalin/xlib-original.sc
include file for Xlib FPI
.br
-.I /usr/local/stalin/include/libstalin.a
-+.I %%PREFIX%%/lib/libstalin.a
++.I @PREFIX@/lib/stalin/libstalin.a
library archive for Xlib FPI
.br
-.I /usr/local/stalin/include/gc.h
-+.I %%GC_PREFIX%%/include/gc.h
++.I @GC_PREFIX@/include/gc.h
include file for the Boehm conservative garbage collector
.br
-.I /usr/local/stalin/include/libgc.a
-+.I %%GC_PREFIX%%/lib/libgc.a
++.I @GC_PREFIX@/lib/libgc.a
library archive for the Boehm conservative garbage collector
.SH SEE\ ALSO
.BR sci "(2), " scc "(2), " gcc "(1), " ld "(1), " alloca "(3), " gc (8)
diff --git a/lang/stalin/patches/patch-ag b/lang/stalin/patches/patch-ag
index cef2650c897..370734bc52f 100644
--- a/lang/stalin/patches/patch-ag
+++ b/lang/stalin/patches/patch-ag
@@ -1,12 +1,12 @@
-$NetBSD: patch-ag,v 1.2 2000/12/10 12:20:48 jtb Exp $
+$NetBSD: patch-ag,v 1.3 2001/01/21 02:04:56 jtb Exp $
---- benchmarks/benchmark.orig Wed May 19 15:50:11 1999
+--- benchmarks/benchmark.orig Sun Dec 10 09:09:13 2000
+++ benchmarks/benchmark
@@ -1,6 +1,6 @@
#!/bin/sh
gcc -o unbuff unbuff.c
-../stalin -q -On -db benchmarks-to-latex
-+%%STALIN%% -q -On -db benchmarks-to-latex
++@PREFIX@/bin/stalin -I @PREFIX@/lib/stalin -I @PREFIX@/include -I @PREFIX@/lib -I @GC_PREFIX@/include -I @GC_PREFIX@/lib -q -On -db benchmarks-to-latex
./compile-benchmarks
./run-benchmarks
./benchmarks-to-latex
diff --git a/lang/stalin/patches/patch-ah b/lang/stalin/patches/patch-ah
index 3ae8b3e9169..28dd225212a 100644
--- a/lang/stalin/patches/patch-ah
+++ b/lang/stalin/patches/patch-ah
@@ -1,12 +1,12 @@
-$NetBSD: patch-ah,v 1.2 2000/12/10 12:20:48 jtb Exp $
+$NetBSD: patch-ah,v 1.3 2001/01/21 02:04:56 jtb Exp $
---- benchmarks/compile-and-run-stalin-benchmark.orig Mon Apr 26 20:40:00 1999
+--- benchmarks/compile-and-run-stalin-benchmark.orig Sun Dec 10 09:10:17 2000
+++ benchmarks/compile-and-run-stalin-benchmark
@@ -12,6 +12,6 @@
o="$s $c"
echo compile $1
sed -f stalin.sed $1.sc >$1-stalin.sc
-time ../stalin $o $2 $1-stalin
-+time %%STALIN%% $o $2 $1-stalin
++time @PREFIX@/bin/stalin -I @PREFIX@/lib/stalin -I @PREFIX@/include -I @PREFIX@/lib -I @GC_PREFIX@/include -I @GC_PREFIX@/lib $o $2 $1-stalin
echo run $1
time ./$1-stalin >/dev/null
diff --git a/lang/stalin/patches/patch-ai b/lang/stalin/patches/patch-ai
index 6f78cfe11f5..2b944cafbb0 100644
--- a/lang/stalin/patches/patch-ai
+++ b/lang/stalin/patches/patch-ai
@@ -1,10 +1,10 @@
-$NetBSD: patch-ai,v 1.2 2000/12/10 12:20:48 jtb Exp $
+$NetBSD: patch-ai,v 1.3 2001/01/21 02:04:56 jtb Exp $
---- benchmarks/compile-stalin-benchmark.orig Mon Apr 26 20:40:11 1999
+--- benchmarks/compile-stalin-benchmark.orig Sun Dec 10 09:09:25 2000
+++ benchmarks/compile-stalin-benchmark
@@ -12,4 +12,4 @@
o="$s $c"
echo compile $1
sed -f stalin.sed $1.sc >$1-stalin.sc
-time ../stalin $o $2 $1-stalin
-+time %%STALIN%% $o $2 $1-stalin
++time @PREFIX@/bin/stalin -I @PREFIX@/lib/stalin -I @PREFIX@/include -I @PREFIX@/lib -I @GC_PREFIX@/include -I @GC_PREFIX@/lib $o $2 $1-stalin
diff --git a/lang/stalin/patches/patch-aj b/lang/stalin/patches/patch-aj
index 8ee5b8d3ce7..8aad63a8da8 100644
--- a/lang/stalin/patches/patch-aj
+++ b/lang/stalin/patches/patch-aj
@@ -1,15 +1,13 @@
-$NetBSD: patch-aj,v 1.2 2000/12/10 12:20:48 jtb Exp $
+$NetBSD: patch-aj,v 1.3 2001/01/21 02:04:57 jtb Exp $
---- benchmarks/make-define-application-example.orig Mon Apr 26 20:40:26 1999
+--- benchmarks/make-define-application-example.orig Sun Dec 10 09:09:35 2000
+++ benchmarks/make-define-application-example
-@@ -1,7 +1,8 @@
+@@ -1,7 +1,7 @@
#!/bin/sh
ulimit -s unlimited
ulimit -c 0
-../stalin -d0 -d1 -d5 -d6 -On -du -dI -q -no-escaping-continuations\
-+%%STALIN%% -d0 -d1 -d5 -d6 -On -du -dI -q \
-+ -no-escaping-continuations \
++@PREFIX@/bin/stalin -I @PREFIX@/lib/stalin -I @PREFIX@/include -I @PREFIX@/lib -I @GC_PREFIX@/include -I @GC_PREFIX@/lib -d0 -d1 -d5 -d6 -On -du -dI -q -no-escaping-continuations\
-copt -O2 -copt -fomit-frame-pointer -copt -Wall -copt -freg-struct-return\
-- -copt -L/usr/X11/lib -copt -lX11\
-+ -copt -L%%X11BASE%%/lib -copt -lX11\
+ -copt -L/usr/X11/lib -copt -lX11\
define-application-example
diff --git a/lang/stalin/patches/patch-ak b/lang/stalin/patches/patch-ak
index f663acada26..86ce851fad7 100644
--- a/lang/stalin/patches/patch-ak
+++ b/lang/stalin/patches/patch-ak
@@ -1,12 +1,12 @@
-$NetBSD: patch-ak,v 1.2 2000/12/10 12:20:48 jtb Exp $
+$NetBSD: patch-ak,v 1.3 2001/01/21 02:04:57 jtb Exp $
---- benchmarks/make-hello.orig Sun Dec 10 10:21:03 2000
+--- benchmarks/make-hello.orig Sun Dec 10 09:08:56 2000
+++ benchmarks/make-hello
@@ -1,6 +1,6 @@
#!/bin/sh
ulimit -s unlimited
ulimit -c 0
-../stalin -d0 -d1 -d5 -d6 -On -du -dI\
-+%%STALIN%% -d0 -d1 -d5 -d6 -On -du -dI\
++@PREFIX@/bin/stalin -I @PREFIX@/lib/stalin -I @PREFIX@/include -I @PREFIX@/lib -I @GC_PREFIX@/include -I @GC_PREFIX@/lib -d0 -d1 -d5 -d6 -On -du -dI\
-copt -O2 -copt -fomit-frame-pointer -copt -Wall -copt -freg-struct-return\
hello
diff --git a/lang/stalin/patches/patch-al b/lang/stalin/patches/patch-al
index 7c7221012d9..9966b229f48 100644
--- a/lang/stalin/patches/patch-al
+++ b/lang/stalin/patches/patch-al
@@ -1,14 +1,13 @@
-$NetBSD: patch-al,v 1.2 2000/12/10 12:20:48 jtb Exp $
+$NetBSD: patch-al,v 1.3 2001/01/21 02:04:57 jtb Exp $
---- benchmarks/make-xhello.orig Sun Dec 10 10:21:10 2000
+--- benchmarks/make-xhello.orig Sun Dec 10 09:09:05 2000
+++ benchmarks/make-xhello
@@ -1,7 +1,7 @@
#!/bin/sh
ulimit -s unlimited
ulimit -c 0
-../stalin -d0 -d1 -d5 -d6 -On -du -dI\
-+%%STALIN%% -d0 -d1 -d5 -d6 -On -du -dI\
++@PREFIX@/bin/stalin -I @PREFIX@/lib/stalin -I @PREFIX@/include -I @PREFIX@/lib -I @GC_PREFIX@/include -I @GC_PREFIX@/lib -d0 -d1 -d5 -d6 -On -du -dI\
-copt -O2 -copt -fomit-frame-pointer -copt -Wall -copt -freg-struct-return\
-- -copt -L/usr/X11/lib -copt -lX11\
-+ -copt -L%%X11BASE%%/lib -copt -lX11\
+ -copt -L/usr/X11/lib -copt -lX11\
xhello