# New ports collection makefile for:   kallery
# Date created:        22 September 2002
# Whom:                Michael Collette
#
# $FreeBSD: ports/graphics/kallery/Makefile,v 1.12 2005/03/12 10:51:49 marcus Exp $
#

PORTNAME=	kallery
PORTVERSION=	1.0.7a
PORTREVISION=	3
CATEGORIES=	graphics www kde
MASTER_SITES=	http://kallery.kdewebdev.org/releases/

MAINTAINER=		metrol@metrol.net
COMMENT=	An image gallery generator for KDE

LIB_DEPENDS=	Magick.8:${PORTSDIR}/graphics/ImageMagick

USE_KDELIBS_VER=3
USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_REINPLACE=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
BROKEN=		"Configure fails on amd64"
.endif

post-patch:
.if !defined(NOPORTDOCS)
	@${REINPLACE_CMD} -Ee \
		's|(dtd/kdex.dtd)|${LOCALBASE}/share/apps/ksgmltools2/customization/\1|' \
		${WRKSRC}/doc/en/index.docbook
.else
	@${REINPLACE_CMD} -Ee 's|(kallery po) doc|\1|' ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.post.mk>
