aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-08-13 00:24:27 +0800
committermat <mat@FreeBSD.org>2014-08-13 00:24:27 +0800
commitc60cfc07032cca9a18240cdd1466dcee7262f94b (patch)
tree79bfb0862cc8b90d495f93b77a2e1f0f450d56a0 /Mk
parentcd5f07047dd28f90fde390baaf84c4fa1d89f8c2 (diff)
downloadfreebsd-ports-gnome-c60cfc07032cca9a18240cdd1466dcee7262f94b.tar.gz
freebsd-ports-gnome-c60cfc07032cca9a18240cdd1466dcee7262f94b.tar.zst
freebsd-ports-gnome-c60cfc07032cca9a18240cdd1466dcee7262f94b.zip
Add a USES=imake:noman to make NO_INSTALL_MANPAGES go away.
CR: D594 Reviewed by: antoine Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/imake.mk23
-rw-r--r--Mk/bsd.port.mk10
-rw-r--r--Mk/bsd.sanity.mk4
3 files changed, 19 insertions, 18 deletions
diff --git a/Mk/Uses/imake.mk b/Mk/Uses/imake.mk
index 22f5dd573831..f584be51a238 100644
--- a/Mk/Uses/imake.mk
+++ b/Mk/Uses/imake.mk
@@ -6,6 +6,8 @@
# 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
@@ -13,16 +15,19 @@
_INCLUDE_USES_IMAKE_MK= yes
.if defined(imake_ARGS)
-.if ${imake_ARGS} == env
-IMAKE_ENV_ONLY= yes
-.elif ${imake_ARGS} == notall
-IMAKE_NOTALL= yes
+imake_ARGS:= ${imake_ARGS:S/,/ /g}
+.if ${imake_ARGS:Nnotall:Nenv:Nnoman}
+IGNORE= USES=imake:${imake_ARGS:S/ /,/g} is not a valid argument
+.endif
.else
-IGNORE= USES=imake ${imake_ARGS} is not a valid argument
+imake_ARGS=
.endif
+
+.if defined(NO_INSTALL_MANPAGES)
+imake_ARGS+= noman
.endif
-.if !defined(NO_INSTALL_MANPAGES)
+.if ! ${imake_ARGS:Mnoman}
MANCOMPRESSED?= yes
.endif
@@ -39,17 +44,17 @@ BUILD_DEPENDS+= tradcpp:${PORTSDIR}/devel/tradcpp
MAKE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}"
CONFIGURE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}"
-.if !defined(IMAKE_NOTALL)
+.if ! ${imake_ARGS:Mnotall}
XMKMF_ARGS+= -a
.endif
-.if !defined(IMAKE_ENV_ONLY)
+.if ! ${imake_ARGS:Menv}
.if !target(do-configure)
do-configure:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF} ${XMKMF_ARGS})
.endif
-.if !defined(NO_INSTALL_MANPAGES)
+.if ! ${imake_ARGS:Mnoman}
LATE_INSTALL_ARGS= install.man
.endif
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index d864c928dfd7..44ec83aa8cf4 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -587,12 +587,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# Installs all directories and files from ${WRKSRC}/doc
# to ${DOCSDIR} except sed backup files.
#
-# Boolean to control whether manpages are installed.
-#
-# NO_INSTALL_MANPAGES
-# - If set, this port doesn't want to install any manpages.
-# Default: not set, i.e. manpages are installed by default.
-#
# Set the following to specify all manpages that your port installs.
# These manpages will be automatically listed in ${PLIST}. Depending
# on the setting of NO_MANCOMPRESS, the make rules will compress the
@@ -629,8 +623,8 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# "maybe". "yes" means manpages are installed
# compressed; "no" means they are not; "maybe" means
# it changes depending on the value of NO_MANCOMPRESS.
-# Default: "yes" if USES=imake is set and NO_INSTALL_MANPAGES
-# is not set, and "no" otherwise.
+# Default: "yes" if USES=imake is set without the noman
+# argument, and "no" otherwise.
#
# Set the following to specify all .info files your port installs.
#
diff --git a/Mk/bsd.sanity.mk b/Mk/bsd.sanity.mk
index fc9a40f808a3..301a3968b9d5 100644
--- a/Mk/bsd.sanity.mk
+++ b/Mk/bsd.sanity.mk
@@ -150,7 +150,8 @@ SANITY_UNSUPPORTED= USE_OPENAL USE_FAM USE_MAKESELF USE_ZIP USE_LHA USE_CMAKE \
USE_GETTEXT USE_GMAKE USE_SCONS USE_DRUPAL
SANITY_DEPRECATED= USE_XZ USE_BZIP2 USE_PYDISTUTILS PYTHON_CONCURRENT_INSTALL \
PYDISTUTILS_AUTOPLIST PYTHON_PY3K_PLIST_HACK PYDISTUTILS_NOEGGINFO \
- PYTHON_MASTER_SITES USE_PYTHON_PREFIX PYTHON_PKGNAMESUFFIX
+ PYTHON_MASTER_SITES USE_PYTHON_PREFIX PYTHON_PKGNAMESUFFIX \
+ NO_INSTALL_MANPAGES
USE_OPENAL_ALT= USES=openal
USE_FAM_ALT= USES=fam
@@ -180,6 +181,7 @@ PYDISTUTILS_NOEGGINFO_ALT= PYTHON_FEATURES=noegginfo
USE_PYTHON_PREFIX_ALT= PYTHON_FEATURES=pythonprefix
PYTHON_PKGNAMESUFFIX_ALT= PYTHON_PKGNAMEPREFIX
PYTHON_MASTER_SITES_ALT= MASTER_SITE_PYTHON
+NO_INSTALL_MANPAGES_ALT= USES=imake:noman
.for a in ${SANITY_DEPRECATED}
.if defined(${a})