aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-imaging/Makefile
blob: 43e3e475add0097be25efdb3320c449fb5e21a15 (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
# New ports collection makefile for:    PIL
# Date created:         02 November 1998
# Whom:                 Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   imaging
PORTVERSION=    1.1.5
CATEGORIES= graphics python
MASTER_SITES=   http://effbot.org/downloads/ \
            http://www.pythonware.net/storage/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   Imaging-${PORTVERSION}

MAINTAINER= mainland@apeiron.net
COMMENT=    The Python Imaging Library

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter

DIST_SUBDIR=     python
USE_PYTHON=  yes
USE_PYDISTUTILS=yes

DOCDIRS=        ${PREFIX}/share/doc/py-imaging
EXAMPLESDIR=    ${PREFIX}/share/examples/py-imaging

.include <bsd.port.pre.mk>

post-install:
.for file in ImPlatform.h Imaging.h
    ${INSTALL_DATA} ${WRKSRC}/libImaging/${file} ${PYTHON_INCLUDEDIR}
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/Docs/* ${DOCSDIR}
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/Scripts/* ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>