Ticket #3157: Portfile

File Portfile, 2.2 KB (added by tonyarnold@…, 19 years ago)

Updated portfile with patch for fstab crash

Line 
1# $Id: Portfile,v 1.25 2005/05/25 15:38:26 olegb Exp $
2PortSystem 1.0
3name            gnome-vfs
4version         2.10.1
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
10categories      gnome
11platforms       darwin
12homepage        http://www.gnome.org/
13master_sites    gnome:sources/gnome-vfs/2.10/
14checksums       md5 88b520e5de748a310a2aef62fc095c8b
15depends_lib     lib:gnome-mime-magic:gnome-mime-data lib:libiconv.2:libiconv
16patchfiles      patch_gnome-vfs-cdrom.c patch_gnome-vfs-utils.c \
17                patch_file-metod.c patch_bzip2-method.c patch_pty-open.c
18use_bzip2       yes
19configure.args  --mandir=${prefix}/share/man --enable-ipv6 --disable-static
20configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
21                LDFLAGS="-lresolv"
22
23post-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
31pre-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
42platform 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