# $OpenBSD: Makefile,v 1.28 2009/01/26 18:17:25 jasper Exp $

COMMENT=	GTK-based LDAP client

DISTNAME=	gq-1.0beta1
PKGNAME=	${DISTNAME}p10
CATEGORIES=	databases sysutils

HOMEPAGE=	http://biot.com/gq/

MAINTAINER=	Marc Balmer <mbalmer@openbsd.org>

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

MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=gqclient/}

WANTLIB=	X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes Xi \
		Xinerama Xrandr Xrender atk-1.0 c cairo crypto expat \
		fontconfig freetype gio-2.0 glib-2.0 glitz gmodule-2.0 \
		gobject-2.0 krb5 m pango-1.0 pangocairo-1.0 pangoft2-1.0 \
		pixman-1 png sasl2 ssl z

MODULES=	devel/gettext

BUILD_DEPENDS=  :cyrus-sasl-*:security/cyrus-sasl2
RUN_DEPENDS+=	::devel/desktop-file-utils
LIB_DEPENDS=	gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2 \
		ldap.>=7,lber.>=7::databases/openldap \
		xml2::textproc/libxml

USE_X11=	Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.57
CONFIGURE_ARGS=	--with-ldap-prefix=${LOCALBASE} \
		--with-sasl-prefix=${LOCALBASE} \
		--with-kerberos-prefix=/usr
CFLAGS+=	-DLDAP_DEPRECATED

pre-configure:
	${SUBST_CMD} ${WRKSRC}/src/gq.desktop

.include <bsd.port.mk>
