summaryrefslogtreecommitdiff
path: root/graphics/podofo/Makefile
blob: 44575c75321f6ad267a3fcaff383fdfe19bb751c (plain)
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
# New ports collection makefile for:	podofo
# Date created:		10/17/2009
# Whom:			stas
#
# $FreeBSD$
#

PORTNAME=	podofo
PORTVERSION=	0.7.0
PORTREVISION=	2
CATEGORIES=	graphics print
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}/${PORTVERSION:R}

MAINTAINER=	stas@FreeBSD.org
COMMENT=	PDF manipulation library and tools

LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2 \
		fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig

OPTIONS=	JPEG "Enable JPEG support" on \
		TIFF "Enable TIFF support" on \
		IMPOSE "Build impose tool (needs Lua)" off

USE_CMAKE=	yes
USE_LDCONFIG=	yes
CMAKE_ARGS+=	-DPODOFO_BUILD_SHARED:BOOL=TRUE \
		-DPODOFO_BUILD_STATIC:BOOL=FALSE

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_JPEG) || exists(${LOCALBASE}/lib/libjpeg.so)
LIB_DEPENDS+=	jpeg:${PORTSDIR}/graphics/jpeg
.endif
.if !defined(WITHOUT_TIFF) || exists(${LOCALBASE}/lib/libtiff.so)
LIB_DEPENDS+=	tiff:${PORTSDIR}/graphics/tiff
.endif
.if defined(WITH_IMPOSE) || exists(${LOCALBASE}/lib/lua51/liblua.so)
USE_LUA=	5.1
CPPFLAGS+=	-I${LUA_INCDIR}
LDFLAGS+=	-L${LUA_LIBDIR}
.endif

.include <bsd.port.post.mk>