Ticket #25504: Portfile

File Portfile, 2.6 KB (added by gary.verhaegen@…, 14 years ago)
Line 
1# -*- 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
2# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            gtk-sharp2
7set my_name     gtk-sharp
8version         2.12.9
9set branch      [join [lrange [split ${version} .] 0 1] ""]
10categories      x11 devel
11platforms       darwin
12maintainers     nox openmaintainer
13description     Gtk bindings for the Mono .NET Development Framework
14universal_variant no
15
16long_description \
17    This is the Gtk# toolkit for Mono, an implementation \
18        of the .NET Development Framework.
19
20homepage        http://gtk-sharp.sourceforge.net/
21master_sites    http://go-mono.com/sources/${my_name}${branch}/
22distname        ${my_name}-${version}
23
24checksums       md5     2619f6cbba514f10582f8961ed84063b \
25                sha1    a218d10ade40cb84155c570b94f09a76ed79f0d9 \
26                rmd160  3cc5b9041e4abddc62f4f329cfff2bd1c9232463
27
28use_bzip2       yes
29
30patchfiles      patch-gdk-sharp.dll.config.in.diff \
31                patch-glade-sharp.dll.config.in.diff \
32                patch-glib-sharp.dll.config.in.diff \
33                patch-gtk-sharp.dll.config.in.diff \
34                patch-pango-sharp.dll.config.in.diff
35
36depends_lib     port:mono \
37                path:lib/pkgconfig/glib-2.0.pc:glib2 \
38                port:atk \
39                path:lib/pkgconfig/pango.pc:pango \
40                port:gtk2 \
41                port:libglade2
42
43post-configure {
44    # TODO This shouldn't be needed, we need to fix Mono dllmap library path.
45    fs-traverse {f} ${worksrcpath} {
46        if {[string match *.dll.config ${f}]} {
47            reinplace -E "s|(target=\")|\\1${prefix}/lib/|" ${f}
48        }
49    }
50
51    reinplace "s/libgtk-x11-2\\.0\\.0\\.dylib/[glob -tail -path $prefix/lib/ libgtk-*-2.0.0.dylib]/" \
52        $worksrcpath/gtk/gtk-sharp.dll.config
53
54    reinplace "s/libgdk-x11-2\\.0\\.0\\.dylib/[glob -tail -path $prefix/lib/ libgdk-*-2.0.0.dylib]/" \
55        $worksrcpath/gdk/gdk-sharp.dll.config \
56        $worksrcpath/gtkdotnet/gtk-dotnet.dll.config
57}
58
59use_parallel_build  no
60
61post-destroot {
62    set docdir ${prefix}/share/doc/${my_name}-${version}
63    xinstall -d ${destroot}${docdir}
64    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING README README.generator \
65        ${destroot}${docdir}
66}
67
68variant debug description {Enable debug build} {
69    configure.args-append   --enable-debug
70}
71
72livecheck.type  regex
73livecheck.url   http://go-mono.com/sources-stable/
74livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
75
76configure.build_arch i386
77configure.ldflags-append "-arch i386"