# $FreeBSD$

PORTNAME=	libgalago
PORTVERSION=	0.5.2
PORTREVISION=	4
CATEGORIES=	devel deskutils
MASTER_SITES=	http://www.galago-project.org/files/releases/source/${PORTNAME}/

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Galago desktop presence library

LIB_PC_DEPENDS=	dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib

BUILD_DEPENDS+=	${LIB_PC_DEPENDS:C|^|${LOCALBASE}/libdata/pkgconfig/|g}
RUN_DEPENDS+=	${LIB_PC_DEPENDS:C|^|${LOCALBASE}/libdata/pkgconfig/|g}

USES=		gettext libtool pathfix pkgconfig
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-tests
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

post-configure:
	@${ECHO_CMD} "#define HAVE_STRCHR 1" >> ${WRKSRC}/config.h

.include <bsd.port.mk>