Skip to content
Permalink
Browse files

new port: gwydion-dylan-2.3.11

submitted by: 	tim@ccc.de (Tim Pritlove)
reviewed by:	olegb@

this takes forever to compile :)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@7550 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Ole Guldberg Jensen
Ole Guldberg Jensen committed Jun 18, 2004
1 parent fd6b013 commit eac596729a5dc61b603637267ad60c96bf53c76b
@@ -0,0 +1,67 @@
# $Id: Portfile,v 1.1 2004/06/18 11:20:58 olegb Exp $
PortSystem 1.0
name gwydion-dylan
version 2.3.11
categories lang
maintainers tim@ccc.de
description The Gwydion Dylan Compiler
long_description Dylan is an advanced, object-oriented, dynamic language which \
supports the rapid development of programs. When needed, the \
programmer can later optimize (his or her) programs for more \
efficient execution by supplying type information to the compiler. \
Nearly all entities in Dylan (including functions, classes, and \
basic data types such as integers) are first class objects. \
Additionally Dylan supports multiple inheritance, polymorphism, \
multiple dispatch, keyword arguments, object introspection, \
and many other advanced features

depends_lib lib:libgc:boehmgc
homepage http://www.gwydiondylan.org/
master_sites http://www.gwydiondylan.org/downloads/src/tar/


patchfiles patch-Defaults.in.diff \
patch-ltmain.sh.diff \
d2c/compiler/main/patch-main.dylan.diff \
platform/carbon/simple-starter/patch-my-simple.lid.diff \
platform/carbon/carbon/patch-carbon-events.dylan.diff \
tools/pidgin/src/patch-platforms.dylan.diff \
tools/pidgin/src/patch-c-parser-exports.dylan.diff \
platform/patch-Makegen.diff \
mindy/compat/patch-Makefile.in.diff \
mindy/interp/patch-Makefile.in.diff \
mindy/etc/patch-Makefile.in.diff \
mindy/comp/patch-Makefile.in.diff \
platform/carbon/sillyballs/patch-sillyballs.lid.diff \
platform/carbon/carbon-event-handling/patch-carbon-event-handling.lid.diff

checksums gwydion-dylan-2.3.11.tar.gz md5 0be55ce757671efb415ec6616b6277c4
platforms darwin


configure.env CPPFLAGS="-Wno-long-double" LDFLAGS="-L${prefix}/lib"
configure.args --without-gtk --disable-gtktest --disable-duim \
--includedir="${prefix}/include/dylan" \
--mandir=${prefix}/share/man \
--with-gc-prefix=${prefix} --enable-d2c --enable-mindy

build.target default


platform darwin 6 {
depends_lib-append lib:libdl:dlcompat
}

variant gtk {
depends_lib-append lib:libgtk.2:gtk2 lib:libglib.2:glib2
configure.args-delete --without-gtk --disable-gtktest
}

variant mindy-bootstrap {
configure.args-append --enable-mindy-bootstrap
}

variant mindy-only {
configure.args-delete --enable-d2c
configure.args-append --disable-d2c
}
@@ -0,0 +1,11 @@
--- d2c/compiler/main/main.dylan.orig Sat Oct 4 13:20:51 2003
+++ d2c/compiler/main/main.dylan Sat Oct 4 13:21:30 2003
@@ -215,7 +215,7 @@

// Location of runtime.h
define constant $runtime-include-dir
- = concatenate($dylan-dir, "/include");
+ = concatenate($dylan-dir, "/include/dylan");

#endif

@@ -0,0 +1,22 @@
--- mindy/comp/Makefile.in.orig Sat Oct 4 13:20:58 2003
+++ mindy/comp/Makefile.in Sat Oct 4 13:21:30 2003
@@ -49,8 +49,9 @@

