aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-sorl-thumbnail/Makefile
blob: fd46d18964fa363a2afdf88af846555de5808ee1 (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
# Created by: Kevin Golding <ports@caomhin.org>
# $FreeBSD$

PORTNAME=	sorl-thumbnail
PORTVERSION=	3.2.5
PORTREVISION=	3
CATEGORIES=	graphics python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	ports@caomhin.org
COMMENT=	Sorl-thumbnail provides an easy way to generate image thumbnails

LICENSE=	BSD

RUN_DEPENDS=	${LOCALBASE}/bin/pildriver.py:${PORTSDIR}/graphics/py-imaging

USE_PYTHON=	2.5+
USE_PYDISTUTILS=	yes

DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}

OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE=	DJANGO PDF WORD
DJANGO_DESC=	Enable Django
PDF_DESC=	PDF Thumbnails
WORD_DESC=	Word Document thumbnail handling

OPTIONS_DEFAULT=	DJANGO

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDJANGO}
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/django/bin/django-admin.py:${PORTSDIR}/www/py-django
.endif

.if ${PORT_OPTIONS:MPDF}
RUN_DEPENDS+=	${LOCALBASE}/bin/Magick-config:${PORTSDIR}/graphics/ImageMagick
.endif

.if ${PORT_OPTIONS:MWORD}
RUN_DEPENDS+=	wvVersion:${PORTSDIR}/textproc/wv
.endif

.include <bsd.port.mk>