aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2003-02-19 22:14:36 +0800
committersobomax <sobomax@FreeBSD.org>2003-02-19 22:14:36 +0800
commitaf4830d9596040914d437bc1703807ac23b23791 (patch)
tree49d322846e9c3dbb6e3e672434c6dd86e7c9005b /misc
parent7413343288d995251eedbf1be5be44de9b7885ae (diff)
downloadfreebsd-ports-gnome-af4830d9596040914d437bc1703807ac23b23791.tar.gz
freebsd-ports-gnome-af4830d9596040914d437bc1703807ac23b23791.tar.zst
freebsd-ports-gnome-af4830d9596040914d437bc1703807ac23b23791.zip
Use USE_REINPLACE.
Diffstat (limited to 'misc')
-rw-r--r--misc/metatheme2/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/misc/metatheme2/Makefile b/misc/metatheme2/Makefile
index 35972d2b6890..756fb2008de0 100644
--- a/misc/metatheme2/Makefile
+++ b/misc/metatheme2/Makefile
@@ -21,6 +21,7 @@ LIB_DEPENDS= gnomeui-2.200:${PORTSDIR}/x11-toolkits/libgnomeui
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
+USE_REINPLACE= yes
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \
@@ -31,14 +32,14 @@ CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PLIST_SUB= VERSION=${PORTVERSION}
pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
- 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+ @find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} -e \
+ 's|[(]datadir[)]/gnome/|(datadir)/|g ; \
+ s|[(]datadir[)]/locale|(prefix)/share/locale|g'
post-configure:
- @find ${WRKSRC}/plugins -name "*.c" | xargs ${PERL} -pi -e \
+ @find ${WRKSRC}/plugins -name "*.c" | xargs ${REINPLACE_CMD} -e \
's|%%X11BASE%%|${X11BASE}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g'
.include <bsd.port.mk>