# $OpenBSD: Makefile,v 1.11 2009/02/11 15:47:49 jasper Exp $

BROKEN= 	does not work after changes in the UVC layer

COMMENT=	PhotoBooth inspired application

GNOME_PROJECT=	cheese
GNOME_VERSION=	2.24.3
PKGNAME=	${DISTNAME}p3

CATEGORIES=	multimedia

HOMEPAGE=	http://www.gnome.org/projects/cheese/

# GPLv2
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=	Yes

WANTLIB=	ICE ORBit-2 ORBitCosNaming-2 SM X11 Xau Xcomposite \
		Xcursor Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrandr \
		Xrender art_lgpl_2 asn1 atk-1.0 \
		bonobo-2 bonobo-activation bonoboui-2 bz2 c cairo \
		com_err croco-0.6 crypto dbus-1 dbus-glib-1 \
		expat fontconfig freetype gailutil gconf-2 gcrypt gdk-x11-2.0 \
		gdk_pixbuf-2.0 gio-2.0 glib-2.0 glitz gmodule-2.0 \
		gnome-2 gnome-keyring gnomecanvas-2 gnomevfs-2 gnutls \
		gobject-2.0 gpg-error gsf-1 gssapi gthread-2.0 gtk-x11-2.0 \
		krb5 m nspr4 nss3 pango-1.0 pangocairo-1.0 \
		pangoft2-1.0 pcre pixman-1 plc4 plds4 png popt pthread \
		ssl ssl3 tasn1 util xml2 z soup-2.4 sqlite3

MODULES=	devel/gettext \
		x11/gnome

BUILD_DEPENDS=	::x11/gnome/doc-utils
LIB_DEPENDS=	camel-1.2.>=11,ebook-1.2,edataserver-1.2,smime3,softokn3::databases/evolution-data-server \
		rsvg-2.>=20::x11/gnome/librsvg \
		gstinterfaces-0.10,gstreamer-0.10::multimedia/gstreamer-0.10/plugins-base \
		gnomeui-2::x11/gnome/libgnomeui
RUN_DEPENDS=	::textproc/rarian \
		:gstreamer-ogg-*:multimedia/gstreamer-0.10/plugins-base,-ogg \
		:gstreamer-theora-*:multimedia/gstreamer-0.10/plugins-base,-theora \
		:gstreamer-vorbis-*:multimedia/gstreamer-0.10/plugins-base,-vorbis \
		::multimedia/gstreamer-0.10/plugins-good # gstreamer v4l2 plugin

USE_X11=	Yes
DESKTOP_FILES=	Yes
MODGNOME_HELP_FILES=Yes

FAKE_FLAGS=	schemadir=${LOCALBASE}/share/schemas/cheese

CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS=	${CONFIGURE_SHARED} \
		--disable-schemas-install \
		--disable-scrollkeeper \
		--with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/cheese

.include <bsd.port.mk>
