# $OpenBSD: Makefile,v 1.12 2010/11/22 08:36:55 espie Exp $

SHARED_ONLY =	Yes

COMMENT =	OpenGL window and compositing manager

V =		0.8.2
DISTNAME =	compiz-${V}
REVISION=	6

SHARED_LIBS =	decoration	0.0

CATEGORIES =	x11

HOMEPAGE =	http://www.compiz-fusion.org/

# MIT, GPL and LGPL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP =   Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes

WANTLIB += GL GLU ICE ORBit-2 SM X11 XRes Xau Xcomposite Xcursor xslt
WANTLIB += Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrandr Xrender xml2
WANTLIB += Xxf86vm atk-1.0 c cairo dbus-1 dbus-glib-1 drm execinfo png
WANTLIB += expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 wnck-1
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB += gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB += pcre pixman-1 pthread pthread-stubs xcb xcb-atom xcb-aux
WANTLIB += xcb-event xcb-render xcb-render-util z startup-notification-1

MASTER_SITES =	http://releases.compiz-fusion.org/${V}/

MODULES =	devel/gconf2 \
		devel/gettext \
		textproc/intltool

MODGCONF2_SCHEMAS_DIR =	compiz

LIB_DEPENDS =	graphics/png \
		devel/startup-notification \
		devel/libwnck \
		textproc/libxml \
		textproc/libxslt

USE_GMAKE =	Yes
USE_LIBTOOL =	Yes

LIBTOOL_FLAGS=	--tag=disable-static

CONFIGURE_STYLE	= gnu
CONFIGURE_ARGS = ${CONFIGURE_SHARED} \
		 --disable-static \
		 --disable-inotify \
		 --disable-fuse \
		 --disable-librsvg \
		 --disable-metacity \
		 --disable-gnome \
		 --disable-gnome-keybindings \
		 --disable-kde \
		 --disable-kde4 \
		 --disable-kconfig
CONFIGURE_ENV =	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.mk>
