# $OpenBSD: Makefile,v 1.69 2012/03/29 06:34:16 ajacoutot Exp $ COMMENT-main= GNOME Virtual File System COMMENT-smb= samba module for GVFS GNOME_PROJECT= gvfs GNOME_VERSION= 1.11.5 PKGNAME-main= ${DISTNAME} PKGNAME-smb= ${GNOME_PROJECT}-smb-${GNOME_VERSION} SHARED_LIBS += gvfscommon 3.0 # .0.0 SHARED_LIBS += gvfscommon-dnssd 1.0 # .0.0 # LGPLv2 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes MODULES= devel/gettext \ x11/gnome \ devel/dconf # XXX PaxHeaders TAR= ${LOCALBASE}/bin/gtar BUILD_DEPENDS+= archivers/gtar WANTLIB += c dbus-1 gio-2.0 glib-2.0>=2800 WANTLIB += gmodule-2.0 gobject-2.0 gthread-2.0 pcre pthread util WANTLIB += ffi gpg-error z gcrypt gnome-keyring>=6 LIB_DEPENDS= x11/gnome/libgnome-keyring WANTLIB-main += ${WANTLIB} WANTLIB-main += bz2 m lzma soup-2.4 sqlite3 expat WANTLIB-main += xml2 archive soup-gnome-2.4>=1 WANTLIB-main += avahi-client avahi-common avahi-glib MODGNOME_DESKTOP_FILE= Yes LIB_DEPENDS-main= ${LIB_DEPENDS} \ archivers/libarchive \ devel/libsoup,-gnome \ net/avahi WANTLIB-smb += ${WANTLIB} gvfscommon smbclient execinfo talloc tdb wbclient RUN_DEPENDS-smb= ${MODGETTEXT_RUN_DEPENDS} LIB_DEPENDS-smb= ${LIB_DEPENDS} \ ${BASE_PKGPATH},-main \ net/samba AUTOCONF_VERSION=2.68 CONFIGURE_STYLE=autoconf CONFIGURE_ARGS= --disable-cdda \ --disable-bluray \ --disable-fuse \ --disable-hal \ --disable-afc \ --disable-obexftp \ --disable-gphoto2 \ --disable-gudev \ --disable-udev \ --disable-gdu \ --enable-afp \ --enable-archive \ --enable-avahi \ --enable-http \ --enable-keyring \ --with-bash-completion-dir="${PREFIX}/share/gvfs" MULTI_PACKAGES= -main PSEUDO_FLAVORS= no_smb FLAVOR?= .if ${FLAVOR:L:Mno_smb} CONFIGURE_ARGS+= --disable-samba .else CONFIGURE_ARGS+= --enable-samba MULTI_PACKAGES+= -smb .endif post-install: ${SUBST_CMD} -c ${FILESDIR}/mount-archive.desktop.in \ ${WRKSRC}/mount-archive.desktop ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ ${INSTALL_DATA} ${WRKSRC}/mount-archive.desktop \ ${PREFIX}/share/applications/ .include