aboutsummaryrefslogtreecommitdiff
path: root/cad/oregano
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2003-08-03 18:55:29 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2003-08-03 18:55:29 +0000
commitc1136f2f681fc0149ec8eaf0cd9ea4794d0746c1 (patch)
treeeea3d6eeacf1c155ff920350c329428efb04d3d6 /cad/oregano
parent40c35d281e7d430535a6fd9ef7cbfd7a47957ca9 (diff)
downloadports-c1136f2f681fc0149ec8eaf0cd9ea4794d0746c1.tar.gz
ports-c1136f2f681fc0149ec8eaf0cd9ea4794d0746c1.zip
Notes
Diffstat (limited to 'cad/oregano')
-rw-r--r--cad/oregano/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/cad/oregano/Makefile b/cad/oregano/Makefile
index a39806febacc..b0eb8eead004 100644
--- a/cad/oregano/Makefile
+++ b/cad/oregano/Makefile
@@ -16,15 +16,16 @@ COMMENT= Schematic capture and simulation of electrical circuits
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_GNOME= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
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/|\1|g ; \
+ s|\$$(datadir)/locale|$$(prefix)/share/locale|g'
.include <bsd.port.mk>