mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
e7b0f97788
Make lib/charset.alias a file only provided by converters/libiconv Create a new USES: charsetfix, that will modify in post patch the Makefile.in to prevent a port from modifying/overwritting the charset.alias file during make install. Prevent devel/gettext from installing that files. Fix a couple of ports that actually touch charset.alias during the build phase. Based on a patch by ale (http://lists.freebsd.org/pipermail/freebsd-gnome/2012-October/027747.html) Approved by: kwm (gnome) Exp-run by: miwi
30 lines
738 B
Makefile
30 lines
738 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
|
|
|
|
post-patch: charsetfix-post-patch
|
|
|
|
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
|