# $Id: Portfile 74395 2010-12-15 06:09:59Z and.damore@macports.org $

PortSystem          1.0

name                tiemu3
version             3.02
categories          math
maintainers         and.damore
description         TI89 /Titanium/92/92+/V200 multi-platform emulator
long_description    TiEmu is a full-featured TI89 /Titanium/92/92+/V200 multi-platform \
emulator with an html manual. It offers: popup menu, screenshots, ASM/C \
debugger, link port, saving state and some other stuffs.

homepage            http://lpg.ticalc.org/prj_tilp/
platforms           darwin

distname            tiemu-${version}
master_sites        sourceforge:gtktiemu
use_bzip2           yes

checksums           md5     3e8240b7d829c6d8168a97b5a5b28521 \
                    sha1    a533a427236413aeaa4f6feac253c45a9b293b36 \
                    rmd160  584a8982c2bb052201026931fe9981096c0113a4

depends_build       port:pkgconfig \
                    bin:grep:grep \
                    bin:groff:groff
depends_lib         port:libiconv \
                    port:libticonv \
                    port:libtifiles2 \
                    port:libticables2 \
                    port:libticalcs2 \
                    port:gettext \
                    port:gtk2 \
                    port:libglade2 \
                    port:libsdl

patchfiles          patch-calc.diff \
                    patch-dbg_all.diff \
                    patch-dbg_bkpts.diff \
                    patch-dbg_code.diff \
                    patch-dbg_dock.diff \
                    patch-dbg_heap.diff \
                    patch-dbg_iop.diff \
                    patch-dbg_mem.diff \
                    patch-dbg_pclog.diff \
                    patch-dbg_regs.diff \
                    patch-dbg_stack.diff \
                    patch-dbg_wnds.diff \
                    patch-keynames.diff \
                    patch-screen.diff \
                    patch-src_gui_device_c.diff


configure.args-append       --without-kde --disable-debugger --disable-gdb

pre-destroot        { system "chmod +x ${worksrcpath}/install-sh " }
