mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Drop PERL for SED
This commit is contained in:
parent
ed5eb06604
commit
54bccbb5b1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61689
@ -25,11 +25,15 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib"
|
||||
CFLAGS+= -g
|
||||
PLIST_SUB= DOCDIR=share/doc/${PORTNAME}
|
||||
MODIFY= Makefile.in data/Makefile.in
|
||||
|
||||
pre-patch:
|
||||
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
||||
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
|
||||
s|\$\(prefix\)/share/|\$\(datadir\)/|g'
|
||||
.for i in ${MODIFY}
|
||||
@${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.sed
|
||||
${SED} -e 's=$$(datadir)/gnome/=$$(datadir)/=g' \
|
||||
-e 's=$$(prefix)/share/=$$(datadir)/=g' \
|
||||
${WRKSRC}/${i}.sed > ${WRKSRC}/${i}
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
Loading…
Reference in New Issue
Block a user