2013-05-23 04:35:26 +02:00
|
|
|
# Created by: Kevin Golding <ports@caomhin.org>
|
2009-12-13 01:28:47 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sorl-thumbnail
|
|
|
|
PORTVERSION= 3.2.5
|
2016-01-16 12:19:09 +01:00
|
|
|
PORTREVISION= 6
|
2009-12-13 01:28:47 +01:00
|
|
|
CATEGORIES= graphics python
|
2011-12-10 12:04:29 +01:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2009-12-13 01:28:47 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= ports@caomhin.org
|
2011-12-10 12:04:29 +01:00
|
|
|
COMMENT= Sorl-thumbnail provides an easy way to generate image thumbnails
|
|
|
|
|
2014-12-06 23:13:42 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2009-12-13 01:28:47 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow
|
2009-12-13 01:28:47 +01:00
|
|
|
|
2014-10-05 02:09:15 +02:00
|
|
|
USES= python
|
|
|
|
USE_PYTHON= autoplist distutils
|
2009-12-13 01:28:47 +01:00
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
|
|
|
2013-05-23 04:35:26 +02:00
|
|
|
OPTIONS_DEFINE= DJANGO PDF WORD
|
|
|
|
DJANGO_DESC= Enable Django
|
|
|
|
PDF_DESC= PDF Thumbnails
|
|
|
|
WORD_DESC= Word Document thumbnail handling
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= DJANGO
|
2009-12-13 01:28:47 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-05-23 04:35:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MDJANGO}
|
2016-04-01 16:00:51 +02:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/django/bin/django-admin.py:www/py-django18
|
2009-12-13 01:28:47 +01:00
|
|
|
.endif
|
|
|
|
|
2013-05-23 04:35:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MPDF}
|
2016-04-01 16:00:51 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/Magick-config:graphics/ImageMagick
|
2009-12-13 01:28:47 +01:00
|
|
|
.endif
|
|
|
|
|
2013-05-23 04:35:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MWORD}
|
2016-04-01 16:00:51 +02:00
|
|
|
RUN_DEPENDS+= wvVersion:textproc/wv
|
2009-12-13 01:28:47 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|