2013-09-18 21:16:25 +00:00
# $FreeBSD$
#
# MAINTAINER: portmgr@FreeBSD.org
#
2018-01-09 07:40:55 +00:00
# Warnings for everyone
.for opt in ${ALL_OPTIONS : NDEBUG }
. i f d e f i n e d ( W I T H _ $ { o p t } )
WARNING += " WITH_ ${ opt } is unsupported, use WITH= ${ opt } on the command line, or one of these in /etc/make.conf, OPTIONS_SET+= ${ opt } to set it globally, or ${ OPTIONS_NAME } _SET+= ${ opt } for only this port. "
. e n d i f
. i f d e f i n e d ( W I T H O U T _ $ { o p t } )
WARNING += " WITHOUT_ ${ opt } is unsupported, use WITHOUT= ${ opt } on the command line, or one of these in /etc/make.conf, OPTIONS_UNSET+= ${ opt } to set it globally, or ${ OPTIONS_NAME } _UNSET+= ${ opt } for only this port. "
2013-12-13 11:30:02 +00:00
. e n d i f
2018-01-09 07:40:55 +00:00
. e n d f o r
2013-12-13 11:30:02 +00:00
2018-01-09 07:40:55 +00:00
ALL_UNSUPPORTED = WITHOUT_NLS NOPORTDOCS NOPORTEXAMPLES WITH_BDB_VER \
OVERRIDE_LINUX_BASE_PORT WITH_OPENSSL_PORT \
2018-01-21 10:51:29 +00:00
WITH_OPENSSL_BASE PYTHON_DEFAULT_VERSION \
PYTHON2_DEFAULT_VERSION PYTHON3_DEFAULT_VERSION
2018-01-09 07:40:55 +00:00
ALL_DEPRECATED =
ALL_NOTNEEDED = WITH_NEW_XORG WITHOUT_NEW_XORG WITH_KMS WITHOUT_KMS
WITHOUT_NLS_ALT = " OPTIONS_UNSET=NLS, or ${ OPTIONS_NAME } _UNSET+=NLS instead "
NOPORTDOCS_ALT = " OPTIONS_UNSET=DOCS, or ${ OPTIONS_NAME } _UNSET+=DOCS instead "
NOPORTEXAMPLES_ALT = " OPTIONS_UNSET=EXAMPLES, or ${ OPTIONS_NAME } _UNSET+=EXAMPLES instead "
WITH_BDB_VER_ALT = " DEFAULT_VERSIONS+=bdb= ${ WITH_BDB_VER } "
OVERRIDE_LINUX_BASE_PORT_ALT = " DEFAULT_VERSIONS+=linux= ${ OVERRIDE_LINUX_BASE_PORT } "
WITH_OPENSSL_PORT_ALT = " DEFAULT_VERSIONS+=ssl= ${ SSL_DEFAULT : Uopenssl } in your make.conf "
WITH_OPENSSL_BASE_ALT = "DEFAULT_VERSIONS+=ssl=base in your make.conf"
WITH_NEW_XORG_ALT = "removed and has no effect"
WITHOUT_NEW_XORG_ALT = ${ WITH_NEW_XORG_ALT }
WITH_MKS_ALT = "removed and has no effect"
WITHOUT_MKS_ALT = ${ WITH_MKS_ALT }
2018-01-21 10:51:29 +00:00
PYTHON_DEFAULT_VERSION_ALT = " DEFAULT_VERSIONS=python= ${ PYTHON_DEFAULT_VERSION : S /^python// } "
PYTHON2_DEFAULT_VERSION_ALT = " DEFAULT_VERSIONS=python2= ${ PYTHON2_DEFAULT_VERSION : S /^python// } "
PYTHON3_DEFAULT_VERSION_ALT = " DEFAULT_VERSIONS=python3= ${ PYTHON3_DEFAULT_VERSION : S /^python// } "
2018-01-09 07:40:55 +00:00
. f o r a i n $ { A L L _ D E P R E C A T E D }
. i f d e f i n e d ( $ { a } )
WARNING += " ${ a } is deprecated, please use ${ ${ a } _ALT } "
2014-12-22 23:04:17 +00:00
. e n d i f
2018-01-09 07:40:55 +00:00
. e n d f o r
2014-12-22 23:04:17 +00:00
2018-01-09 07:40:55 +00:00
. f o r a i n $ { A L L _ N O T N E E D E D }
. i f d e f i n e d ( $ { a } )
WARNING += " ${ a } is not needed: ${ ${ a } _REASON } "
2014-12-22 23:04:17 +00:00
. e n d i f
2018-01-09 07:40:55 +00:00
. e n d f o r
. f o r a i n $ { A L L _ U N S U P P O R T E D }
. i f d e f i n e d ( $ { a } )
ERROR += " ${ a } is unsupported, please use ${ ${ a } _ALT } "
. e n d i f
. e n d f o r
# Warnings only when DEVELOPER=yes
2014-12-22 23:04:17 +00:00
2016-12-25 12:46:14 +00:00
. i f e x i s t s ( $ { . C U R D I R } / . . / . . / M k / b s d . p o r t . m k )
.if ${.CURDIR : H :T } != ${PKGCATEGORY }
2015-04-04 05:35:19 +00:00
DEV_ERROR += "The first entry in CATEGORIES should be the directory where the port lives"
. e n d i f
2015-04-09 17:34:02 +00:00
. e l s e
2015-04-15 15:51:36 +00:00
DEV_WARNING += "Not validating first entry in CATEGORIES due to being outside of PORTSDIR. Please ensure this is proper when committing."
2015-04-09 17:34:02 +00:00
. e n d i f
2014-10-08 17:11:52 +00:00
2013-09-18 21:16:25 +00:00
. i f d e f i n e d ( U S E _ P E R L 5 ) & & ${USE_PERL5} = = yes
2013-09-18 22:13:34 +00:00
DEV_ERROR += "USE_PERL5=yes is unsupported, please use USES=perl5 instead"
2013-09-18 21:16:25 +00:00
. e n d i f
2013-12-02 16:56:42 +00:00
.if !empty(LIB_DEPENDS : M */../*)
DEV_ERROR += "LIB_DEPENDS contains unsupported relative path to dependency"
. e n d i f
.if !empty(RUN_DEPENDS : M */../*)
DEV_ERROR += "RUN_DEPENDS contains unsupported relative path to dependency"
. e n d i f
2013-09-18 21:30:53 +00:00
.if defined(USE_GNOME) && ${USE_GNOME : Mpkgconfig }
2013-09-18 22:13:34 +00:00
DEV_ERROR += "USE_GNOME=pkgconfig is unsupported, please use USES=pkgconfig"
2013-09-18 21:30:53 +00:00
. e n d i f
2013-09-23 13:42:48 +00:00
. i f d e f i n e d ( U S E _ Z O P E ) & & ${USE_ZOPE} = = yes
DEV_ERROR += "USE_ZOPE=yes is unsupported, please use USES=zope instead"
. e n d i f
2015-03-20 02:05:57 +00:00
. i f d e f i n e d ( U S E _ G I T H U B ) & & d e f i n e d ( G H _ C O M M I T )
2015-05-21 15:25:40 +00:00
DEV_ERROR += "GH_COMMIT is unsupported, please convert GHL-\>GH in MASTER_SITES and set GH_TAGNAME to tag or commit hash and remove GH_COMMIT"
2015-03-20 02:05:57 +00:00
. e n d i f
2013-09-18 21:30:53 +00:00
.if defined(USE_GNOME) && ${USE_GNOME : Mgnomehack }
2013-09-18 22:13:34 +00:00
DEV_WARNING += "USE_GNOME=gnomehack is deprecated, please use USES=pathfix"
2013-09-18 21:30:53 +00:00
. e n d i f
2013-10-04 14:35:20 +00:00
.if defined(USE_GNOME) && ${USE_GNOME : Mdesktopfileutils }
DEV_WARNING += "USE_GNOME=desktopfileutils is deprecated, please use USES=desktop-file-utils"
. e n d i f
2013-09-18 21:30:53 +00:00
.if defined(LIB_DEPENDS) && ${LIB_DEPENDS : Nlib *}
2015-03-20 07:05:00 +00:00
DEV_ERROR += "All LIB_DEPENDS should use the new format and start out with lib. \(libfoo.so vs foo.so\)"
2013-09-18 21:16:25 +00:00
. e n d i f
. i f d e f i n e d ( _ P R E M K I N C L U D E D )
2013-09-18 21:30:53 +00:00
DEV_ERROR += "you cannot include bsd.port[.pre].mk twice"
2013-09-18 21:16:25 +00:00
. e n d i f
2013-11-18 15:45:08 +00:00
2013-12-14 06:04:59 +00:00
. i f d e f i n e d ( L I C E N S E )
.if ${LICENSE : MBSD }
DEV_WARNING += "LICENSE must not contain BSD, instead use BSD[234]CLAUSE"
. e n d i f
2016-09-08 16:13:55 +00:00
. e l s e
DEV_WARNING += "Please set LICENSE for this port"
2013-12-14 06:04:59 +00:00
. e n d i f
2013-12-15 21:56:41 +00:00
. i f d e f i n e d ( U S E _ P Y D I S T U T I L S ) & & ${USE_PYDISTUTILS} = = "easy_install"
2014-07-08 16:14:33 +00:00
DEV_ERROR += "USE_PYDISTUTILS=easy_install is no longer supported, please use USE_PYDISTUTILS=yes"
2013-12-15 21:56:41 +00:00
. e n d i f
2013-12-16 12:52:18 +00:00
2014-08-14 17:04:30 +00:00
.if defined(USE_PYTHON) && (${USE_PYTHON} == "yes" || ${USE_PYTHON : C /[-0-9.+]*//} == "")
_PYTHON_VAL := ${ USE_PYTHON }
. i f ${_PYTHON_VAL} != "yes"
2015-01-07 17:22:07 +00:00
DEV_ERROR += " USE_PYTHON= ${ _PYTHON_VAL } is no longer supported, please use USES=python: ${ _PYTHON_VAL } "
2014-08-09 15:44:27 +00:00
. e l s e
2015-01-07 17:22:07 +00:00
DEV_ERROR += "USE_PYTHON=yes is no longer supported, please use USES=python"
2014-08-09 15:44:27 +00:00
. e n d i f
. e n d i f
. i f d e f i n e d ( U S E _ P Y T H O N _ R U N )
. i f ${USE_PYTHON_RUN} != "yes"
2015-01-07 17:22:07 +00:00
DEV_ERROR += " USE_PYTHON_RUN is no longer supported, please use USES=python: ${ USE_PYTHON_RUN } ,run "
2014-08-09 15:44:27 +00:00
. e l s e
2015-01-07 17:22:07 +00:00
DEV_ERROR += "USE_PYTHON_RUN is no longer supported, please use USES=python:run"
2014-08-09 15:44:27 +00:00
. e n d i f
. e n d i f
. i f d e f i n e d ( U S E _ P Y T H O N _ B U I L D )
. i f ${USE_PYTHON_BUILD} != "yes"
2015-01-07 17:22:07 +00:00
DEV_ERROR += " USE_PYTHON_BUILD is no longer supported, please use USES=python: ${ USE_PYTHON_BUILD } ,build "
2014-08-09 15:44:27 +00:00
. e l s e
2015-01-07 17:22:07 +00:00
DEV_ERROR += "USE_PYTHON_BUILD is no longer supported, please use USES=python:build"
2014-08-09 15:44:27 +00:00
. e n d i f
. e n d i f
2016-04-14 11:00:23 +00:00
.if defined(USE_RC_SUBR) && ${USE_RC_SUBR : tu } == YES
DEV_ERROR += "USE_RC_SUBR=yes has not been supported for a long time, remove it."
. e n d i f
2018-01-09 07:40:55 +00:00
. i f d e f i n e d ( U S E _ T C L ) | | d e f i n e d ( U S E _ T C L _ B U I L D ) | | d e f i n e d ( U S E _ T C L _ R U N ) | | d e f i n e d ( U S E _ T C L _ W R A P P E R ) | | \
defined( USE_TK) || defined( USE_TK_BUILD) || defined( USE_TK_RUN) || defined( USE_TK_WRAPPER)
DEV_ERROR += "USE_TCL and USE_TK are no longer supported, please use USES=tcl or USES=tk"
2016-04-27 20:19:16 +00:00
. e n d i f
2018-04-05 04:52:36 +00:00
.if defined(USE_FPC) && ${USE_FPC : tl } == "yes "
DEV_ERROR += "USE_FPC=yes is no longer supported, please use USES=fpc"
. e n d i f
2014-03-12 11:36:05 +00:00
SANITY_UNSUPPORTED = USE_OPENAL USE_FAM USE_MAKESELF USE_ZIP USE_LHA USE_CMAKE \
2014-03-12 11:07:55 +00:00
USE_READLINE USE_ICONV PERL_CONFIGURE PERL_MODBUILD \
USE_PERL5_BUILD USE_PERL5_RUN USE_DISPLAY USE_FUSE \
2014-10-08 10:08:24 +00:00
USE_GETTEXT USE_GMAKE USE_SCONS USE_DRUPAL NO_INSTALL_MANPAGES \
2015-01-07 17:22:07 +00:00
INSTALLS_SHLIB USE_PYDISTUTILS PYTHON_CONCURRENT_INSTALL \
2014-08-09 15:44:27 +00:00
PYDISTUTILS_AUTOPLIST PYTHON_PY3K_PLIST_HACK PYDISTUTILS_NOEGGINFO \
2015-08-17 14:20:40 +00:00
USE_PYTHON_PREFIX USE_BZIP2 USE_XZ USE_PGSQL NEED_ROOT \
2016-06-28 14:00:58 +00:00
UNIQUENAME LATEST_LINK USE_SQLITE USE_FIREBIRD USE_PHPEXT \
2017-03-15 14:59:50 +00:00
USE_ZENDEXT USE_PHP_BUILD USE_BDB PLIST_DIRSTRY USE_RCORDER \
2018-01-09 07:40:55 +00:00
USE_OPENSSL WANT_GNOME RUBYGEM_AUTOPLIST WANT_SDL INSTALLS_EGGINFO \
USE_DOS2UNIX NO_STAGE USE_RUBYGEMS USE_GHOSTSCRIPT \
2018-04-05 04:52:36 +00:00
USE_GHOSTSCRIPT_BUILD USE_GHOSTSCRIPT_RUN USE_AUTOTOOLS APACHE_PORT \
USE_FPC_RUN WANT_FPC_BASE WANT_FPC_ALL
2018-01-15 14:24:39 +00:00
SANITY_DEPRECATED = PYTHON_PKGNAMESUFFIX MLINKS \
2017-03-15 14:59:50 +00:00
USE_MYSQL WANT_MYSQL_VER \
2016-06-28 14:00:58 +00:00
USE_PHPIZE WANT_PHP_CLI WANT_PHP_CGI WANT_PHP_MOD \
2018-03-11 14:23:28 +00:00
WANT_PHP_WEB WANT_PHP_EMB PYDISTUTILS_INSTALLNOSINGLE \
USE_APACHE USE_APACHE_BUILD USE_APACHE_RUN
2018-01-09 07:40:55 +00:00
SANITY_NOTNEEDED = CMAKE_NINJA WX_UNICODE USE_KDEBASE_VER \
USE_KDELIBS_VER USE_QT_VER
. f o r a i n 1 2 3 4 5 6 7 8 9 L N
SANITY_DEPRECATED += MAN${ a }
MAN${a}_ALT = it more, obsoleted by staging
. e n d f o r
2014-03-12 11:07:55 +00:00
2015-04-19 18:16:40 +00:00
USE_AUTOTOOLS_ALT = USES = autoreconf and GNU_CONFIGURE = yes
2014-03-12 11:07:55 +00:00
USE_OPENAL_ALT = USES = openal
USE_FAM_ALT = USES = fam
USE_MAKESELF_ALT = USES = makeself
USE_ZIP_ALT = USES = zip
USE_LHA_ALT = USES = lha
USE_BZIP2_ALT = USES = tar:bzip2
2014-03-13 13:54:30 +00:00
USE_XZ_ALT = USES = tar:xz
2014-03-12 11:07:55 +00:00
USE_CMAKE_ALT = USES = cmake
USE_READLINE_ALT = USES = readline
USE_ICONV_ALT = USES = iconv
USE_GMAKE_ALT = USES = gmake
PERL_CONFIGURE_ALT = USES = perl5 along with USE_PERL5 = configure
PERL_MODBUILD_ALT = USES = perl5 along with USE_PERL5 = modbuild
USE_PERL5_BUILD_ALT = USES = perl5 along with USE_PERL5 = build
USE_PERL5_RUN_ALT = USES = perl5 along with USE_PERL5 = run
USE_DISPLAY_ALT = USES = display
USE_FUSE_ALT = USES = fuse
USE_GETTEXT_ALT = USES = gettext
USE_SCONS_ALT = USES = scons
2014-06-18 12:23:22 +00:00
USE_DRUPAL_ALT = USES = drupal
2014-08-14 17:04:30 +00:00
USE_PYDISTUTILS_ALT = USE_PYTHON = distutils
2015-04-07 12:25:28 +00:00
USE_PGSQL_ALT = USES = pgsql
2014-10-08 10:08:24 +00:00
INSTALLS_SHLIB_ALT = USE_LDCONFIG
2015-05-04 08:53:20 +00:00
NEED_ROOT_ALT = USES = fakeroot or USES = uidfix
2014-08-14 17:04:30 +00:00
PYTHON_CONCURRENT_INSTALL_ALT = USE_PYTHON = concurrent
PYDISTUTILS_AUTOPLIST_ALT = USE_PYTHON = autoplist
PYTHON_PY3K_PLIST_HACK_ALT = USE_PYTHON = py3kplist
PYDISTUTILS_NOEGGINFO_ALT = USE_PYTHON = noegginfo
USE_PYTHON_PREFIX_ALT = USE_PYTHON = pythonprefix
2014-08-09 15:44:27 +00:00
PYTHON_PKGNAMESUFFIX_ALT = PYTHON_PKGNAMEPREFIX
2014-08-12 16:24:27 +00:00
NO_INSTALL_MANPAGES_ALT = USES = imake:noman
2015-08-17 14:20:40 +00:00
UNIQUENAME_ALT = PKGBASE
LATEST_LINK_ALT = PKGBASE
2017-06-25 21:07:58 +00:00
CMAKE_NINJA_REASON = Now the ninja generator is the default
2015-09-16 21:01:05 +00:00
WX_UNICODE_REASON = Now no-op as only unicode is supported now
2015-10-10 21:24:22 +00:00
PLIST_DIRSTRY_ALT = PLIST_DIRS
2016-01-10 16:15:29 +00:00
USE_SQLITE_ALT = USES = sqlite
USE_FIREBIRD_ALT = USES = firebird
2016-04-25 16:17:19 +00:00
USE_BDB_ALT = USES = bdb:${ USE_BDB }
2016-04-25 16:17:31 +00:00
USE_MYSQL_ALT = USES = mysql:${ USE_MYSQL }
WANT_MYSQL_VER_ALT = USES = mysql:${ WANT_MYSQL_VER }
2016-06-27 11:31:10 +00:00
USE_OPENSSL_ALT = USES = ssl
2016-06-28 13:57:37 +00:00
USE_PHPIZE_ALT = USES = php:phpize
USE_PHPEXT_ALT = USES = php:ext
USE_ZENDEXT_ALT = USES = php:zend
USE_PHP_BUILD_ALT = USES = php:build
WANT_PHP_CLI_ALT = USES = php:cli
WANT_PHP_CGI_ALT = USES = php:cgi
WANT_PHP_MOD_ALT = USES = php:mod
WANT_PHP_WEB_ALT = USES = php:web
WANT_PHP_EMB_ALT = USES = php:embed
2017-03-13 17:44:03 +00:00
USE_RCORDER_ALT = USE_RC_SUBR = ${ USE_RCORDER }
2017-10-12 15:57:51 +00:00
WANT_GNOME_ALT = USES = gnome
2018-01-09 07:40:55 +00:00
MLINKS_ALT = it no more
USE_DOS2UNIX_ALT = USES = dos2unix
PYDISTUTILS_INSTALLNOSINGLE_ALT = it no more
INSTALLS_EGGINFO_ALT = an entry in the plist
WANT_SDL_ALT = USE_SDL for SDL directly, if you need optional dependency, use options
RUBYGEM_AUTOPLIST_ALT = USES = gem
USE_RUBYGEMS_ALT = USES = gem
2018-01-09 11:45:22 +00:00
USE_GHOSTSCRIPT_ALT = USES = ghostscript
USE_GHOSTSCRIPT_BUILD_ALT = USES = ghostscript
USE_GHOSTSCRIPT_RUN_ALT = USES = ghostscript
2018-01-09 07:40:55 +00:00
NO_STAGE_ALT = https://wiki.freebsd.org/ports/StageDir to convert your port to staging
2018-03-11 14:23:28 +00:00
USE_APACHE_ALT = USES = apache:${ USE_APACHE : C /2(0-9)/2. \1 /g }
USE_APACHE_BUILD_ALT = USES = apache:build,${ USE_APACHE_BUILD : C /2(0-9)/2. \1 /g }
USE_APACHE_RUN_ALT = USES = apache:run,${ USE_APACHE_RUN : C /2(0-9)/2. \1 /g }
APACHE_PORT_ALT = DEFAULT_VERSIONS += apache = ${ APACHE_PORT : S /www \/ apache // : C /2(0-9)/2. \1 / }
2018-04-05 04:52:36 +00:00
USE_FPC_RUN_ALT = USES = fpc:run
WANT_FPC_BASE_ALT = USES = fpc:base
WANT_FPC_ALL_ALT = USES = fpc:all
2014-03-12 11:07:55 +00:00
2014-03-12 11:36:05 +00:00
. f o r a i n $ { S A N I T Y _ D E P R E C A T E D }
2014-03-12 11:07:55 +00:00
. i f d e f i n e d ( $ { a } )
DEV_WARNING += " ${ a } is deprecated, please use ${ ${ a } _ALT } "
2014-03-12 09:17:06 +00:00
. e n d i f
2014-03-12 11:07:55 +00:00
. e n d f o r
2014-03-12 09:17:06 +00:00
2015-09-16 21:01:05 +00:00
. f o r a i n $ { S A N I T Y _ N O T N E E D E D }
. i f d e f i n e d ( $ { a } )
DEV_WARNING += " ${ a } is not needed: ${ ${ a } _REASON } "
. e n d i f
. e n d f o r
2014-03-12 11:36:05 +00:00
. f o r a i n $ { S A N I T Y _ U N S U P P O R T E D }
2014-03-12 11:07:55 +00:00
. i f d e f i n e d ( $ { a } )
DEV_ERROR += " ${ a } is unsupported, please use ${ ${ a } _ALT } "
2014-03-12 09:17:06 +00:00
. e n d i f
2014-03-12 11:07:55 +00:00
. e n d f o r