1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

perl -> reinplace

PR:		ports/47652
Submitted by:	Simon 'portlint' Schubert <corecode@corecode.ath.cx>
This commit is contained in:
Edwin Groothuis 2003-08-31 04:53:11 +00:00
parent 2c549745ae
commit 6751ed7d70
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88166
2 changed files with 5 additions and 3 deletions

View File

@ -18,13 +18,14 @@ COMMENT= SpaceChart is a star chart viewer for GNOME
LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext
USE_X_PREFIX= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_GNOME= gnomelibs
CONFIGURE_ARGS= --without-included-gettext --datadir=${PREFIX}/share
# trick it into using ports installed gettext
post-patch:
@${PERL} -pi -ne "s|(INTLLIBS =).*$$|\1-I${LOCALBASE}/lib -lintl|" \
@${REINPLACE_CMD} -e 's|\(INTLLIBS =\).*$$|\1-I${LOCALBASE}/lib -lintl|' \
${WRKSRC}/src/Makefile.in
pre-build:

View File

@ -14,6 +14,7 @@ MAINTAINER= pat@FreeBSD.org
COMMENT= 3-dimensional viewer for star charts
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_GNOME= gtk12
USE_XPM= yes
@ -23,10 +24,10 @@ MAKE_ENV= DATADIR="${DATADIR}" \
MAN1= starplot.1 starconvert.1
pre-patch:
@${PERL} -pi.orig -e 's|DATADIR|${DATADIR}|; s|DOCDIR|${DOCSDIR}|; \
@${REINPLACE_CMD} -e 's|DATADIR|${DATADIR}|; s|DOCDIR|${DOCSDIR}|; \
s|BINARYNAME|${PORTNAME}|; s|CONVERTNAME|starconvert|' \
${WRKSRC}/doc/man/*
@${PERL} -pi.orig -e 's|/usr/local/share/starplot|${DATADIR}|; \
@${REINPLACE_CMD} -e 's|/usr/local/share/starplot|${DATADIR}|; \
s|/usr/local/share/doc/starplot|${DOCSDIR}|' \
${WRKSRC}/gui/starplot.h