PERL -> REINPLACE_CMD

PR:		ports/39716 ports/39715 ports/39711
Submitted by:	Scott Flatman <sf@dsinw.com>
This commit is contained in:
Patrick Li 2002-06-23 20:56:43 +00:00
parent 3429beb3d6
commit cb1a5fa977
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61840
3 changed files with 8 additions and 5 deletions

View file

@ -19,6 +19,7 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinte
dvips:${PORTSDIR}/print/teTeX \
convert:${PORTSDIR}/graphics/ImageMagick
USE_REINPLACE= yes
USE_PYTHON= yes
NO_BUILD= yes
@ -26,9 +27,9 @@ MANCOMPRESSED= yes
MAN1= latex2slides.1
post-patch:
@${PERL} -pi -e "s,/usr,${PREFIX},g ; \
@${REINPLACE_CMD} -e "s,/usr,${PREFIX},g ; \
s,share/man,man,g" ${WRKSRC}/install
@${PERL} -pi -e "s,/usr/share,${PREFIX}/share,g" ${WRKSRC}/latex2slides
@${REINPLACE_CMD} -e "s,/usr/share,${PREFIX}/share,g" ${WRKSRC}/latex2slides
do-install:
@(cd ${WRKSRC} ; ${PYTHON_CMD} ./install)

View file

@ -14,13 +14,14 @@ MASTER_SITE_SUBDIR= euler
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_GTK= yes
WRKSRC= ${WRKDIR}/${DISTNAME:R}/source
MAKEFILE= makefile
ALL_TARGET= # empty
post-patch:
@${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g ; \
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g ; \
s,gtk-config,${GTK_CONFIG},g ; \
s,glib-config,${GLIB_CONFIG},g" ${WRKSRC}/${MAKEFILE}

View file

@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gtkextra:${PORTSDIR}/x11-toolkits/gtkextra \
gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea
USE_REINPLACE= yes
USE_GTK= yes
USE_MESA= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
@ -24,9 +25,9 @@ USE_GMAKE= yes
ALL_TARGET= # empty
post-patch:
@${PERL} -pi -e "s,^CC,#CC,g ; s,^CFLAGS,#CFLAGS,g ; \
@${REINPLACE_CMD} -e "s,^CC,#CC,g ; s,^CFLAGS,#CFLAGS,g ; \
s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/Makefile
@${PERL} -pi -e "s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/gdis.h
@${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/gdis.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdis ${PREFIX}/bin