source: trunk/dports/gnome/libglade2/Portfile

Last change on this file was 115489, checked in by jmr@…, 4 years ago

libglade2: does not link with libffi

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 115489 2014-01-03 12:41:42Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            libglade2
7set my_name     libglade
8version         2.6.4
9revision        8
10set branch      [join [lrange [split ${version} .] 0 1] .]
11categories      gnome
12maintainers     nomaintainer
13platforms       darwin
14license         LGPL-2+
15description     GNOME glade library.
16
17long_description \
18    A library that allows you to load GLADE interfaces \
19    at runtime (you don't have to generate stubs with \
20    GLADE before hand). This way you can change the \
21    look of your application without recompiling. \
22    This way you can write the logic behind the \
23    interface separately from the code to build the \
24    interface, so changing the interface is not so \
25    much of a problem.
26
27homepage        http://www.gnome.org/
28master_sites    gnome:sources/${my_name}/${branch}/
29distname        ${my_name}-${version}
30use_bzip2       yes
31
32# add a dummy +quartz variant to distinguish the binary packages,
33# because they must link against libgtk2-quartz instead of
34# libgtk2-x11. See #31303
35variant quartz {}
36
37checksums       md5     d1776b40f4e166b5e9c107f1c8fe4139 \
38                sha1    8465851733b8a0efbe57c43efc0f140d8e2d2edb \
39                rmd160  516a43543e518a319ca9b35556ca1ac88e2ce8fb
40
41post-extract {
42    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
43}
44
45patchfiles      missing-links.patch
46
47use_autoreconf  yes
48autoreconf.args -fvi
49
50post-patch {
51    reinplace -E "/^install-data-am:/s/install-data-local//" ${worksrcpath}/Makefile.am
52}
53
54depends_build-append \
55    port:pkgconfig
56
57depends_lib-append \
58    port:gettext \
59    port:fontconfig \
60    port:libxml2 \
61    port:gtk2
62
63configure.args  --disable-gtktest \
64                --with-xml-catalog=${prefix}/etc/xml/catalog
65
66use_parallel_build  yes
67
68test.run        yes
69test.target     check
70
71post-activate {
72    system "xmlcatalog --create --noout --add system http://glade.gnome.org/glade-2.0.dtd ${prefix}/share/xml/libglade/glade-2.0.dtd ${prefix}/etc/xml/catalog"
73}
74pre-deactivate {
75    system "xmlcatalog --noout --del http://glade.gnome.org/glade-2.0.dtd ${prefix}/etc/xml/catalog"
76}
77
78# libglade is dead
79# http://mail.gnome.org/archives/devel-announce-list/2009-May/msg00003.html
80livecheck.type  none
Note: See TracBrowser for help on using the repository browser.