2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-02 00:52:47 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lysp < Formula
|
2009-10-02 00:52:47 +00:00
|
|
|
homepage 'http://www.piumarta.com/software/lysp/'
|
2013-11-10 01:56:36 +00:00
|
|
|
url 'http://www.piumarta.com/software/lysp/lysp-1.1.tar.gz'
|
|
|
|
sha1 '4d579895a5ccd947249b8de6c992ab969c144c78'
|
2009-10-02 00:52:47 +00:00
|
|
|
|
|
|
|
depends_on 'bdw-gc'
|
|
|
|
|
2013-11-16 16:12:19 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 500
|
|
|
|
cause "use of unknown builtin '__builtin_return'"
|
|
|
|
end
|
|
|
|
|
2012-03-17 19:33:16 +00:00
|
|
|
# Use our CFLAGS
|
|
|
|
def patches; DATA; end
|
2009-10-02 00:52:47 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
2012-03-17 19:33:16 +00:00
|
|
|
bin.install "lysp", "gclysp"
|
2009-10-02 00:52:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
|
|
index fc3f5d9..0b0e20d 100644
|
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
|
|
|
@@ -1,6 +1,3 @@
|
|
|
|
-CFLAGS = -O -g -Wall
|
|
|
|
-CFLAGSO = -O3 -g -Wall -DNDEBUG
|
|
|
|
-CFLAGSs = -Os -g -Wall -DNDEBUG
|
|
|
|
LDLIBS = -rdynamic
|
|
|
|
|
|
|
|
all : lysp gclysp
|
|
|
|
@@ -10,15 +7,15 @@ lysp : lysp.c gc.c
|
|
|
|
size $@
|
|
|
|
|
|
|
|
olysp: lysp.c gc.c
|
|
|
|
- $(CC) $(CFLAGSO) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
|
|
|
|
+ $(CC) $(CFLAGS) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
|
|
|
|
size $@
|
|
|
|
|
|
|
|
ulysp: lysp.c gc.c
|
|
|
|
- $(CC) $(CFLAGSs) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
|
|
|
|
+ $(CC) $(CFLAGS) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
|
|
|
|
size $@
|
|
|
|
|
|
|
|
gclysp: lysp.c
|
|
|
|
- $(CC) $(CFLAGSO) -DBDWGC=1 -o $@ lysp.c $(LDLIBS) -lgc
|
|
|
|
+ $(CC) $(CFLAGS) -DBDWGC=1 -o $@ lysp.c $(LDLIBS) -lgc
|
|
|
|
size $@
|
|
|
|
|
|
|
|
run : all
|