mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
5b4f2ad658
make things a bit more consistent. Approved by: portmgr (bapt)
27 lines
700 B
Makefile
27 lines
700 B
Makefile
# $FreeBSD$
|
|
#
|
|
# Lookup in Makefile.in to prevent a package from installing/modifying charset.alias
|
|
#
|
|
# Feature: charsetfix
|
|
# Usage: USES=charsetfix
|
|
# Valid ARGS: does not require args
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
.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
|