View | Details | Raw Unified | Return to bug 37084
Collapse All | Expand All

(-)py-gd/Makefile (-4 / +3 lines)
Lines 16-22 Link Here
16
LIB_DEPENDS=	gd.2:${PORTSDIR}/graphics/gd
16
LIB_DEPENDS=	gd.2:${PORTSDIR}/graphics/gd
17
17
18
USE_PYTHON=	yes
18
USE_PYTHON=	yes
19
EXCMD=		/usr/bin/ex
20
PLIST_SUB=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
19
PLIST_SUB=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
21
		EXAMPLE_DIR=${EXAMPLE_DIR:S,^${PREFIX}/,,g}
20
		EXAMPLE_DIR=${EXAMPLE_DIR:S,^${PREFIX}/,,g}
22
EXAMPLE_DIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
21
EXAMPLE_DIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
Lines 26-35 Link Here
26
.endif
25
.endif
27
26
28
post-patch:
27
post-patch:
29
	${EXCMD} -c 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd,g|wq!' ${WRKSRC}/Setup
28
	${PERL} -pi -e 's,^(gd.*)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g; s,-lttf,,g; s,/usr/X11R6,${X11BASE},g;' \
30
	${EXCMD} -c 's,-lttf,,g|wq!' ${WRKSRC}/Setup
29
		${WRKSRC}/Setup
31
.if defined(WITHOUT_X11)
30
.if defined(WITHOUT_X11)
32
	${EXCMD} -c 's,-lX11 -lXpm,,g|wq!' ${WRKSRC}/Setup
31
	${PERL} -pi -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
33
.endif
32
.endif
34
33
35
pre-build:
34
pre-build:

Return to bug 37084