1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/Mk/Uses/imake.mk
Tobias C. Berner aa25396790 framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.

These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible

Differential Revision:	https://reviews.freebsd.org/D35024
Reviewed by:		portmgr (rene, bapt)
2022-04-24 12:00:20 +02:00

49 lines
1.1 KiB
Makefile

# Provide support for imake based projects
#
# Feature: imake
# Usage: USES=imake
# Valid ARGS: env: do not define any target
# notall: do not pass -a to xmkmf
# noman: do not add install-man to
# INSTALL_TARGET
#
# MAINTAINER: x11@FreeBSD.org
.if !defined(_INCLUDE_USES_IMAKE_MK)
_INCLUDE_USES_IMAKE_MK= yes
. if ${imake_ARGS:Nnotall:Nenv:Nnoman}
IGNORE= USES=imake:${imake_ARGS:S/ /,/g} is not a valid argument
. endif
BUILD_DEPENDS+= imake:devel/imake
. if defined(USE_GCC)
IMAKECPP= ${CPP}
IMAKECPPFLAGS= -DCppCmd=${CPP} -DCcCmd=${CC} -DCplusplusCmd=${CXX}
. else
IMAKECPP= tradcpp
IMAKECPPFLAGS= -DCppCmd=tradcpp -DCcCmd=${CC} -DCplusplusCmd=${CXX}
BUILD_DEPENDS+= tradcpp:devel/tradcpp
. endif
MAKE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}"
CONFIGURE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}"
. if ! ${imake_ARGS:Mnotall}
XMKMF_ARGS+= -a
. endif
. if ! ${imake_ARGS:Menv}
. if !target(do-configure)
do-configure:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF} ${XMKMF_ARGS})
. endif
. if ! ${imake_ARGS:Mnoman}
LATE_INSTALL_ARGS= install.man
. endif
. endif
.endif