mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
5b4f2ad658
make things a bit more consistent. Approved by: portmgr (bapt)
59 lines
1.2 KiB
Makefile
59 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
#
|
|
# 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
|
|
#
|
|
# MAINTAINER: x11@FreeBSD.org
|
|
|
|
.if !defined(_INCLUDE_USES_IMAKE_MK)
|
|
_INCLUDE_USES_IMAKE_MK= yes
|
|
|
|
.if defined(imake_ARGS)
|
|
.if ${imake_ARGS} == env
|
|
IMAKE_ENV_ONLY= yes
|
|
.elif ${imake_ARGS} == notall
|
|
IMAKE_NOTALL= yes
|
|
.else
|
|
IGNORE= USES=imake ${imake_ARGS} is not a valid argument
|
|
.endif
|
|
.endif
|
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
MANCOMPRESSED?= yes
|
|
.endif
|
|
|
|
BUILD_DEPENDS+= imake:${PORTSDIR}/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:${PORTSDIR}/devel/tradcpp
|
|
.endif
|
|
MAKE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}"
|
|
CONFIGURE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}"
|
|
|
|
.if !defined(IMAKE_NOTALL)
|
|
XMKMF_ARGS+= -a
|
|
.endif
|
|
|
|
.if !defined(IMAKE_ENV_ONLY)
|
|
.if !target(do-configure)
|
|
do-configure:
|
|
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF} ${XMKMF_ARGS})
|
|
.endif
|
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
LATE_INSTALL_ARGS= install.man
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif
|