summaryrefslogtreecommitdiff
path: root/www/flickcurl/Makefile
blob: b83e5047abec57ab7a9387e967369539ef676c1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: Vanilla I. Shu <vanilla@FreeBSD.org>
# $FreeBSD$

PORTNAME=	flickcurl
PORTVERSION=	1.24
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://download.dajobe.org/flickcurl/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	C library for the Flickr API

LICENSE=	AL2 GPLv2 LGPL21
LICENSE_COMB=	dual

LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl

OPTIONS_DEFINE=	RAPTOR DOCS
OPTIONS_DEFAULT=RAPTOR
RAPTOR_DESC=	Use Raptor to serialize to triples

USES=		pathfix pkgconfig
USE_GNOME=	ltverhack libxml2
USE_AUTOTOOLS=	libtool
CONFIGURE_ARGS=	--with-html-dir=${WRKDIR}/tmproot
USE_LDCONFIG=	yes
MAKE_JOBS_SAFE=	yes

MAN1=		flickcurl.1 flickcurl-config.1 flickrdf.1

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MRAPTOR}
LIB_DEPENDS+=	raptor2:${PORTSDIR}/textproc/raptor2
CONFIGURE_ARGS+=--with-raptor=2
.else
CONFIGURE_ARGS+=--with-raptor=no
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	@(cd ${WRKDIR}/tmproot/flickcurl && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif

.include <bsd.port.mk>