freebsd-ports/graphics/py-sane/Makefile
Marcus von Appen 734b61f327 - Convert ports of graphics/ to new USES=python
Approved by:	portmgr (implicit)
2014-10-21 16:36:12 +00:00

28 lines
677 B
Makefile

# Created by: buganini@gmail.com
# $FreeBSD$
PORTNAME= sane
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= http://effbot.org/media/downloads/ \
http://www.pythonware.net/storage/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Imaging-1.1.7
MAINTAINER= buganini@gmail.com
COMMENT= Python bindings for Sane
LIB_DEPENDS= libsane.so:${PORTSDIR}/graphics/sane-backends
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
DIST_SUBDIR= python
USES= python
USE_PYTHON= distutils
WRKSRC= ${WRKDIR}/${DISTNAME}/Sane
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/setup.py
.include <bsd.port.mk>