| @@ -1,114 +1,112 @@ | | | @@ -1,114 +1,112 @@ |
1 | # $NetBSD: Makefile.common,v 1.17 2009/03/19 11:32:45 drochner Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.18 2009/06/10 14:49:44 wiz Exp $ |
2 | # | | 2 | # |
3 | # used by audio/gnome-vfs-cdda/Makefile | | 3 | # used by audio/gnome-vfs-cdda/Makefile |
4 | # used by net/gnome-vfs-dns-sd/Makefile | | 4 | # used by net/gnome-vfs-dns-sd/Makefile |
5 | # used by net/gnome-vfs-smb/Makefile | | 5 | # used by net/gnome-vfs-smb/Makefile |
6 | | | 6 | |
7 | GNOME_VFS_VERSION= 2.24.1 | | 7 | GNOME_VFS_VERSION= 2.24.1 |
8 | | | 8 | |
9 | DISTNAME= gnome-vfs-${GNOME_VFS_VERSION} | | 9 | DISTNAME= gnome-vfs-${GNOME_VFS_VERSION} |
10 | CATEGORIES?= sysutils | | 10 | CATEGORIES?= sysutils |
11 | CATEGORIES+= gnome | | 11 | CATEGORIES+= gnome |
12 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-vfs/2.24/} | | 12 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-vfs/2.24/} |
13 | EXTRACT_SUFX= .tar.bz2 | | 13 | EXTRACT_SUFX= .tar.bz2 |
14 | | | 14 | |
15 | MAINTAINER= pkgsrc-users@NetBSD.org | | 15 | MAINTAINER= pkgsrc-users@NetBSD.org |
16 | HOMEPAGE= http://www.gnome.org/ | | 16 | HOMEPAGE= http://www.gnome.org/ |
17 | COMMENT= GNOME Virtual File System (v2) | | 17 | COMMENT= GNOME Virtual File System (v2) |
18 | | | 18 | |
19 | DISTINFO_FILE= ${.CURDIR}/../../sysutils/gnome-vfs/distinfo | | 19 | DISTINFO_FILE= ${.CURDIR}/../../sysutils/gnome-vfs/distinfo |
20 | PATCHDIR= ${.CURDIR}/../../sysutils/gnome-vfs/patches | | 20 | PATCHDIR= ${.CURDIR}/../../sysutils/gnome-vfs/patches |
21 | | | 21 | |
22 | GNU_CONFIGURE= YES | | 22 | GNU_CONFIGURE= YES |
23 | USE_PKGLOCALEDIR= YES | | 23 | USE_PKGLOCALEDIR= YES |
24 | USE_TOOLS+= gmake intltool msgfmt pkg-config | | 24 | USE_TOOLS+= gmake intltool msgfmt pkg-config |
25 | USE_LIBTOOL= YES | | 25 | USE_LIBTOOL= YES |
26 | | | 26 | |
27 | CONFIGURE_ARGS+= --disable-cdda | | 27 | CONFIGURE_ARGS+= --disable-cdda |
28 | CONFIGURE_ARGS+= --disable-gtk | | | |
29 | CONFIGURE_ARGS+= --disable-howl | | 28 | CONFIGURE_ARGS+= --disable-howl |
30 | CONFIGURE_ARGS+= --disable-openssl | | 29 | CONFIGURE_ARGS+= --disable-openssl |
31 | CONFIGURE_ARGS+= --disable-samba | | 30 | CONFIGURE_ARGS+= --disable-samba |
32 | CONFIGURE_ARGS+= --enable-gnutls | | 31 | CONFIGURE_ARGS+= --enable-gnutls |
33 | CONFIGURE_ARGS+= --enable-platform-gnome-2 | | | |
34 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q} | | 32 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q} |
35 | | | 33 | |
36 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" | | 34 | CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" |
37 | CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\"" | | 35 | CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\"" |
38 | MAKE_FLAGS+= localedir=${PREFIX}/${PKGLOCALEDIR}/locale | | 36 | MAKE_FLAGS+= localedir=${PREFIX}/${PKGLOCALEDIR}/locale |
39 | | | 37 | |
40 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} | | 38 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} |
41 | INSTALL_MAKE_FLAGS+= modulesconfdir=${PREFIX}/share/examples/gnome-vfs-2.0/modules | | 39 | INSTALL_MAKE_FLAGS+= modulesconfdir=${PREFIX}/share/examples/gnome-vfs-2.0/modules |
42 | | | 40 | |
43 | PKG_SYSCONFSUBDIR= gnome-vfs-2.0 | | 41 | PKG_SYSCONFSUBDIR= gnome-vfs-2.0 |
44 | | | 42 | |
45 | EGDIR= ${PREFIX}/share/examples/gnome-vfs-2.0 | | 43 | EGDIR= ${PREFIX}/share/examples/gnome-vfs-2.0 |
46 | .for f in ${EGFILES} | | 44 | .for f in ${EGFILES} |
47 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 45 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} |
48 | .endfor | | 46 | .endfor |
49 | | | 47 | |
50 | .include "../../mk/bsd.prefs.mk" | | 48 | .include "../../mk/bsd.prefs.mk" |
51 | | | 49 | |
52 | # XXX Work-around for a problem in the configure script which checks for | | 50 | # XXX Work-around for a problem in the configure script which checks for |
53 | # statvfs(2) having SVR4 in mind. Solving this in the script itself could | | 51 | # statvfs(2) having SVR4 in mind. Solving this in the script itself could |
54 | # be the right way to go, but it is out of the scope of a local patch; it | | 52 | # be the right way to go, but it is out of the scope of a local patch; it |
55 | # could require changing the code a lot, which is already very... complex. | | 53 | # could require changing the code a lot, which is already very... complex. |
56 | .if ${OPSYS} == "NetBSD" && !exists(/usr/include/fstyp.h) | | 54 | .if ${OPSYS} == "NetBSD" && !exists(/usr/include/fstyp.h) |
57 | post-wrapper: | | 55 | post-wrapper: |
58 | ${MKDIR} -p ${BUILDLINK_DIR}/include/sys | | 56 | ${MKDIR} -p ${BUILDLINK_DIR}/include/sys |
59 | ${TOUCH} ${BUILDLINK_DIR}/include/sys/fstyp.h | | 57 | ${TOUCH} ${BUILDLINK_DIR}/include/sys/fstyp.h |
60 | .endif | | 58 | .endif |
61 | | | 59 | |
62 | # | | 60 | # |
63 | # The following stuff is to allow easy building of modules distributed within | | 61 | # The following stuff is to allow easy building of modules distributed within |
64 | # gnome-vfs as independent packages. | | 62 | # gnome-vfs as independent packages. |
65 | # | | 63 | # |
66 | # GNOME_VFS_NAME - Name of the module beeing built. Will be added to the | | 64 | # GNOME_VFS_NAME - Name of the module beeing built. Will be added to the |
67 | # package name, and also used as the library name. | | 65 | # package name, and also used as the library name. |
68 | # GNOME_VFS_FLAG - Base name of the flag passed to configure to enable the | | 66 | # GNOME_VFS_FLAG - Base name of the flag passed to configure to enable the |
69 | # module. | | 67 | # module. |
70 | # | | 68 | # |
71 | .if defined(GNOME_VFS_NAME) && !empty(GNOME_VFS_NAME) | | 69 | .if defined(GNOME_VFS_NAME) && !empty(GNOME_VFS_NAME) |
72 | GNOME_VFS_FLAG?= ${GNOME_VFS_NAME} | | 70 | GNOME_VFS_FLAG?= ${GNOME_VFS_NAME} |
73 | | | 71 | |
74 | PKGNAME:= ${DISTNAME:S/gnome-vfs/gnome-vfs-${GNOME_VFS_NAME}/} | | 72 | PKGNAME:= ${DISTNAME:S/gnome-vfs/gnome-vfs-${GNOME_VFS_NAME}/} |
75 | CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/--disable-${GNOME_VFS_FLAG}/--enable-${GNOME_VFS_FLAG}/} | | 73 | CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/--disable-${GNOME_VFS_FLAG}/--enable-${GNOME_VFS_FLAG}/} |
76 | COMMENT+= - ${GNOME_VFS_NAME} plugin | | 74 | COMMENT+= - ${GNOME_VFS_NAME} plugin |
77 | | | 75 | |
78 | CONFLICTS+= ${DISTNAME:S/gnome-vfs/gnome-vfs2-${GNOME_VFS_NAME}/} | | 76 | CONFLICTS+= ${DISTNAME:S/gnome-vfs/gnome-vfs2-${GNOME_VFS_NAME}/} |
79 | | | 77 | |
80 | BUILD_TARGET= lib${GNOME_VFS_NAME}.la | | 78 | BUILD_TARGET= lib${GNOME_VFS_NAME}.la |
81 | BUILD_DIRS= modules | | 79 | BUILD_DIRS= modules |
82 | | | 80 | |
83 | # Fix paths to already installed libraries (by the gnome-vfs package). | | 81 | # Fix paths to already installed libraries (by the gnome-vfs package). |
84 | SUBST_CLASSES+= libs | | 82 | SUBST_CLASSES+= libs |
85 | SUBST_MESSAGE.libs= Fixing path to dependent libraries. | | 83 | SUBST_MESSAGE.libs= Fixing path to dependent libraries. |
86 | SUBST_STAGE.libs= pre-configure | | 84 | SUBST_STAGE.libs= pre-configure |
87 | SUBST_FILES.libs= modules/Makefile.in | | 85 | SUBST_FILES.libs= modules/Makefile.in |
88 | SUBST_SED.libs= -e 's|../libgnomevfs/libgnomevfs-2.la|${BUILDLINK_PREFIX.gnome-vfs}/lib/libgnomevfs-2.la|g' | | 86 | SUBST_SED.libs= -e 's|../libgnomevfs/libgnomevfs-2.la|${BUILDLINK_PREFIX.gnome-vfs}/lib/libgnomevfs-2.la|g' |
89 | | | 87 | |
90 | BUILDLINK_API_DEPENDS.gnome-vfs+= gnome-vfs>=${GNOME_VFS_VERSION} | | 88 | BUILDLINK_API_DEPENDS.gnome-vfs+= gnome-vfs>=${GNOME_VFS_VERSION} |
91 | .include "../../sysutils/gnome-vfs/buildlink3.mk" | | 89 | .include "../../sysutils/gnome-vfs/buildlink3.mk" |
92 | | | 90 | |
93 | PRINT_PLIST_AWK+= /^@dirrm lib\/gnome-vfs-2.0\/modules$$/ \ | | 91 | PRINT_PLIST_AWK+= /^@dirrm lib\/gnome-vfs-2.0\/modules$$/ \ |
94 | { print "@comment in gnome-vfs: " $$0; next; } | | 92 | { print "@comment in gnome-vfs: " $$0; next; } |
95 | PRINT_PLIST_AWK+= /^@dirrm share\/examples\/gnome-vfs-2.0$$/ { next; } | | 93 | PRINT_PLIST_AWK+= /^@dirrm share\/examples\/gnome-vfs-2.0$$/ { next; } |
96 | PRINT_PLIST_AWK+= /^@dirrm share\/examples\/gnome-vfs-2.0\/modules$$/ \ | | 94 | PRINT_PLIST_AWK+= /^@dirrm share\/examples\/gnome-vfs-2.0\/modules$$/ \ |
97 | { print "@comment in gnome-vfs: " $$0; next; } | | 95 | { print "@comment in gnome-vfs: " $$0; next; } |
98 | | | 96 | |
99 | INSTALLATION_DIRS+= lib/gnome-vfs-2.0/modules | | 97 | INSTALLATION_DIRS+= lib/gnome-vfs-2.0/modules |
100 | | | 98 | |
101 | do-install: | | 99 | do-install: |
102 | cd ${WRKSRC}/modules && ${LIBTOOL} --mode=install \ | | 100 | cd ${WRKSRC}/modules && ${LIBTOOL} --mode=install \ |
103 | ${INSTALL_DATA} lib${GNOME_VFS_NAME}.la \ | | 101 | ${INSTALL_DATA} lib${GNOME_VFS_NAME}.la \ |
104 | ${DESTDIR}${PREFIX}/lib/gnome-vfs-2.0/modules | | 102 | ${DESTDIR}${PREFIX}/lib/gnome-vfs-2.0/modules |
105 | cd ${WRKSRC}/modules && ${LIBTOOL} --mode=finish \ | | 103 | cd ${WRKSRC}/modules && ${LIBTOOL} --mode=finish \ |
106 | ${DESTDIR}${PREFIX}/lib/gnome-vfs-2.0/modules | | 104 | ${DESTDIR}${PREFIX}/lib/gnome-vfs-2.0/modules |
107 | .endif | | 105 | .endif |
108 | | | 106 | |
109 | .include "../../archivers/bzip2/buildlink3.mk" | | 107 | .include "../../archivers/bzip2/buildlink3.mk" |
110 | .include "../../devel/GConf/buildlink3.mk" | | 108 | .include "../../devel/GConf/buildlink3.mk" |
111 | .include "../../devel/glib2/buildlink3.mk" | | 109 | .include "../../devel/glib2/buildlink3.mk" |
112 | .include "../../security/gnutls/buildlink3.mk" | | 110 | .include "../../security/gnutls/buildlink3.mk" |
113 | .include "../../sysutils/dbus-glib/buildlink3.mk" | | 111 | .include "../../sysutils/dbus-glib/buildlink3.mk" |
114 | .include "../../textproc/libxml2/buildlink3.mk" | | 112 | .include "../../textproc/libxml2/buildlink3.mk" |