# Created by: UMENO Takashi
# $FreeBSD: tags/RELEASE_10_4_0/x11-wm/gcompmgr/Makefile 441395 2017-05-21 13:21:04Z linimon $

PORTNAME=	gcompmgr
PORTVERSION=	0.21
PORTREVISION=	10
CATEGORIES=	x11-wm
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GNOME interface to xcompmgr

RUN_DEPENDS=	xcompmgr:x11-wm/xcompmgr

BROKEN=		fails to compile: ustring.h: expected ';' at end of declaration list

GNU_CONFIGURE=	yes
LIBS+=		-L${LOCALBASE}/lib -lX11
USES=		autoreconf libtool pkgconfig
USE_GNOME=	gtkmm24
USE_XORG=	x11

DESKTOP_ENTRIES="gcompmgr" \
		"Configure window effects" \
		"" \
		"gcompmgr" \
		"DesktopSettings;Settings;GTK;" \
		true

OPTIONS_DEFINE=	DOCS

post-patch:
	@${RM} ${WRKSRC}/INSTALL
	@${REINPLACE_CMD} -e 's|connect(SigC::slot|connect(sigc::mem_fun|g ; \
		s|#include <sigc++\/compatibility\.h>||g' \
			${WRKSRC}/src/*.cc

.include <bsd.port.mk>
