Lines 1-47
Link Here
|
1 |
# New ports collection makefile for: py-gd |
1 |
# Created by: Hye-Shik Chang <perky@fallin.lv> |
2 |
# Date created: 23 December 2001 |
|
|
3 |
# Whom: Hye-Shik Chang <perky@fallin.lv> |
4 |
# |
5 |
# $FreeBSD: head/graphics/py-gd/Makefile 300896 2012-07-14 13:54:48Z beat $ |
2 |
# $FreeBSD: head/graphics/py-gd/Makefile 300896 2012-07-14 13:54:48Z beat $ |
6 |
|
3 |
|
7 |
PORTNAME= gd |
4 |
PORTNAME= gd |
8 |
PORTVERSION= 0.56 |
5 |
PORTVERSION= 0.56 |
9 |
PORTREVISION= 6 |
6 |
PORTREVISION= 7 |
10 |
CATEGORIES= graphics python |
7 |
CATEGORIES= graphics python |
11 |
MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/ |
8 |
MASTER_SITES= CHEESESHOP |
12 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
13 |
DISTNAME= gdmodule-${PORTVERSION} |
10 |
DISTNAME= gdmodule-${PORTVERSION} |
|
|
11 |
DIST_SUBDIR= repacked |
14 |
|
12 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= Python interface to the GD library |
14 |
COMMENT= Python interface to the GD library |
17 |
|
15 |
|
18 |
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd |
16 |
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd |
19 |
|
17 |
|
20 |
.if !defined(WITHOUT_X11) |
|
|
21 |
USE_XORG= xpm |
22 |
.endif |
23 |
USE_PYTHON= yes |
18 |
USE_PYTHON= yes |
24 |
USE_PYDISTUTILS= yes |
19 |
USE_PYDISTUTILS= yes |
25 |
USE_PYTHON_PREFIX= yes |
20 |
USE_PYTHON_PREFIX= yes |
26 |
PYDISTUTILS_PKGNAME= gdmodule |
21 |
PYDISTUTILS_PKGNAME= gdmodule |
27 |
DISABLE_SIZE= yes |
|
|
28 |
PYSETUP= Setup.py |
29 |
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} |
30 |
|
22 |
|
31 |
post-patch: |
23 |
post-patch: |
32 |
${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \ |
24 |
@${REINPLACE_CMD} -e \ |
33 |
-e 's,/usr/X11R6,${LOCALBASE},g' \ |
25 |
'/\/usr\/lib/d ; \ |
34 |
-e 's,/usr/include/X11,${LOCALBASE}/include,g' \ |
26 |
/\/usr\/include/d ; \ |
|
|
27 |
/\/usr\/X11R6/d ; \ |
28 |
s|/opt/gnome|${LOCALBASE}| ; \ |
29 |
/"jpeg", "png", "gif", "z",/d ; \ |
30 |
/"X11", "Xpm",/d ; \ |
31 |
/"ttf", "freetype",/d' \ |
35 |
${WRKSRC}/${PYSETUP} |
32 |
${WRKSRC}/${PYSETUP} |
36 |
.if defined(WITHOUT_X11) |
|
|
37 |
${REINPLACE_CMD} -e 's/"X11", "Xpm",//' \ |
38 |
-e 's/"ttf", "freetype",//' ${WRKSRC}/${PYSETUP} |
39 |
.endif |
40 |
|
41 |
post-install: |
42 |
.if !defined(NOPORTDOCS) |
43 |
${MKDIR} ${EXAMPLESDIR} |
44 |
${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLESDIR} |
45 |
.endif |
46 |
|
33 |
|
47 |
.include <bsd.port.mk> |
34 |
.include <bsd.port.mk> |