aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-gd/Makefile
blob: 7b91029eea222c6a5af86c96ec9ae9829e3836e0 (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
# Created by: Hye-Shik Chang <perky@fallin.lv>
# $FreeBSD$

PORTNAME=   gd
PORTVERSION=    0.56
PORTREVISION=   7
CATEGORIES= graphics python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   gdmodule-${PORTVERSION}
DIST_SUBDIR=    repacked

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

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

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
USE_PYTHON_PREFIX=  yes
PYDISTUTILS_PKGNAME=    gdmodule

post-patch:
    @${REINPLACE_CMD} -e \
        '/\/usr\/lib/d ; \
         /\/usr\/include/d ; \
         /\/usr\/X11R6/d ; \
         s|/opt/gnome|${LOCALBASE}| ; \
         /"jpeg", "png", "gif", "z",/d ; \
         /"X11", "Xpm",/d ; \
         /"ttf", "freetype",/d' \
        ${WRKSRC}/${PYSETUP}

.include <bsd.port.mk>