# $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
}
