# New ports collection makefile for:	rubrica
# Date created:		27 February 2003
# Whom:			Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
#
# $FreeBSD: ports/deskutils/rubrica/Makefile,v 1.1 2003/03/01 07:07:58 marcus Exp $
#

PORTNAME=	rubrica
PORTVERSION=	1.0.0.c1
CATEGORIES=	deskutils gnome
MASTER_SITES=	http://digilander.libero.it/nfragale/download/rubrica/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.c1$/cr1/}

MAINTAINER=	martin.klaffenboeck@gmx.at
COMMENT=	An addressbook for the gnome2 desktop

LIB_DEPENDS=	gnomeui-2.200:${PORTSDIR}/x11-toolkits/libgnomeui

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.c1$/cr1/}
USE_BZIP2=	yes
USE_GNOMENG=	yes
USE_GNOME=	gnomehack gnomeprefix
USE_X_PREFIX=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
		LIBS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET=	--target=${MACHINE_ARCH}-unknown-freebsd${OSREL}

DOC_FILES=	AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO

post-install:
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
	@${INSTALL_DATA} ${WRKSRC}/doc/examples.rub ${DOCSDIR}
.endif

.include <bsd.port.mk>
