# Created by: Joe Kelsey
# $FreeBSD: tags/RELEASE_10_0_0/devel/libical/Makefile 327724 2013-09-20 17:13:42Z bapt $

PORTNAME=	libical
PORTVERSION=	0.48
CATEGORIES=	devel
MASTER_SITES=	SF/freeassociation/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	An implementation of the IETF Calendaring and Scheduling protocols

USES=		gmake perl5
USE_PERL5=	build
USE_GNOME=	gnomehack ltverhack
USE_AUTOTOOLS=	libtool
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
CPPFLAGS+=	-I${LOCALBASE}/include

OPTIONS_DEFINE=	PYTHON

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPYTHON}
CONFIGURE_ARGS=	--enable-python=yes
USE_PYTHON=	yes
.else
CONFIGURE_ARGS=	--enable-python=no
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=	-fPIC
.endif

.include <bsd.port.post.mk>
