summaryrefslogtreecommitdiff
path: root/devel/pharmacy/Makefile
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-11-15 20:37:04 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-11-15 20:37:04 +0000
commit3dfcb69b7713730d22282332e61d19042167992f (patch)
tree14ba4292ad28106c8850a8687b0478783ab3362c /devel/pharmacy/Makefile
parentFix plist (diff)
unPERLify, and use ${FIND} and ${XARGS} where appropriate.
PR: 48253 Submitted by: Simon 'portlint' Schubert <corecode@corecode.ath.cx>
Notes
Notes: svn path=/head/; revision=94052
Diffstat (limited to 'devel/pharmacy/Makefile')
-rw-r--r--devel/pharmacy/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/devel/pharmacy/Makefile b/devel/pharmacy/Makefile
index 3878e2bf645a..72e42fc84906 100644
--- a/devel/pharmacy/Makefile
+++ b/devel/pharmacy/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= jedgar@FreeBSD.org
COMMENT= GNOME frontend for CVS
USE_X_PREFIX= yes
+USE_REINPLACE= yes
USE_GMAKE= yes
USE_GNOME= yes
GNU_CONFIGURE= yes
@@ -22,12 +23,12 @@ CONFIGURE_ENV+= CPPCFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
- s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
- s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
- s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
- @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
- 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|\(DATADIRNAME=\)lib|\1share|g ; \
+ s|USE_INCLUDED_LIBINTL=yes|#&|g ; \
+ s|\$$(top_builddir)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|\(\$$(datadir)/\)gnome/|\1|g ; \
+ s|\$$(datadir)/locale|$$(prefix)/share/locale|g'
.include <bsd.port.mk>