fe837ee6c6
- Loop over USES twice, once to define all *_ARGS variables and once to include Uses/*.mk. This allows all Uses/*.mk to examine arguments given to other USES entries. - Always define *_ARGS (possibly empty) and replace commas with spaces. Similar for _USES_POST. Adjust all Uses/*.mk: - defined(u_ARGS) becomes !empty(u_ARGS) - Eliminate helper variables like _*_ARGS=${*_ARGS:C/,/ /g} - Some Uses/*.mk used ":" as argument separator instead of ",", but no port used this form - Uses/cran.mk: remove unused variable VALID_ARGS and USES+=fortran which has no effect - Uses/twisted.mk: simplify handling of the case where neither "build" nor "run" arguments have been specified PR: 193931 Exp-run by: antoine Approved by: portmgr (antoine)
26 lines
699 B
Makefile
26 lines
699 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 !empty(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
|