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

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

Reform configure environment
Remove dependency on heimdal

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 27557 2007-08-08 08:50:28Z rhwood@macports.org $
2PortSystem 1.0
3name            gnome-vfs
4version         2.18.1
5revision        1
6description     This is the GNOME Virtual File System.
7long_description        This is the GNOME Virtual File System. \
8                        GNOME VFS is currently used as one of the \
9                        foundations of the Nautilus file manager.
10maintainers     rhwood openmaintainer@macports.org
11categories      gnome
12platforms       darwin
13homepage        http://www.gnome.org/
14master_sites    gnome:sources/${name}/2.18/
15checksums       md5 bf4a6d95180d05981893e5d021c6695c \
16                sha1 e939fe4fe2e75516ae6c4d476f8fb44f59ec8bdc \
17                rmd160 ff2fc7a7c47b85a03d65964a8ad1d7d585698f3d
18
19depends_lib     \
20                port:gnome-mime-data \
21                port:gconf \
22                port:howl \
23                port:neon \
24                port:dbus \
25                port:openssl \
26                port:libidl \
27                port:dbus-glib \
28                port:libxml2 \
29                port:libiconv \
30                port:gettext
31
32use_bzip2       yes
33
34configure.args  --mandir=${prefix}/share/man \
35                --enable-ipv6 \
36                --enable-howl \
37                --with-openssl-libs=${prefix}/lib \
38                --with-openssl-includes=${prefix}/include \
39                --disable-gnutls
40configure.env   PATH="${prefix}/bin:$env(PATH)"
41configure.ldflags-append        -lresolv
42
43post-patch {
44        reinplace "s|open64||g" ${worksrcpath}/configure
45        reinplace "s|posix_fadvise||g" ${worksrcpath}/configure
46        reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" \
47                ${worksrcpath}/libgnomevfs/xdgmime.c \
48                ${worksrcpath}/libgnomevfs/gnome-vfs-mime-info.c
49        reinplace "s|\"/etc/fstab\"|\"/etc/fstab.hd\"|g" \
50                ${worksrcpath}/libgnomevfs/gnome-vfs-unix-mounts.c
51
52        if {[variant_isset darwin_6]} {
53        reinplace "s|#include <arpa/nameser.h>|#include <arpa/nameser.h>\\
54                #ifndef T_SRV\\
55                #define T_SRV 33\\
56                #endif|g" \
57                        ${worksrcpath}/libgnomevfs/gnome-vfs-dns-sd.c
58        reinplace "s|#include <limits.h>|#include <limits.h>\\
59                #if \!defined getc_unlocked \\&\\& \!defined HAVE_GETC_UNLOCKED\\
60                #define getc_unlocked(fp) getc (fp)\\
61                #endif|g" \
62                        ${worksrcpath}/libgnomevfs/xdgmimemagic.c
63        reinplace "s|socklen_t|int|g" ${worksrcpath}/modules/ftp-method.c
64        }
65       
66        if {[variant_isset darwin_7]} {
67                reinplace "s|#include <stdio.h>|#include <stdio.h>\\
68                #include <stdint.h>|g" ${worksrcpath}/libgnomevfs/xdgmimecache.c
69        }
70
71}
72
73pre-build {
74        reinplace "s|-lkrb5support||g" \
75                ${worksrcpath}/Makefile ${worksrcpath}/daemon/Makefile \
76                ${worksrcpath}/devel-docs/Makefile ${worksrcpath}/doc/Makefile \
77                ${worksrcpath}/devel-docs/gnome-vfs-tutorial/Makefile \
78                ${worksrcpath}/imported/Makefile ${worksrcpath}/imported/neon/Makefile \
79                ${worksrcpath}/libgnomevfs/Makefile ${worksrcpath}/modules/Makefile \
80                ${worksrcpath}/schemas/Makefile
81}
82
83platform darwin 6 {
84        configure.env-delete LDFLAGS="-lresolv"
85        patchfiles      patch-xdgmimecache.c
86}
87
88platform darwin 7 {
89        patchfiles      \
90                patch-xdgmimecache.c \
91                patch-modules_file-method-acl.c.diff
92}
Note: See TracBrowser for help on using the repository browser.