source: trunk/dports/gnome/libgnomecanvas/Portfile

Last change on this file was 135617, checked in by devans@…, 2 years ago

libgnomecanvas: patch to fix build, reconfigure using upstream autogen.sh for intltool 0.51 compatibility.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 135617 2015-04-28 05:00:26Z ryandesign@macports.org $
3
4PortSystem  1.0
5
6name            libgnomecanvas
7version         2.30.3
8revision        5
9set branch      [join [lrange [split ${version} .] 0 1] .]
10description     A graphics library for GNOME.
11long_description        The GNOMECanvas library provides a number \
12                        of features: \
13                        Image loading facilities. Rendering of a \
14                        GdkPixBuf into various formats: drawables \
15                        (windows, pixmaps), GdkRGB buffers. \
16                        A cache interface.
17maintainers     nomaintainer
18categories      gnome
19platforms       darwin
20license         LGPL-2+
21homepage        http://www.gnome.org/
22master_sites    gnome:sources/${name}/${branch}/
23
24checksums       md5     ffcbb719c671ff5cd86e59aeba8d0b92 \
25                sha1    a5b07f33c44c460434dd0dad457d2fffb8a1baf9 \
26                rmd160  044d9980fdc0a074d72407a7fa70d99b2823817b
27
28# add a dummy +quartz variant to distinguish the binary packages,
29# because they must link against libgtk2-quartz instead of
30# libgtk2-x11. See #31303
31variant quartz {}
32
33depends_build   port:pkgconfig \
34                port:gnome-common \
35                port:gtk-doc \
36                port:intltool \
37                port:autoconf \
38                port:automake \
39                port:libtool
40
41depends_lib     port:gtk2 \
42                port:libart_lgpl \
43                port:libglade2
44
45use_bzip2       yes
46
47patchfiles      patch-libgnomecanvas-gnome-canvas-widget.c.diff
48
49# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
50
51post-patch {
52    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
53}
54
55configure.cmd   ./autogen.sh
56
57configure.args  --enable-glade
58
59test.run        yes
60test.target     check
61
62pre-test {
63    set libdirs {}
64    fs-traverse {dir} ${worksrcpath} {
65        if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} {
66            lappend libdirs ${dir}
67
68            continue
69        }
70    }
71
72    test.env    DYLD_LIBRARY_PATH=[join ${libdirs} :]
73}
74
75livecheck.type  gnome
Note: See TracBrowser for help on using the repository browser.