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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name gtk-sharp2 |
---|
7 | set my_name gtk-sharp |
---|
8 | version 2.12.9 |
---|
9 | set branch [join [lrange [split ${version} .] 0 1] ""] |
---|
10 | categories x11 devel |
---|
11 | platforms darwin |
---|
12 | maintainers nox openmaintainer |
---|
13 | description Gtk bindings for the Mono .NET Development Framework |
---|
14 | universal_variant no |
---|
15 | |
---|
16 | long_description \ |
---|
17 | This is the Gtk# toolkit for Mono, an implementation \ |
---|
18 | of the .NET Development Framework. |
---|
19 | |
---|
20 | homepage http://gtk-sharp.sourceforge.net/ |
---|
21 | master_sites http://go-mono.com/sources/${my_name}${branch}/ |
---|
22 | distname ${my_name}-${version} |
---|
23 | |
---|
24 | checksums md5 2619f6cbba514f10582f8961ed84063b \ |
---|
25 | sha1 a218d10ade40cb84155c570b94f09a76ed79f0d9 \ |
---|
26 | rmd160 3cc5b9041e4abddc62f4f329cfff2bd1c9232463 |
---|
27 | |
---|
28 | use_bzip2 yes |
---|
29 | |
---|
30 | patchfiles 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 | |
---|
36 | depends_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 | |
---|
43 | post-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 | |
---|
59 | use_parallel_build no |
---|
60 | |
---|
61 | post-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 | |
---|
68 | variant debug description {Enable debug build} { |
---|
69 | configure.args-append --enable-debug |
---|
70 | } |
---|
71 | |
---|
72 | livecheck.type regex |
---|
73 | livecheck.url http://go-mono.com/sources-stable/ |
---|
74 | livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*) |
---|
75 | |
---|
76 | configure.build_arch i386 |
---|
77 | configure.ldflags-append "-arch i386" |
---|