1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

- Remove USE_FAM, it has been replaced by USES=fam

- Add a developer error if it is set

Approved by:	portmgr (bapt)
This commit is contained in:
Antoine Brodin 2014-01-05 13:33:37 +00:00
parent 795711ff1b
commit 3e57d15fbe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338770
2 changed files with 4 additions and 46 deletions

View File

@ -385,12 +385,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# - If set, the system should use OpenLDAP libraries
# with SASL support.
##
# USE_FAM - If set, this port uses the File Alteration Monitor.
#
# WANT_FAM_SYSTEM
# - Legal values are: gamin (default),fam
# If set to an unknown value, the port is marked IGNORE.
##
# USE_AUTOTOOLS - If set, this port uses various GNU autotools
# (libtool, autoconf, autoheader, automake et al.)
# See bsd.autotools.mk for more details.
@ -1738,46 +1732,6 @@ MAKE_ENV+= ${b}="${${b}}"
.include "${PORTSDIR}/Mk/bsd.ldap.mk"
.endif
.if defined(USE_FAM)
DEFAULT_FAM_SYSTEM= gamin
# Currently supported FAM systems
FAM_SYSTEM_FAM= fam.0:${PORTSDIR}/devel/fam
FAM_SYSTEM_GAMIN= fam.0:${PORTSDIR}/devel/gamin
.if exists(${LOCALBASE}/libexec/gam_server)
_HAVE_FAM_SYSTEM= gamin
.elif exists(${LOCALBASE}/bin/fam)
_HAVE_FAM_SYSTEM= fam
.endif
.if defined(WANT_FAM_SYSTEM)
.if defined(WITH_FAM_SYSTEM) && ${WITH_FAM_SYSTEM}!=${WANT_FAM_SYSTEM}
IGNORE= wants to use ${WANT_FAM_SYSTEM} as its FAM system, while you wish to use ${WITH_FAM_SYSTEM}
.endif
FAM_SYSTEM= ${WANT_FAM_SYSTEM}
.elif defined(WITH_FAM_SYSTEM)
FAM_SYSTEM= ${WITH_FAM_SYSTEM}
.else
.if defined(_HAVE_FAM_SYSTEM)
FAM_SYSTEM= ${_HAVE_FAM_SYSTEM}
.else
FAM_SYSTEM= ${DEFAULT_FAM_SYSTEM}
.endif
.endif # WANT_FAM_SYSTEM
.if defined(_HAVE_FAM_SYSTEM)
.if ${_HAVE_FAM_SYSTEM}!= ${FAM_SYSTEM}
BROKEN= FAM system mismatch: ${_HAVE_FAM_SYSTEM} is installed, while desired FAM system is ${FAM_SYSTEM}
.endif
.endif
.if defined(FAM_SYSTEM_${FAM_SYSTEM:U})
LIB_DEPENDS+= ${FAM_SYSTEM_${FAM_SYSTEM:U}}
.else
IGNORE= cannot be built with unknown FAM system: ${FAM_SYSTEM}
.endif
.endif # USE_FAM
.if defined(USE_RC_SUBR) && ${USE_RC_SUBR:U} != "YES"
SUB_FILES+= ${USE_RC_SUBR}
.endif

View File

@ -157,3 +157,7 @@ DEV_WARNING+= "PYDISTUTILS_PKGNAME has no effect for USE_PYDISTUTILS=yes and PYD
.if defined(USE_OPENAL)
DEV_ERROR+= "USE_OPENAL is unsupported, please use USES=openal"
.endif
.if defined(USE_FAM)
DEV_ERROR+= "USE_FAM is unsupported, please use USES=fam"
.endif