source: trunk/dports/gnome/gnome-vfs/Portfile @ 35020

Last change on this file since 35020 was 35020, checked in by rhwood@…, 12 years ago

Upgrade to version 2.22.0
Revert revision to 0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 35020 2008-03-14 09:51:50Z rhwood@macports.org $
2
3PortSystem      1.0
4
5name            gnome-vfs
6version         2.22.0
7revision        0
8maintainers     nomaintainer
9categories      gnome
10platforms       darwin
11description     This is the GNOME Virtual File System.
12
13long_description \
14    This is the GNOME Virtual File System. \
15    GNOME VFS is currently used as one of the \
16    foundations of the Nautilus file manager.
17
18homepage        http://www.gnome.org/
19master_sites    gnome:sources/${name}/[strsed ${version} {/\.[0-9]*$//}]/
20use_bzip2       yes
21
22checksums       md5 369105fd82cb99e69e63acab8f3b89b7 \
23                sha1 a58fb0654bb2c434372ee313a591ecfa8195fe18 \
24                rmd160 307dbff23be666e18326211065a7dee78a8a17e2
25
26depends_lib     port:gconf \
27                port:dbus \
28                port:openssl \
29                port:libidl \
30                port:dbus-glib \
31                port:libxml2 \
32                port:libiconv \
33                port:gettext
34
35depends_run     port:gnome-mime-data
36
37configure.args  --enable-ipv6 \
38                --disable-howl \
39                --disable-avahi \
40                --with-openssl-libs=${prefix}/lib \
41                --with-openssl-includes=${prefix}/include \
42                --disable-gnutls \
43                ac_cv_func_open64=no \
44                ac_cv_func_posix_fadvise=no \
45                ac_cv_path_KRB5_CONFIG=none
46               
47
48configure.ldflags-append    -lresolv
49
50post-patch {
51    reinplace -E "/xdg_data_dirs =/s|\"\[^\"\]*\"|\"${prefix}/share\"|" \
52        ${worksrcpath}/libgnomevfs/xdgmime.c
53
54    reinplace "s|/etc/fstab|/etc/fstab.hd|" \
55        ${worksrcpath}/libgnomevfs/gnome-vfs-unix-mounts.c
56}
57
58platform darwin 6 {
59    post-patch {
60        reinplace "s|#include <arpa/nameser.h>|#include <arpa/nameser.h>\\
61        #ifndef T_SRV\\
62        #define T_SRV 33\\
63        #endif|g" \
64            ${worksrcpath}/libgnomevfs/gnome-vfs-dns-sd.c
65
66        reinplace "s|#include <limits.h>|#include <limits.h>\\
67        #if \!defined getc_unlocked \\&\\& \!defined HAVE_GETC_UNLOCKED\\
68        #define getc_unlocked(fp) getc (fp)\\
69        #endif|g" \
70            ${worksrcpath}/libgnomevfs/xdgmimemagic.c
71
72        reinplace "s|socklen_t|int|g" ${worksrcpath}/modules/ftp-method.c
73    }
74
75    configure.ldflags-delete    -lresolv
76}
77
78platform darwin 7 {
79    patchfiles-append   patch-modules_file-method-acl.c.diff
80
81    post-patch {
82        reinplace "s|#include <stdio.h>|#include <stdio.h>\\
83        #include <stdint.h>|g" ${worksrcpath}/libgnomevfs/xdgmimecache.c
84    }
85}
86
87variant avahi description {Enable Bonjour through avahi} {
88    depends_lib-append      port:avahi
89    configure.args-delete   --disable-avahi
90}
Note: See TracBrowser for help on using the repository browser.