aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-sane/Makefile
blob: 8cd4bb0fcc29b005ba08159854677906abb46360 (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
# New ports collection makefile for:    py-sane
# Date created:         5 August 2011
# Whom:                 buganini@gmail.com
#
# $FreeBSD$
#

PORTNAME=   sane
PORTVERSION=    2.0
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=    The Python binding for Sane

LIB_DEPENDS=    sane.1:${PORTSDIR}/graphics/sane-backends
RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}imaging>=1.1.7:${PORTSDIR}/graphics/py-imaging

DIST_SUBDIR=    python
USE_PYTHON= yes
USE_PYDISTUTILS=    yes

WRKSRC=     ${WRKDIR}/${DISTNAME}/Sane

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/setup.py

.include <bsd.port.mk>