1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/Mk/Uses/charsetfix.mk
Baptiste Daroussin 11e8713e2b Mark all targets defines in _SEQ and .ORDER has .PHONY which they all should be
If one day we are no adding a target actually correspond to an actual file, simply adding
the name of the target to the NOTPHONY will make it work as expected
2014-01-04 00:02:08 +00:00

28 lines
703 B
Makefile

# $FreeBSD$
#
# Lookup in Makefile.in to prevent a package from installing/modifying charset.alias
#
# MAINTAINER: portmgr@FreeBSD.org
#
# Feature: charsetfix
# Usage: USES=charsetfix
# Valid ARGS: does not require args
#
#
.if !defined(_INCLUDE_USES_CHARSETFIX_MK)
_INCLUDE_USES_CHARSETFIX_MK= yes
.if defined(charsetfix_ARGS)
IGNORE= USES=charsetfix does not require args
.endif
CHARSETFIX_MAKEFILEIN?= Makefile.in
charsetfix-post-patch:
@${FIND} ${WRKSRC} -name "${CHARSETFIX_MAKEFILEIN}" -type f | ${XARGS} ${REINPLACE_CMD} \
-e 's|need_charset_alias=true|need_charset_alias=false|g ; \
s|test -f $$(charset_alias)|false|g ;\
s|test -f $$(DESTDIR)$$(libdir)/charset.alias|false|g'
.endif