source: trunk/dports/gnome/gnome-sharp2/Portfile @ 115235

Last change on this file since 115235 was 115235, checked in by devans@…, 7 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.6 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 devans@macports.org $
3
4PortSystem      1.0
5
6name            gnome-sharp2
7set my_name     gnome-sharp
8version         2.24.2
9revision        1
10set branch      [join [lrange [split ${version} .] 0 1] .]
11categories      gnome 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    gnome:sources/${my_name}/${branch}
23distname        ${my_name}-${version}
24
25use_bzip2       yes
26
27checksums       rmd160  7cd495debeb92a8517c809f7e9c8d9803e16038c \
28                sha256  122b1e03966d63ec3389decf5440fb94285907d1b6be48352dcf6aca292cf7b0
29
30# Errors creating policy.*.dll multiple times in parallel
31use_parallel_build  no
32
33patchfiles      patch-gnome-sharp.dll.config.in.diff
34
35depends_build   port:pkgconfig
36
37depends_lib     port:mono \
38                port:gtk-sharp2 \
39                port:libart_lgpl \
40                port:gnome-vfs \
41                port:libgnomecanvas \
42                port:libgnomeui
43
44# mono is not universal
45universal_variant no
46
47post-configure {
48    # TODO This shouldn't be needed, we need to fix Mono dllmap library path.
49    fs-traverse {f} ${worksrcpath} {
50        if {[string match *.dll.config ${f}]} {
51            reinplace -E "s|(target=\")|\\1${prefix}/lib/|" ${f}
52        }
53    }
54
55    reinplace "s/libgtk-x11-2\\.0\\.0\\.dylib/[glob -tail -path $prefix/lib/ libgtk-*-2.0.0.dylib]/" \
56        $worksrcpath/gnome/gnome-sharp.dll.config
57
58    # http://mono.1490590.n4.nabble.com/gnome-sharp-compilation-error-td3848979.html
59    reinplace "/^EXTRA_TARGETS/s/TestXfer.exe//" \
60        $worksrcpath/sample/gnomevfs/Makefile
61}
62
63# Legacy no_x11 variant to be removed after June 2014.
64variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
65
66variant x11 conflicts no_x11 {}
67
68if {[variant_isset no_x11]} {
69    default_variants -x11
70} else {
71    default_variants +x11
72}
73
74if {![variant_isset x11]} {
75    pre-fetch {
76        if {[file exists ${prefix}/lib/pkgconfig/gtk+-x11-2.0.pc]} {
77            ui_error "Please uninstall or deactivate the gtk2 port and reinstall it by running `port install gtk2 +no_x11`."
78            error "gtk2 must be installed with the no_x11 variant enabled."
79        }
80    }
81}
82
83livecheck.type  gnome
84livecheck.name  ${my_name}
Note: See TracBrowser for help on using the repository browser.