inherit tcl NAME="tcl-itk" VERSION=4.1.0 RELEASE=1 CATEGORY="Tcl" SUMMARY="Object-Oriented extensions for Tk" DESCRIPTION="[incr Tcl] is an object-oriented extension of the Tcl language. It was created to support more structured programming in Tcl. [incr Tcl] introduces the notion of objects. Among other things, [incr Tcl] can be used to create new widgets that look and work like the usual Tk widgets, but are written entirely at the Tcl language level (C code is optional)." HOMEPAGE="http://incrtcl.sourceforge.net/" SRC_URI="mirror://sourceforge/incrtcl/itk${VERSION}.tar.gz" SRC_DIR="itk${VERSION}" PKG_NAMES="${NAME} ${NAME}-devel" tcl_itk_REQUIRES="tcl tcl-itcl tcl-tk" tcl_itk_CONTENTS=" usr/bin/libitk${VERSION}.dll usr/lib/itk${VERSION}/*.itk usr/lib/itk${VERSION}/*.tcl usr/lib/itk${VERSION}/tclIndex usr/share/man/mann/ " tcl_itk_devel_REQUIRES="tcl-devel tcl-tk-devel tcl-itcl-devel" tcl_itk_devel_CONTENTS=" usr/include/itk*.h usr/lib/itk${VERSION}/libitk${VERSION}.dll.a " #DISTCLEANFILES="aclocal.m4" src_compile() { cd ${S} cygautoreconf cd ${B} cygconf --with-itcl=/usr/lib/itcl4.1.1 cygmake SHLIB_LD="\$(CC) -shared -Wl,--out-implib,\$@.a" } src_install() { cd ${B} cyginstall insinto /usr/lib/itk${VERSION} doins libitk${VERSION}.dll.a mv ${D}/usr/lib/itk${VERSION}/libitk${VERSION}.dll ${D}/usr/bin sed -i -e "s|\"\(libitk${VERSION}.dll\)\"|.. .. bin \1|" ${D}/usr/lib/itk${VERSION}/pkgIndex.tcl }