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

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

Add openmaintainer@… to all ports that I am the primary maintainer for.

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