# $OpenBSD: Makefile,v 1.2 2005/05/22 01:30:45 jolan Exp $

COMMENT=	"settings manager plug-ins for xfce4"
V=		4.2.2
DISTNAME=	xfce-mcs-plugins-${V}
MASTER_SITES=	http://www.xfce.org/archive/xfce-${V}/src/

HOMEPAGE=	http://www.xfce.org/

# GPL
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes


MODULES=	devel/gettext
BUILD_DEPENDS=	:pkgconfig-*:devel/pkgconfig \
		:xfce-mcs-manager-*:x11/xfce4/xfce-mcs-manager
LIB_DEPENDS=	xfcegui4.3.4::x11/xfce4/libxfcegui4 \
		xfce4mcs-client.2.3,xfce4mcs-manager.2.3::x11/xfce4/libxfce4mcs
RUN_DEPENDS=	:xfce-mcs-manager-*:x11/xfce4/xfce-mcs-manager
WANTLIB=	X11 Xcursor Xext Xft Xinerama Xrandr Xrender Xxf86vm \
		fontconfig freetype m \
		atk-1.0.0.0 gdk-x11-2.0.0.0 gdk_pixbuf-2.0.0.0 glib-2.0.0.0 \
		gmodule-2.0.0.0 gobject-2.0.0.0 gtk-x11-2.0.0.0 pango-1.0.0.0 \
		pangox-1.0.0.0 pangoxft-1.0.0.0 xfce4util.1

# XXX workaround libtool's versioning of simple shared object modules
post-install:
.for n in display keyboard mouse screensaver ui
	${INSTALL_DATA} ${WRKSRC}/plugins/${n}_plugin/.libs/${n}_plugin.so.0.0 \
		${PREFIX}/lib/xfce4/mcs-plugins/${n}_plugin.so
.endfor

.include <bsd.port.mk>
