mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Add ${REINPLACE_CMD}, which will be used to get rid of depencency on perl
in current. Use it like the following: ${REINPLACE_CMD} -e "foo" -e "bar" ${WRKSRC}/somefile Approved by: portmgr
This commit is contained in:
parent
fb3735560d
commit
1c411ca96d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61234
@ -623,6 +623,13 @@ OSVERSION!= /usr/sbin/sysctl -n kern.osreldate
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# Special macro for doing in-place file editing using regexps
|
||||
.if ${OSVERSION} <= 500033
|
||||
REINPLACE_CMD?= ${PERL} -p -i.bak
|
||||
.else
|
||||
REINPLACE_CMD?= ${SED} -i.bak
|
||||
.endif
|
||||
|
||||
# Get the object format.
|
||||
.if !defined(PORTOBJFORMAT)
|
||||
PORTOBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
|
||||
|
Loading…
Reference in New Issue
Block a user