| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.12 2008/10/16 12:30:16 drochner Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.13 2008/11/23 13:43:40 jmcneill Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | GNOME_VFS_VERSION= 2.24.0 | | 4 | GNOME_VFS_VERSION= 2.24.0 |
5 | | | 5 | |
6 | DISTNAME= gnome-vfs-${GNOME_VFS_VERSION} | | 6 | DISTNAME= gnome-vfs-${GNOME_VFS_VERSION} |
7 | CATEGORIES?= sysutils | | 7 | CATEGORIES?= sysutils |
8 | CATEGORIES+= gnome | | 8 | CATEGORIES+= gnome |
9 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-vfs/2.24/} | | 9 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-vfs/2.24/} |
10 | EXTRACT_SUFX= .tar.bz2 | | 10 | EXTRACT_SUFX= .tar.bz2 |
11 | | | 11 | |
12 | MAINTAINER= pkgsrc-users@NetBSD.org | | 12 | MAINTAINER= pkgsrc-users@NetBSD.org |
13 | HOMEPAGE= http://www.gnome.org/ | | 13 | HOMEPAGE= http://www.gnome.org/ |
14 | COMMENT= GNOME Virtual File System (v2) | | 14 | COMMENT= GNOME Virtual File System (v2) |
| @@ -35,49 +35,58 @@ CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SY | | | @@ -35,49 +35,58 @@ CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SY |
35 | MAKE_FLAGS+= localedir=${PREFIX}/${PKGLOCALEDIR}/locale | | 35 | MAKE_FLAGS+= localedir=${PREFIX}/${PKGLOCALEDIR}/locale |
36 | | | 36 | |
37 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} | | 37 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} |
38 | INSTALL_MAKE_FLAGS+= modulesconfdir=${PREFIX}/share/examples/gnome-vfs-2.0/modules | | 38 | INSTALL_MAKE_FLAGS+= modulesconfdir=${PREFIX}/share/examples/gnome-vfs-2.0/modules |
39 | | | 39 | |
40 | PKG_SYSCONFSUBDIR= gnome-vfs-2.0 | | 40 | PKG_SYSCONFSUBDIR= gnome-vfs-2.0 |
41 | | | 41 | |
42 | EGDIR= ${PREFIX}/share/examples/gnome-vfs-2.0 | | 42 | EGDIR= ${PREFIX}/share/examples/gnome-vfs-2.0 |
43 | .for f in ${EGFILES} | | 43 | .for f in ${EGFILES} |
44 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 44 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} |
45 | .endfor | | 45 | .endfor |
46 | | | 46 | |
47 | PKG_OPTIONS_VAR= PKG_OPTIONS.gnome-vfs | | 47 | PKG_OPTIONS_VAR= PKG_OPTIONS.gnome-vfs |
48 | PKG_SUPPORTED_OPTIONS+= inet6 gssapi | | 48 | PKG_SUPPORTED_OPTIONS+= inet6 gssapi hal |
| | | 49 | PKG_SUGGESTED_OPTIONS+= hal |
49 | | | 50 | |
50 | .include "../../mk/bsd.prefs.mk" | | 51 | .include "../../mk/bsd.prefs.mk" |
51 | .if ${OPSYS} == NetBSD | | 52 | .if ${OPSYS} == NetBSD |
52 | # Kerberos is built in - no additional dependency | | 53 | # Kerberos is built in - no additional dependency |
53 | PKG_SUGGESTED_OPTIONS+= gssapi | | 54 | PKG_SUGGESTED_OPTIONS+= gssapi |
54 | .endif | | 55 | .endif |
55 | | | 56 | |
56 | .include "../../mk/bsd.options.mk" | | 57 | .include "../../mk/bsd.options.mk" |
57 | | | 58 | |
58 | .if !empty(PKG_OPTIONS:Minet6) | | 59 | .if !empty(PKG_OPTIONS:Minet6) |
59 | CONFIGURE_ARGS+= --enable-ipv6 | | 60 | CONFIGURE_ARGS+= --enable-ipv6 |
60 | .else | | 61 | .else |
61 | CONFIGURE_ARGS+= --disable-ipv6 | | 62 | CONFIGURE_ARGS+= --disable-ipv6 |
62 | .endif | | 63 | .endif |
63 | | | 64 | |
64 | .if !empty(PKG_OPTIONS:Mgssapi) | | 65 | .if !empty(PKG_OPTIONS:Mgssapi) |
65 | .include "../../mk/krb5.buildlink3.mk" | | 66 | .include "../../mk/krb5.buildlink3.mk" |
66 | CONFIGURE_ENV+= KRB5_CONFIG=${SH_KRB5_CONFIG} | | 67 | CONFIGURE_ENV+= KRB5_CONFIG=${SH_KRB5_CONFIG} |
67 | .else | | 68 | .else |
68 | CONFIGURE_ENV+= ac_cv_path_KRB5_CONFIG=none | | 69 | CONFIGURE_ENV+= ac_cv_path_KRB5_CONFIG=none |
69 | .endif | | 70 | .endif |
70 | | | 71 | |
| | | 72 | .if !empty(PKG_OPTIONS:Mhal) |
| | | 73 | DEPENDS+= gnome-mount>=0.8:../../sysutils/gnome-mount |
| | | 74 | .include "../../sysutils/hal/buildlink3.mk" |
| | | 75 | CONFIGURE_ARGS+= --enable-hal |
| | | 76 | .else |
| | | 77 | CONFIGURE_ARGS+= --disable-hal |
| | | 78 | .endif |
| | | 79 | |
71 | # XXX Work-around for a problem in the configure script which checks for | | 80 | # XXX Work-around for a problem in the configure script which checks for |
72 | # statvfs(2) having SVR4 in mind. Solving this in the script itself could | | 81 | # statvfs(2) having SVR4 in mind. Solving this in the script itself could |
73 | # be the right way to go, but it is out of the scope of a local patch; it | | 82 | # be the right way to go, but it is out of the scope of a local patch; it |
74 | # could require changing the code a lot, which is already very... complex. | | 83 | # could require changing the code a lot, which is already very... complex. |
75 | .if ${OPSYS} == "NetBSD" && !exists(/usr/include/fstyp.h) | | 84 | .if ${OPSYS} == "NetBSD" && !exists(/usr/include/fstyp.h) |
76 | post-wrapper: | | 85 | post-wrapper: |
77 | ${MKDIR} -p ${BUILDLINK_DIR}/include/sys | | 86 | ${MKDIR} -p ${BUILDLINK_DIR}/include/sys |
78 | ${TOUCH} ${BUILDLINK_DIR}/include/sys/fstyp.h | | 87 | ${TOUCH} ${BUILDLINK_DIR}/include/sys/fstyp.h |
79 | .endif | | 88 | .endif |
80 | | | 89 | |
81 | # | | 90 | # |
82 | # The following stuff is to allow easy building of modules distributed within | | 91 | # The following stuff is to allow easy building of modules distributed within |
83 | # gnome-vfs as independent packages. | | 92 | # gnome-vfs as independent packages. |