From 45c4096ac3bafb84ac0896e90df7400532506572 Mon Sep 17 00:00:00 2001 From: perky Date: Tue, 25 Jun 2002 19:19:54 +0000 Subject: Use REINPLACE_CMD as well as USE_REINPLACE --- graphics/py-gd/Makefile | 8 +++++--- graphics/py-paint/Makefile | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'graphics') diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile index 055717ac67bc..a57873efa5c5 100644 --- a/graphics/py-gd/Makefile +++ b/graphics/py-gd/Makefile @@ -16,6 +16,7 @@ MAINTAINER= perky@FreeBSD.org LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd USE_PYTHON= yes +USE_REINPLACE= yes PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \ EXAMPLE_DIR=${EXAMPLE_DIR:S,^${PREFIX}/,,g} EXAMPLE_DIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} @@ -25,10 +26,11 @@ USE_XPM= yes .endif post-patch: - ${PERL} -pi -e 's,^(gd.*)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g; s,-lttf,,g; s,/usr/X11R6,${X11BASE},g;' \ - ${WRKSRC}/Setup + ${REINPLACE_CMD} -e 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd\ + -L${LOCALBASE}/lib,g' -e 's,-lttf,,g' \ + -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/Setup .if defined(WITHOUT_X11) - ${PERL} -pi -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup + ${REINPLACE_CMD} -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup .endif pre-build: diff --git a/graphics/py-paint/Makefile b/graphics/py-paint/Makefile index 60d56b2cef1a..e707106e2bb0 100644 --- a/graphics/py-paint/Makefile +++ b/graphics/py-paint/Makefile @@ -20,11 +20,13 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ USE_FREETYPE= yes USE_PYTHON= yes USE_PYDISTUTILS= yes +USE_REINPLACE= yes PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \ SHARE_SUBDIR=${SHARE_SUBDIR} SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} -INC_DIRS= ["${LOCALBASE}/include/freetype1","${LOCALBASE}/include","${X11BASE}/include","${LOCALBASE}/include/freetype1/freetype"] +INC_DIRS= ["${LOCALBASE}/include/freetype1","${LOCALBASE}/include", \ + "${X11BASE}/include","${LOCALBASE}/include/freetype1/freetype"] LIB_DIRS= ["${LOCALBASE}/lib","${X11BASE}/lib"] TMPSUFFIX= .temp EXAMPLES= test_bar.py test_paint.py testpie.py @@ -32,8 +34,8 @@ EXAMPLES= test_bar.py test_paint.py testpie.py .include post-patch: - ${PERL} -pi -e 's@^(.*libraries.*)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' \ - ${WRKSRC}/setup.py + ${REINPLACE_CMD} -e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},\ + library_dirs=${LIB_DIRS},@g' ${WRKSRC}/setup.py .if !defined(NOPORTDOCS) post-install: -- cgit