svn commit: r396547 - in head/textproc: . smi
Jan Beich
jbeich at FreeBSD.org
Thu Sep 10 01:37:57 UTC 2015
Jason Unovitch <junovitch at FreeBSD.org> writes:
> +post-patch:
> + ${REINPLACE_CMD} -e 's|^CC = .*|CC = ${CC}|' \
CC is defined by default to a sane value in both GNU and BSD make.
One can do '/^CC/d' but see below for better way.
> + -e 's|^PREFIX = .*|PREFlX = ${PREFIX}|' \
^^^
Typo: l .vs I. It still works because PREFIX is also passed via MAKE_ENV.
> + -e 's|^MANPREFIX = .*|MANPREFIX = ${MANPREFIX}|' \
> + ${WRKSRC}/config.mk
If possible try to avoid patching makefiles if overriding a few
variables is enough. For one, your entire post-patch can be:
MAKE_ARGS= CC="${CC}" PREFIX="${PREFIX}" MANPREFIX="${MANPREFIX}"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 602 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20150910/76402e7c/attachment.bin>
More information about the svn-ports-all
mailing list