mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Fix the conditional post-patch target to look in ${WRKSRC}, rather
than in the hardcoded hylafax-4.1 I goofed, when I implemented this back then, and the upgrader did not notice, because this is only invoked, when PREFIX is different from /usr/local Predicate USE_REINPLACE on PREFIX not being /usr/local too -- there is no need to demand the new sed otherwise. Set the REINPLACE_ARGS to -i "". I don't know, why this is not a default...
This commit is contained in:
parent
1848876465
commit
2f1e660510
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65514
@ -36,7 +36,6 @@ CONFIGURE_ARGS+=--nointeractive
|
||||
.endif
|
||||
MAKE_ARGS+= OPTIMIZER="" -EOPTIMIZER
|
||||
|
||||
USE_REINPLACE= yes
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ENV= ENVOPTS="${CFLAGS}"
|
||||
|
||||
@ -75,10 +74,12 @@ post-install:
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${LOCALBASE} != /usr/local
|
||||
USE_REINPLACE= yes
|
||||
REINPLACE_ARGS= -i ""
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's^/usr/local^${LOCALBASE}^g' \
|
||||
`find work/hylafax-4.1 -type f -print0 | \
|
||||
xargs -0 fgrep -l --mmap /usr/local`
|
||||
`find ${WRKSRC} -type f -print0 | \
|
||||
xargs -0 ${GREP} -F -l --mmap /usr/local`
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user