1 | # $Id: Portfile,v 1.25 2005/05/25 15:38:26 olegb Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name gnome-vfs |
---|
4 | version 2.10.1 |
---|
5 | description This is the GNOME Virtual File System. |
---|
6 | long_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. |
---|
9 | maintainers gnome-darwinports@opendarwin.org |
---|
10 | categories gnome |
---|
11 | platforms darwin |
---|
12 | homepage http://www.gnome.org/ |
---|
13 | master_sites gnome:sources/gnome-vfs/2.10/ |
---|
14 | checksums md5 88b520e5de748a310a2aef62fc095c8b |
---|
15 | depends_lib lib:gnome-mime-magic:gnome-mime-data lib:libiconv.2:libiconv |
---|
16 | patchfiles patch_gnome-vfs-cdrom.c patch_gnome-vfs-utils.c \ |
---|
17 | patch_file-metod.c patch_bzip2-method.c patch_pty-open.c |
---|
18 | use_bzip2 yes |
---|
19 | configure.args --mandir=${prefix}/share/man --enable-ipv6 --disable-static |
---|
20 | configure.env CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \ |
---|
21 | LDFLAGS="-lresolv" |
---|
22 | |
---|
23 | post-patch { |
---|
24 | reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" \ |
---|
25 | ${worksrcpath}/libgnomevfs/xdgmime.c \ |
---|
26 | ${worksrcpath}/libgnomevfs/gnome-vfs-mime-info.c |
---|
27 | reinplace "s|\"/etc/fstab\"|\"/etc/fstab.hd\"|g" \ |
---|
28 | ${worksrcpath}/libgnomevfs/gnome-vfs-unix-mounts.c |
---|
29 | } |
---|
30 | |
---|
31 | pre-build { |
---|
32 | reinplace "s|-lkrb5support||g" \ |
---|
33 | ${worksrcpath}/Makefile ${worksrcpath}/daemon/Makefile \ |
---|
34 | ${worksrcpath}/devel-docs/Makefile ${worksrcpath}/doc/Makefile \ |
---|
35 | ${worksrcpath}/devel-docs/gnome-vfs-tutorial/Makefile \ |
---|
36 | ${worksrcpath}/imported/Makefile ${worksrcpath}/imported/neon/Makefile \ |
---|
37 | ${worksrcpath}/libgnomevfs/Makefile ${worksrcpath}/modules/Makefile \ |
---|
38 | ${worksrcpath}/monikers/Makefile ${worksrcpath}/programs/Makefile \ |
---|
39 | ${worksrcpath}/schemas/Makefile |
---|
40 | } |
---|
41 | |
---|
42 | platform darwin 6 { |
---|
43 | configure.env-delete LDFLAGS="-lresolv" |
---|
44 | |
---|
45 | post-patch-append { |
---|
46 | reinplace "s|#include <arpa/nameser.h>|#include <arpa/nameser.h>\\ |
---|
47 | #ifndef T_SRV\\ |
---|
48 | #define T_SRV 33\\ |
---|
49 | #endif|g" \ |
---|
50 | ${worksrcpath}/libgnomevfs/gnome-vfs-dns-sd.c |
---|
51 | reinplace "s|#include <limits.h>|#include <limits.h>\\ |
---|
52 | #if \!defined getc_unlocked \\&\\& \!defined HAVE_GETC_UNLOCKED\\ |
---|
53 | #define getc_unlocked(fp) getc (fp)\\ |
---|
54 | #endif|g" \ |
---|
55 | ${worksrcpath}/libgnomevfs/xdgmimemagic.c |
---|
56 | reinplace "s|socklen_t|int|g" ${worksrcpath}/modules/ftp-method.c |
---|
57 | } |
---|
58 | } |
---|
59 | |
---|