Changeset View
Changeset View
Standalone View
Standalone View
graphics/py-sorl-thumbnail/Makefile
# Created by: Kevin Golding <ports@caomhin.org> | # Created by: Kevin Golding <ports@caomhin.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= sorl-thumbnail | PORTNAME= sorl-thumbnail | ||||
PORTVERSION= 3.2.5 | PORTVERSION= 3.2.5 | ||||
PORTREVISION= 6 | PORTREVISION= 7 | ||||
CATEGORIES= graphics python | CATEGORIES= graphics python | ||||
MASTER_SITES= CHEESESHOP | MASTER_SITES= CHEESESHOP | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= ports@caomhin.org | MAINTAINER= ports@caomhin.org | ||||
COMMENT= Sorl-thumbnail provides an easy way to generate image thumbnails | COMMENT= Sorl-thumbnail provides an easy way to generate image thumbnails | ||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${FLAVOR} | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} | ||||
USES= python | USES= python | ||||
USE_PYTHON= autoplist distutils | USE_PYTHON= autoplist distutils | ||||
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}@${FLAVOR} | DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}@${PY_FLAVOR} | ||||
OPTIONS_DEFINE= DJANGO PDF WORD | OPTIONS_DEFINE= DJANGO PDF WORD | ||||
DJANGO_DESC= Enable Django | DJANGO_DESC= Enable Django | ||||
DJANGO_VARS= PKGNAMEPREFIX=${DJANGO_PKGNAMEPREFIX} | |||||
PDF_DESC= PDF Thumbnails | PDF_DESC= PDF Thumbnails | ||||
WORD_DESC= Word Document thumbnail handling | WORD_DESC= Word Document thumbnail handling | ||||
OPTIONS_DEFAULT= DJANGO | OPTIONS_DEFAULT= DJANGO | ||||
.include <bsd.port.options.mk> | DJANGO_USES= django | ||||
PDF_RUN_DEPENDS= ${LOCALBASE}/bin/Magick-config:graphics/ImageMagick | |||||
.if ${PORT_OPTIONS:MDJANGO} | WORD_RUN_DEPENDS= wvVersion:textproc/wv | ||||
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/django/bin/django-admin.py:www/py-django18@${FLAVOR} | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPDF} | |||||
RUN_DEPENDS+= ${LOCALBASE}/bin/Magick-config:graphics/ImageMagick | |||||
.endif | |||||
.if ${PORT_OPTIONS:MWORD} | |||||
RUN_DEPENDS+= wvVersion:textproc/wv | |||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |