# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
set branch [join [lrange [split ${version} .] 0 1] .]
description Gtk bindings for the Mono .NET Development Framework
long_description This is the Gtk# toolkit for Mono, an implementation \
of the .NET Development Framework.
homepage http://www.mono-project.com/GtkSharp
master_sites gnome:sources/${my_name}/${branch}
distname ${my_name}-${version}
checksums rmd160 7cd495debeb92a8517c809f7e9c8d9803e16038c \
sha256 122b1e03966d63ec3389decf5440fb94285907d1b6be48352dcf6aca292cf7b0
# Errors creating policy.*.dll multiple times in parallel
patchfiles patch-gnome-sharp.dll.config.in.diff
depends_build port:pkgconfig
# TODO This shouldn't be needed, we need to fix Mono dllmap library path.
fs-traverse {f} ${worksrcpath} {
if {[string match *.dll.config ${f}]} {
reinplace -E "s|(target=\")|\\1${prefix}/lib/|" ${f}
reinplace "s/libgtk-x11-2\\.0\\.0\\.dylib/[glob -tail -path ${prefix}/lib/ libgtk-*-2.0.0.dylib]/" \
${worksrcpath}/gnome/gnome-sharp.dll.config
# http://mono.1490590.n4.nabble.com/gnome-sharp-compilation-error-td3848979.html
reinplace "/^EXTRA_TARGETS/s/TestXfer.exe//" \
${worksrcpath}/sample/gnomevfs/Makefile