openbsd-ports/x11/gnome/gvfs/Makefile
2013-04-16 13:59:24 +00:00

97 lines
2.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.92 2013/04/16 13:59:24 ajacoutot Exp $
COMMENT-main= GNOME Virtual File System
COMMENT-smb= GVFS mount module for samba
COMMENT-goa= GVFS volume monitor for gnome-online-account
GNOME_PROJECT= gvfs
GNOME_VERSION= 1.16.1
PKGNAME-main= ${DISTNAME}
PKGNAME-smb= ${GNOME_PROJECT}-smb-${GNOME_VERSION}
PKGNAME-goa= ${GNOME_PROJECT}-goa-${GNOME_VERSION}
SHARED_LIBS += gvfscommon 4.0 # .0.0
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
MODULES= devel/gettext \
x11/gnome \
devel/dconf
WANTLIB += c ffi gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 pcre pthread
WANTLIB += util z
WANTLIB-main += ${WANTLIB}
WANTLIB-main += ICE SM X11 Xcomposite Xcursor Xdamage xcb-shm
WANTLIB-main += Xext Xfixes Xi Xinerama Xrandr Xrender graphite2 xml2
WANTLIB-main += atk-1.0 atk-bridge-2.0 atspi avahi-client avahi-common
WANTLIB-main += avahi-glib bz2 cairo cairo-gobject dbus-1 expat
WANTLIB-main += fontconfig freetype gdk-3 gdk_pixbuf-2.0 xml2 archive
WANTLIB-main += gtk-3 harfbuzz icudata icule icuuc lzma m pango-1.0
WANTLIB-main += pangocairo-1.0 pangoft2-1.0 pixman-1 png pthread-stubs
WANTLIB-main += soup-2.4 soup-gnome-2.4 sqlite3 gthread-2.0 xcb xcb-render
WANTLIB-main += gcrypt gpg-error secret-1
WANTLIB-smb += ${WANTLIB}
WANTLIB-smb += gvfscommon smbclient execinfo talloc tdb wbclient
WANTLIB-smb += gcrypt gpg-error secret-1
WANTLIB-goa += ${WANTLIB}
WANTLIB-goa += goa-1.0 gvfscommon
MODGNOME_DESKTOP_FILE= Yes
# man pages
BUILD_DEPENDS += textproc/docbook-xsl
LIB_DEPENDS-main= ${LIB_DEPENDS} \
archivers/libarchive \
devel/libsoup,-gnome \
net/avahi \
x11/gnome/libsecret \
x11/gtk+3
RUN_DEPENDS-smb= ${MODGETTEXT_RUN_DEPENDS}
LIB_DEPENDS-smb= ${LIB_DEPENDS} \
${BASE_PKGPATH},-main=${GNOME_VERSION} \
net/samba
RUN_DEPENDS-goa= ${MODGETTEXT_RUN_DEPENDS}
LIB_DEPENDS-goa= ${LIB_DEPENDS} \
${BASE_PKGPATH},-main=${GNOME_VERSION} \
x11/gnome/online-accounts
CONFIGURE_ARGS= --disable-cdda \
--disable-bluray \
--disable-afc \
--disable-obexftp \
--disable-gudev \
--disable-udev \
--disable-gdu
MULTI_PACKAGES= -main -smb -goa
PSEUDO_FLAVORS= no_smb no_goa bootstrap
FLAVOR?= no_smb no_goa
.include <bsd.port.arch.mk>
.if !${BUILD_PACKAGES:M-smb}
CONFIGURE_ARGS += --disable-samba
.endif
.if !${BUILD_PACKAGES:M-goa}
CONFIGURE_ARGS += --disable-goa
.endif
# test_polkitd.py, gvfs-test
TEST_DEPENDS= devel/py-gobject3
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
rm ${PREFIX}/lib/gio/modules/*.{a,la}
.include <bsd.port.mk>