# Created by: ijliao
# $FreeBSD: textproc/rasqal/Makefile 327773 2013-09-20 23:17:30Z bapt $

PORTNAME=	rasqal
PORTVERSION=	0.9.30
CATEGORIES=	textproc
MASTER_SITES=	http://download.librdf.org/source/ \
		SF/librdf/${PORTNAME}/${PORTVERSION}

MAINTAINER=	kde@FreeBSD.org
COMMENT=	High-level interface for RDF

LIB_DEPENDS=	raptor2:${PORTSDIR}/textproc/raptor2 \
		pcre:${PORTSDIR}/devel/pcre

USE_GNOME=	lthack
USE_OPENSSL=	yes
USE_PERL5=	build
USES=		gmake pathfix pkgconfig perl5
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

MAN1=		rasqal-config.1 roqet.1
MAN3=		librasqal.3

OPTIONS_RADIO=	DEC
OPTIONS_RADIO_DEC=	GMP MPFR

GMP_DESC=	Use GMP library for decimals
MPFR_DESC=	Use MPFR library for decimals

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

.if ${PORT_OPTIONS:MMPFR}
CONFIGURE_ARGS+=--with-decimal=mpfr --with-mpfr=${LOCALBASE}
LIB_DEPENDS+=	mpfr:${PORTSDIR}/math/mpfr
.elif ${PORT_OPTIONS:MGMP}
CONFIGURE_ARGS+=--with-decimal=gmp
LIB_DEPENDS+=	gmp:${PORTSDIR}/math/gmp
.else
CONFIGURE_ARGS+=--with-decimal=none
.endif

.include <bsd.port.mk>
