# $Id: Portfile 35020 2008-03-14 09:51:50Z rhwood@macports.org $ PortSystem 1.0 name gnome-vfs version 2.22.0 revision 0 maintainers nomaintainer categories gnome platforms darwin description This is the GNOME Virtual File System. long_description \ This is the GNOME Virtual File System. \ GNOME VFS is currently used as one of the \ foundations of the Nautilus file manager. homepage http://www.gnome.org/ master_sites gnome:sources/${name}/[strsed ${version} {/\.[0-9]*$//}]/ use_bzip2 yes checksums md5 369105fd82cb99e69e63acab8f3b89b7 \ sha1 a58fb0654bb2c434372ee313a591ecfa8195fe18 \ rmd160 307dbff23be666e18326211065a7dee78a8a17e2 depends_lib port:gconf \ port:dbus \ port:openssl \ port:libidl \ port:dbus-glib \ port:libxml2 \ port:libiconv \ port:gettext depends_run port:gnome-mime-data configure.args --enable-ipv6 \ --disable-howl \ --disable-avahi \ --with-openssl-libs=${prefix}/lib \ --with-openssl-includes=${prefix}/include \ --disable-gnutls \ ac_cv_func_open64=no \ ac_cv_func_posix_fadvise=no \ ac_cv_path_KRB5_CONFIG=none configure.ldflags-append -lresolv post-patch { reinplace -E "/xdg_data_dirs =/s|\"\[^\"\]*\"|\"${prefix}/share\"|" \ ${worksrcpath}/libgnomevfs/xdgmime.c reinplace "s|/etc/fstab|/etc/fstab.hd|" \ ${worksrcpath}/libgnomevfs/gnome-vfs-unix-mounts.c } platform darwin 6 { post-patch { reinplace "s|#include |#include \\ #ifndef T_SRV\\ #define T_SRV 33\\ #endif|g" \ ${worksrcpath}/libgnomevfs/gnome-vfs-dns-sd.c reinplace "s|#include |#include \\ #if \!defined getc_unlocked \\&\\& \!defined HAVE_GETC_UNLOCKED\\ #define getc_unlocked(fp) getc (fp)\\ #endif|g" \ ${worksrcpath}/libgnomevfs/xdgmimemagic.c reinplace "s|socklen_t|int|g" ${worksrcpath}/modules/ftp-method.c } configure.ldflags-delete -lresolv } platform darwin 7 { patchfiles-append patch-modules_file-method-acl.c.diff post-patch { reinplace "s|#include |#include \\ #include |g" ${worksrcpath}/libgnomevfs/xdgmimecache.c } } variant avahi description {Enable Bonjour through avahi} { depends_lib-append port:avahi configure.args-delete --disable-avahi }