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