diff options
author | rh <rh@pkgsrc.org> | 2004-01-14 06:57:45 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2004-01-14 06:57:45 +0000 |
commit | a62ca4602760e9e0da487f71e0ccdecbf7d37a98 (patch) | |
tree | 5ffb1a61fc3d3a38564ae47c71fbbbe418ec26c2 /mk/bsd.pkg.mk | |
parent | 460854dcb57de23ac879243b58f2293fdaf8f97a (diff) | |
download | pkgsrc-a62ca4602760e9e0da487f71e0ccdecbf7d37a98.tar.gz |
Add *RECOMMENDED variables as discussed on tech-pkg@ to allow for a more
fine-grained distinction between required versions of pre-requisites
(DEPENDS) and versions that are recommended for security or library ABI
consistency reasons (RECOMMENDED).
The contents of ${RECOMMENDED} are added to DEPENDS unless
IGNORE_RECOMMENDED is set to YES, in which case a warning will be printed
and IGNORE_RECOMMENDED will be added to BUILD_DEFS.
Add a corresponding BUILDLINK_RECOMMENDED.<pkg> variable for use with
buildlink2 and buildlink3.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 99d5377b38d..32016454bc3 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1344 2004/01/13 00:40:25 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1345 2004/01/14 06:57:45 rh Exp $ # # This file is in the public domain. # @@ -406,6 +406,14 @@ MAKE_ENV+= LIBTOOL="${PKGLIBTOOL} ${LIBTOOL_FLAGS}" BUILD_DEPENDS+= gettext>=0.10.35nb1:../../devel/gettext .endif +.if defined(RECOMMENDED) +. if !empty(IGNORE_RECOMMENDED:M[nN][oO]) +DEPENDS+= ${RECOMMENDED} +. else +BUILD_DEFS+= IGNORE_RECOMMENDED +. endif +.endif + EXTRACT_COOKIE= ${WRKDIR}/.extract_done BUILDLINK_COOKIE= ${WRKDIR}/.buildlink_done CONFIGURE_COOKIE= ${WRKDIR}/.configure_done @@ -2480,6 +2488,11 @@ real-su-package: ${PLIST} ${DESCR} @${ECHO_MSG} "${_PKGSRC_IN}> Warning: ${PKGNAME} may not be made available through FTP:" @${ECHO_MSG} "${_PKGSRC_IN}> " ${NO_BIN_ON_FTP:Q} . endif +. if defined(RECOMMENDED) && !empty(IGNORE_RECOMMENDED:M[yY][eE][sS]) + @${ECHO_MSG} "${_PKGSRC_IN}> Warning: dependency recommendations are being ignored!" + @${ECHO_MSG} "${_PKGSRC_IN}> ${PKGNAME} should not be uploaded nor" + @${ECHO_MSG} "${_PKGSRC_IN}> otherwise be used as a binary package!" +. endif .endif # Some support rules for real-su-package |