# New ports collection makefile for:   libical
# Date created:        8 November 2002
# Whom:                Joe Kelsey
#
# $FreeBSD: ports/devel/libical/Makefile,v 1.9 2004/03/14 06:16:19 ade Exp $
#

PORTNAME=	libical
PORTVERSION=	0.24
PORTREVISION=	2
DISTFILES=	${DISTNAME}.RC4${EXTRACT_SUFX}
CATEGORIES=	devel
MASTER_SITES=	http://osdn.dl.sourceforge.net/sourceforge/freeassociation/

MAINTAINER=	joe@zircon.seattle.wa.us
COMMENT=	An implementation of the IETF's Calendaring and Scheduling protocols

USE_LIBTOOL_VER=	13
USE_GMAKE=	yes
USE_PERL5_BUILD=yes
INSTALLS_SHLIB=	yes

.if !defined(WITHOUT_PYTHON)
CONFIGURE_ARGS=	--enable-python=yes
USE_PYTHON=	yes
PLIST_SUB+=     PYTHON:=""
.else
CONFIGURE_ARGS=	--enable-python=no
PLIST_SUB+=     PYTHON:="@comment "
.endif

.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CONFIGURE_ENV=	CFLAGS="${CFLAGS} -fPIC"
.endif
.include <bsd.port.post.mk>
