source: trunk/dports/x11/gtk-sharp2/Portfile

Last change on this file was 115235, checked in by devans@…, 4 years ago

various ports: rebuild to remove references to libpng15.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
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 115235 2013-12-29 19:42:00Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            gtk-sharp2
7set my_name     gtk-sharp
8version         2.12.11
9revision        2
10set branch      [join [lrange [split ${version} .] 0 1] ""]
11categories      x11 devel
12license         LGPL-2
13platforms       darwin
14maintainers     nomaintainer
15description     Gtk bindings for the Mono .NET Development Framework
16
17long_description \
18    This is the Gtk# toolkit for Mono, an implementation \
19        of the .NET Development Framework.
20
21homepage        http://www.mono-project.com/GtkSharp
22master_sites    http://download.mono-project.com/sources/${my_name}${branch}/
23distname        ${my_name}-${version}
24
25checksums       md5     c278da6a472c6c13b698af012f543c64 \
26                sha1    1ef391896e57f2445b7a1ca1b640d74d533e2158 \
27                rmd160  f3106eb2fa764e9db9324e6d6653445b2f598efa
28
29use_bzip2       yes
30
31patchfiles      patch-gdk-sharp.dll.config.in.diff \
32                patch-glade-sharp.dll.config.in.diff \
33                patch-glib-sharp.dll.config.in.diff \
34                patch-gtk-sharp.dll.config.in.diff \
35                patch-pango-sharp.dll.config.in.diff
36
37depends_build   port:pkgconfig
38
39depends_lib     port:gtk2 \
40                port:mono \
41                port:libglade2
42
43# mono is not universal
44universal_variant   no
45
46post-patch {
47    # Fix build with glib-2.32
48    reinplace "s:<glib/.*>:<glib.h>:" ${worksrcpath}/glib/glue/thread.c
49}
50
51post-configure {
52    # TODO This shouldn't be needed, we need to fix Mono dllmap library path.
53    fs-traverse {f} ${worksrcpath} {
54        if {[string match *.dll.config ${f}]} {
55            reinplace -E "s|(target=\")|\\1${prefix}/lib/|" ${f}
56        }
57    }
58
59    reinplace "s/libgtk-x11-2\\.0\\.0\\.dylib/[glob -tail -path $prefix/lib/ libgtk-*-2.0.0.dylib]/" \
60        $worksrcpath/gtk/gtk-sharp.dll.config
61
62    reinplace "s/libgdk-x11-2\\.0\\.0\\.dylib/[glob -tail -path $prefix/lib/ libgdk-*-2.0.0.dylib]/" \
63        $worksrcpath/gdk/gdk-sharp.dll.config \
64        $worksrcpath/gtkdotnet/gtk-dotnet.dll.config
65}
66
67use_parallel_build  no
68
69post-destroot {
70    set docdir ${prefix}/share/doc/${my_name}-${version}
71    xinstall -d ${destroot}${docdir}
72    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING README README.generator \
73        ${destroot}${docdir}
74}
75
76variant debug description {Enable debug build} {
77    configure.args-append   --enable-debug
78}
79
80livecheck.type  regex
81livecheck.url   ${master_sites}
82livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.