PortSystem      1.0

name            tcLex
version         1.2a1
categories      textproc
license         Tcl/Tk
platforms       darwin
maintainers     nomaintainer
description     TCL Lexer

long_description \
                tcLex is a lexical analyzer generator extension to TCL \
                written in C.

checksums       md5     3ff41a67ba988f8708c8a05ea5c463a0 \
                sha1    ee8d467d6d977951a2ecb43cf61628f7a66a26ee \
                rmd160  6a39a3925358618f898ec5a8e6e8a1226153a9dc

homepage        http://membres.multimania.fr/fbonnet/Tcl/tcLex/index.en.htm
master_sites    http://membres.multimania.fr/fbonnet/pub/
distname        ${name}${version}

depends_lib     port:tcl

worksrcdir      ${distname}/src
pre-configure   {file attributes ${worksrcpath}/configure -permissions a+x}
pre-build       {reinplace "s|-fno-common|-fno-common -framework Tcl|g" ${worksrcpath}/Makefile}
patchfiles      tcLex.c.diff tcLexRE.c.diff
