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

Last change on this file since 19023 was 19023, checked in by rhwood, 11 years ago

Bug: 9709
Submitted by: rhwood@
Reviewed by:
Approved by:
Obtained from:

Upgrade 2.12.2 -> 2.15.2
May address bug 9709

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1# $Id: Portfile,v 1.39 2006/08/05 17:45:39 rhwood Exp $
2PortSystem 1.0
3name            gnome-vfs
4version         2.15.2
5description     This is the GNOME Virtual File System.
6long_description        This is the GNOME Virtual File System. \
7                        GNOME VFS is currently used as one of the \
8                        foundations of the Nautilus file manager.
9maintainers     gnome-darwinports@opendarwin.org rhwood@opendarwin.org
10categories      gnome
11platforms       darwin
12homepage        http://www.gnome.org/
13master_sites    gnome:sources/${name}/2.15/
14checksums       md5 a2bfa7c76d77d777589995634051b293 \
15                sha1 68311644d88ca2b2a76cdf2207b1b76762e138ef \
16                rmd160 7d5cfd57fa2f20b532e79607c77b3b55d6bbc3b3
17
18depends_lib     \
19                port:gnome-mime-data \
20                port:gconf \
21                port:howl \
22                port:neon \
23                port:dbus \
24                port:openssl
25
26use_bzip2       yes
27
28patchfiles      \
29                configure.patch \
30                daemon_Makefile.in.patch \
31                modules_file-method-acl.c.patch
32
33configure.args  --mandir=${prefix}/share/man \
34                --enable-ipv6 \
35                --enable-howl \
36                --with-openssl-libs=${prefix}/lib \
37                --with-openssl-includes=${prefix}/include \
38                --disable-gnutls
39configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
40                LDFLAGS="-lresolv"
41
42post-patch {
43        reinplace "s|open64||g" ${worksrcpath}/configure
44        reinplace "s|posix_fadvise||g" ${worksrcpath}/configure
45        reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" \
46                ${worksrcpath}/libgnomevfs/xdgmime.c \
47                ${worksrcpath}/libgnomevfs/gnome-vfs-mime-info.c
48        reinplace "s|\"/etc/fstab\"|\"/etc/fstab.hd\"|g" \
49                ${worksrcpath}/libgnomevfs/gnome-vfs-unix-mounts.c
50
51        if {[variant_isset darwin_6]} {
52        reinplace "s|#include <arpa/nameser.h>|#include <arpa/nameser.h>\\
53                #ifndef T_SRV\\
54                #define T_SRV 33\\
55                #endif|g" \
56                        ${worksrcpath}/libgnomevfs/gnome-vfs-dns-sd.c
57        reinplace "s|#include <limits.h>|#include <limits.h>\\
58                #if \!defined getc_unlocked \\&\\& \!defined HAVE_GETC_UNLOCKED\\
59                #define getc_unlocked(fp) getc (fp)\\
60                #endif|g" \
61                        ${worksrcpath}/libgnomevfs/xdgmimemagic.c
62        reinplace "s|socklen_t|int|g" ${worksrcpath}/modules/ftp-method.c
63        }
64       
65        if {[variant_isset darwin_7]} {
66                reinplace "s|#include <stdio.h>|#include <stdio.h>\\
67                #include <stdint.h>|g" ${worksrcpath}/libgnomevfs/xdgmimecache.c
68        }
69
70}
71
72pre-build {
73        reinplace "s|-lkrb5support||g" \
74                ${worksrcpath}/Makefile ${worksrcpath}/daemon/Makefile \
75                ${worksrcpath}/devel-docs/Makefile ${worksrcpath}/doc/Makefile \
76                ${worksrcpath}/devel-docs/gnome-vfs-tutorial/Makefile \
77                ${worksrcpath}/imported/Makefile ${worksrcpath}/imported/neon/Makefile \
78                ${worksrcpath}/libgnomevfs/Makefile ${worksrcpath}/modules/Makefile \
79                ${worksrcpath}/monikers/Makefile ${worksrcpath}/programs/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      patch-xdgmimecache.c
90}
91
92variant use_system_dependencies {
93        depends_lib     \
94                lib:gnome-mime-magic:gnome-mime-data \
95                lib:gconf-2:gconf
96}
Note: See TracBrowser for help on using the repository browser.