CC = @CC@
CCOPTS = @CCOPTS@
-CFLAGS = $(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
+CFLAGS = @CPPFLAGS@ $(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
CFLAGS_NO_WERROR = `echo $(CFLAGS) | sed 's/-Werror//g'`
+LDFLAGS = @LDFLAGS@
YACC = @YACC@
YFLAGS = -d
LEX = @LEX@
@@ -76,7 +77,7 @@
dump.c free.c dup.c feature.c

mindycomp$(exe_ext): ${OBJS}
- ${CC} ${OBJS} -DVERSION=\""`/bin/date`"\" ${SRCDIR}/version.c ${LIBS} -o ,$@
+ ${CC} ${OBJS} ${LDFLAGS} -DVERSION=\""`/bin/date`"\" ${SRCDIR}/version.c ${LIBS} -o ,$@
mv ,$@ $@

${SRCDIR}/parser-tab.c: ${SRCDIR}/parser.y
@@ -0,0 +1,11 @@
--- mindy/compat/Makefile.in.orig Sat Oct 4 13:20:58 2003
+++ mindy/compat/Makefile.in Sat Oct 4 13:21:30 2003
@@ -49,7 +49,7 @@
AR = ar
CC = @CC@
CCOPTS = @CCOPTS@
-CFLAGS = $(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\" -DTARGET=\"@d2c_target@\"
+CFLAGS = @CPPFLAGS@ $(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\" -DTARGET=\"@d2c_target@\"
YACC = @YACC@
YFLAGS = -d
LEX = @LEX@
@@ -0,0 +1,21 @@
--- mindy/etc/Makefile.in.orig Sat Oct 4 13:21:00 2003
+++ mindy/etc/Makefile.in Sat Oct 4 13:21:30 2003
@@ -50,7 +50,8 @@

CC = @CC@
CCOPTS = @CCOPTS@
-CFLAGS = $(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
+CFLAGS = @CPPFLAGS@ $(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
+LDFLAGS = @LDFLAGS@
YACC = @YACC@
YFLAGS = -d
LEX = @LEX@
@@ -74,7 +75,7 @@
all: mindyexec$(exe_ext)

mindyexec$(exe_ext): mindyexec.o
- ${CC} mindyexec.o ${LIBS} -o ,$@
+ ${CC} mindyexec.o ${LDFLAGS} ${LIBS} -o ,$@
mv ,$@ $@

mindyexec.o: ${SRCDIR}/mindyexec.c
@@ -0,0 +1,22 @@
--- mindy/interp/Makefile.in.orig Sat Oct 4 13:21:00 2003
+++ mindy/interp/Makefile.in Sat Oct 4 13:21:30 2003
@@ -52,8 +52,9 @@

CC = @CC@
CCOPTS = @CCOPTS@
-CFLAGS = $(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} -I. @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\" -DVERSION=\"@version@\" -DTARGET=\"@d2c_target@\"
+CFLAGS = @CPPFLAGS@ $(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} -I. @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\" -DVERSION=\"@version@\" -DTARGET=\"@d2c_target@\"
CFLAGS_NO_WERROR = `echo $(CFLAGS) | sed 's/-Werror//g'`
+LDFLAGS = @LDFLAGS@
YACC = @YACC@
YFLAGS = -d
LEX = @LEX@
@@ -89,7 +90,7 @@
EXTERN-INCLUDES = ${SRCDIR}/malloc.inc ${TIME}/time.inc

mindy$(exe_ext): ${OBJS} ../compat/libcompat.a
- ${CC} ${OBJS} ${LIBS} -o ,$@
+ ${CC} ${OBJS} ${LDFLAGS} ${LIBS} -o ,$@
mv -f ,$@ $@

${SRCDIR}/parser-tab.c: ${SRCDIR}/parser.y
@@ -0,0 +1,15 @@
--- Defaults.in.orig Sat Oct 4 13:21:01 2003
+++ Defaults.in Sat Oct 4 13:23:16 2003
@@ -96,10 +96,10 @@
};

if ($enable_bootstrap && $bootstrap_compiler eq "d2c") {
- $CPPFLAGS = '-I@LOCAL_RUNTIME@';
+ $CPPFLAGS = '-I@LOCAL_RUNTIME@ @CPPFLAGS@';
$d2c_runtime = '-L@LOCAL_RUNTIME@ ';
} else {
- $CPPFLAGS = '-I'.$srcroot.'/d2c/runtime';
+ $CPPFLAGS = '-I'.$srcroot.'/d2c/runtime @CPPFLAGS@';
@runtime_directories = ('c-code', 'dylan', 'melange');
foreach (@runtime_directories) {
$d2c_runtime .= "-L$buildroot/d2c/runtime/$_ ";
@@ -0,0 +1,20 @@
--- ltmain.sh.orig Sat Oct 4 13:21:01 2003
+++ ltmain.sh Sat Oct 4 13:21:30 2003
@@ -1229,7 +1229,7 @@
fi
;;

- *.$libext)
+ *.$libext | /System/Library/*Frameworks/*)
# An archive.
deplibs="$deplibs $arg"
old_deplibs="$old_deplibs $arg"
@@ -1456,7 +1456,7 @@
continue
;;
*.la) lib="$deplib" ;;
- *.$libext)
+ *.$libext | /System/Library/*Frameworks/*)
if test $pass = conv; then
deplibs="$deplib $deplibs"
continue
@@ -0,0 +1,9 @@
--- platform/carbon/carbon-event-handling/carbon-event-handling.lid.orig Sat Oct 4 13:20:52 2003
+++ platform/carbon/carbon-event-handling/carbon-event-handling.lid Sat Oct 4 13:21:30 2003
@@ -1,5 +1,5 @@
library: carbon-event-handling
executable: carbon-event-handling
-linker-options: -framework Carbon
+linker-options: /System/Library/Frameworks/Carbon.framework/Carbon
files: carbon-event-handling-exports
carbon-event-handling
@@ -0,0 +1,14 @@
--- platform/carbon/carbon/carbon-events.dylan.orig Sat Oct 4 13:20:52 2003
+++ platform/carbon/carbon/carbon-events.dylan Sun Oct 5 11:15:08 2003
@@ -435,8 +435,8 @@
define constant $kEventControlInitialize :: <integer> = c-expr(int: "kEventControlInitialize");
define constant $kEventControlDispose :: <integer> = c-expr(int: "kEventControlDispose");
define constant $kEventControlGetOptimalBounds :: <integer> = c-expr(int: "kEventControlGetOptimalBounds");
-define constant $kEventControlDefInitialize :: <integer> = c-expr(int: "kEventControlDefInitialize");
-define constant $kEventControlDefDispose :: <integer> = c-expr(int: "kEventControlDefDispose");
+define constant $kEventControlDefInitialize :: <integer> = c-expr(int: "kEventControlInitialize");
+define constant $kEventControlDefDispose :: <integer> = c-expr(int: "kEventControlDispose");
define constant $kEventControlHit :: <integer> = c-expr(int: "kEventControlHit");
define constant $kEventControlSimulateHit :: <integer> = c-expr(int: "kEventControlSimulateHit");
define constant $kEventControlHitTest :: <integer> = c-expr(int: "kEventControlHitTest");
Only in gwydion-dylan-2.3.11/platform/carbon/carbon: carbon-events.dylan~
@@ -0,0 +1,12 @@
--- platform/carbon/sillyballs/sillyballs.lid.orig Sat Oct 4 13:20:52 2003
+++ platform/carbon/sillyballs/sillyballs.lid Sat Oct 4 13:21:30 2003
@@ -1,7 +1,7 @@
library: sillyballs
executable: sillyballs
entry-point: sillyballs:%main
-linker-options: -framework Carbon
+linker-options: /System/Library/Frameworks/Carbon.framework/Carbon

sillyballs-exports.dylan
sillyballs.dylan

@@ -0,0 +1,11 @@
--- platform/carbon/simple-starter/my-simple.lid.orig Sat Oct 4 13:20:52 2003
+++ platform/carbon/simple-starter/my-simple.lid Sat Oct 4 13:21:30 2003
@@ -1,7 +1,7 @@
library: my-simple
executable: my-simple
entry-point: my-simple:%main
-linker-options: -framework Carbon
+linker-options: /System/Library/Frameworks/Carbon.framework/Carbon

my-exports.dylan
my-window.dylan
@@ -0,0 +1,15 @@
--- platform/Makegen.orig Sat Oct 4 13:20:53 2003
+++ platform/Makegen Sat Oct 4 13:21:30 2003
@@ -5,6 +5,9 @@
if ($features{'compiled_for_darwin'}) {
&compile_subdirs('carbon');
}
-if ($have_gtk eq 'yes') {
- &compile_subdirs('gtk+');
-}
+##
+## I've run into too many parser problems with this. Sorry
+##
+## if ($have_gtk eq 'yes') {
+## &compile_subdirs('gtk+');
+## }
@@ -0,0 +1,10 @@
--- tools/pidgin/src/c-parser-exports.dylan.orig Sat Oct 4 13:20:57 2003
+++ tools/pidgin/src/c-parser-exports.dylan Sat Oct 4 13:21:30 2003
@@ -116,5 +116,6 @@
$i386-linux-platform,
$ppc-linux-platform,
$i386-freebsd-platform,
- $sparc-solaris-platform;
+ $sparc-solaris-platform,
+ $ppc-darwin-platform;
end module c-parser;
@@ -0,0 +1,45 @@
--- tools/pidgin/src/platforms.dylan Sat Oct 4 13:20:57 2003
+++ tools/pidgin/src/platforms.dylan Sat Oct 4 13:21:30 2003
@@ -133,6 +133,42 @@
default-include-path:
#["/usr/include"]);

+define constant $ppc-darwin-platform =
+ make(<c-platform>,
+ default-defines:
+ #["const", "",
+ "volatile", "",
+ "__STDC__", "",
+
+ // Parameterized macros which remove various GCC extensions from our
+ // source code. The last item in the list is the right-hand side of
+ // the define; all the items preceding it are named parameters.
+ "__attribute__", #(#("x"), ""),
+ "__signed__", "",
+ "__signed", "",
+ "__inline__", "",
+ "inline", "",
+ "__inline", "",
+
+ // These are the standard platform defines. Some day, configure should
+ // figure them out by running gcc -E -o - -dM on an empty file.
+ "__GNUC__", "2",
+ "__GNUC_MINOR__", "95",
+ "__ppc__", "",
+ "__NATURAL_ALIGNMENT__", "",
+ "__MACH__", "",
+ "__BIG_ENDIAN__", "",
+ "__APPLE__", "",
+ "__STDC__", "",
+ "__APPLE_CC__", "934",
+ "__DYNAMIC__", ""],
+ default-include-path:
+ #["/usr/local/include",
+ // Find out the correct value for this path by calling
+ // gcc -print-file-name=include
+ "/usr/include/gcc/darwin/2.95.2/g++/..",
+ "/usr/include"]);
+

define constant $sparc-solaris-platform =
make(<c-platform>,

0 comments on commit eac5967

Please sign in to comment.
You can’t perform that action at this time.