aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-gd/Makefile
blob: 7f5fb50e8ece94fd25bef1c1bba1484e3393a0ae (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
# New ports collection makefile for:    py-gd
# Date created:     23 December 2001
# Whom:         Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$

PORTNAME=   gd
PORTVERSION=    0.42
PORTREVISION=   1
CATEGORIES= graphics python
MASTER_SITES=   http://newcenturycomputers.net/projects/download.cgi/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   gdmodule-${PORTVERSION}

MAINTAINER= perky@FreeBSD.org
COMMENT=    Python interface to the GD library

LIB_DEPENDS=    gd.4:${PORTSDIR}/graphics/gd

USE_XPM=    yes
USE_REINPLACE=  yes
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
USE_PYTHON_PREFIX=  yes
PYSETUP=    Setup.py
EXAMPLESDIR=    ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}

post-patch:
    ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
        -e 's,/usr/X11R6,${X11BASE},g' \
        -e 's,/usr/include/X11,${LOCALBASE}/include,g' \
        ${WRKSRC}/${PYSETUP}

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>