a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22814 2007-03-15 09:44:49Z rhwood@macports.org $
PortSystem 1.0
name gnome-vfs
version 2.18.0.1
revision 0
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.
maintainers rhwood@macports.org openmaintainer@macports.org
categories gnome
platforms darwin
homepage http://www.gnome.org/
master_sites gnome:sources/${name}/2.18/
checksums md5 0b7a6ab495c0d94c3db00a7b0321adbf \
sha1 d0dd9d3a73ecc88ab1645fc563c1ff708d5e0d11 \
rmd160 6bcf6283fa73942e945e49bf1ad4b5995760a2a0
depends_lib \
port:gnome-mime-data \
port:gconf \
port:howl \
port:neon \
port:dbus \
port:openssl \
port:libidl \
port:dbus-glib \
port:libxml2 \
port:libiconv \
port:gettext \
port:heimdal
use_bzip2 yes
configure.args --mandir=${prefix}/share/man \
--enable-ipv6 \
--enable-howl \
--with-openssl-libs=${prefix}/lib \
--with-openssl-includes=${prefix}/include \
--disable-gnutls
configure.env CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
LDFLAGS="-lresolv" PATH="${prefix}/bin:$env(PATH)"
post-patch {
reinplace "s|open64||g" ${worksrcpath}/configure
reinplace "s|posix_fadvise||g" ${worksrcpath}/configure
reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" \
${worksrcpath}/libgnomevfs/xdgmime.c \
${worksrcpath}/libgnomevfs/gnome-vfs-mime-info.c
reinplace "s|\"/etc/fstab\"|\"/etc/fstab.hd\"|g" \
${worksrcpath}/libgnomevfs/gnome-vfs-unix-mounts.c
if {[variant_isset darwin_6]} {
reinplace "s|#include
#ifndef T_SRV\\
#define T_SRV 33\\
#endif|g" \
${worksrcpath}/libgnomevfs/gnome-vfs-dns-sd.c
reinplace "s|#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
}
if {[variant_isset darwin_7]} {
reinplace "s|#include
#include
}
}
pre-build {
reinplace "s|-lkrb5support||g" \
${worksrcpath}/Makefile ${worksrcpath}/daemon/Makefile \
${worksrcpath}/devel-docs/Makefile ${worksrcpath}/doc/Makefile \
${worksrcpath}/devel-docs/gnome-vfs-tutorial/Makefile \
${worksrcpath}/imported/Makefile ${worksrcpath}/imported/neon/Makefile \
${worksrcpath}/libgnomevfs/Makefile ${worksrcpath}/modules/Makefile \
${worksrcpath}/schemas/Makefile
}
platform darwin 6 {
configure.env-delete LDFLAGS="-lresolv"
patchfiles patch-xdgmimecache.c
}
platform darwin 7 {
patchfiles \
patch-xdgmimecache.c \
patch-modules_file-method-acl.c.diff
}