2013-09-18 21:16:25 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
#
|
|
|
|
|
2013-12-13 11:30:02 +00:00
|
|
|
.if defined(WITHOUT_NLS)
|
2013-12-26 16:25:52 +00:00
|
|
|
WARNING+= "WITHOUT_NLS is deprecated use OPTIONS_UNSET=NLS instead"
|
2013-12-13 11:30:02 +00:00
|
|
|
.endif
|
|
|
|
|
2014-12-22 23:04:17 +00:00
|
|
|
.if defined(WITH_NEW_XORG) || defined(WITHOUT_NEW_XORG)
|
|
|
|
WARNING+= "WITH_NEW_XORG and WITHOUT_NEW_XORG knobs were removed and have no effect"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_KMS) || defined(WITHOUT_KMS)
|
|
|
|
WARNING+= "WITH_KMS was removed and has no effect"
|
|
|
|
.endif
|
|
|
|
|
2015-04-15 15:49:01 +00:00
|
|
|
.if exists(${.CURDIR}/../../Mk/bsd.port.mk)
|
2015-04-04 05:35:19 +00:00
|
|
|
.if ${.CURDIR:H:T} != ${PKGCATEGORY}
|
|
|
|
DEV_ERROR+= "The first entry in CATEGORIES should be the directory where the port lives"
|
|
|
|
.endif
|
2015-04-09 17:34:02 +00:00
|
|
|
.else
|
|
|
|
WARNING+= "Not validating first entry in CATEGORIES due to being outside of PORTSDIR. Please ensure this is proper when committing."
|
|
|
|
.endif
|
2014-10-08 17:11:52 +00:00
|
|
|
|
2013-09-18 21:52:47 +00:00
|
|
|
#.if defined(WITHOUT_X11)
|
|
|
|
#WARNING+= "WITHOUT_X11 is deprecated use X11 option instead"
|
|
|
|
#.endif
|
2013-09-18 21:16:25 +00:00
|
|
|
|
2013-09-18 21:39:17 +00:00
|
|
|
#.if !defined(LICENSE)
|
|
|
|
#DEV_WARNING+= "No license is defined consider adding one"
|
|
|
|
#.endif
|
2013-09-18 21:16:25 +00:00
|
|
|
|
|
|
|
.if defined(USE_PERL5) && ${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
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_KDEBASE_VER)
|
2013-09-18 21:30:53 +00:00
|
|
|
DEV_ERROR+= "USE_KDEBASE_VER is unsupported"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_KDELIBS_VER)
|
2013-09-18 21:30:53 +00:00
|
|
|
DEV_ERROR+= "USE_KDELIBS_VER is unsupported"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_QT_VER)
|
2013-09-18 21:30:53 +00:00
|
|
|
DEV_ERROR+= "USE_QT_VER is unsupported"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
2013-12-02 16:56:42 +00:00
|
|
|
.if !empty(LIB_DEPENDS:M*/../*)
|
|
|
|
DEV_ERROR+= "LIB_DEPENDS contains unsupported relative path to dependency"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(RUN_DEPENDS:M*/../*)
|
|
|
|
DEV_ERROR+= "RUN_DEPENDS contains unsupported relative path to dependency"
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
.endif
|
|
|
|
|
2013-09-23 13:42:48 +00:00
|
|
|
.if defined(USE_ZOPE) && ${USE_ZOPE} == yes
|
|
|
|
DEV_ERROR+= "USE_ZOPE=yes is unsupported, please use USES=zope instead"
|
|
|
|
.endif
|
|
|
|
|
2015-03-20 02:05:57 +00:00
|
|
|
.if defined(USE_GITHUB) && defined(GH_COMMIT)
|
2015-03-20 02:07:01 +00:00
|
|
|
DEV_WARNING+= "GH_COMMIT is deprecated, 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
|
|
|
.endif
|
|
|
|
|
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
|
|
|
.endif
|
|
|
|
|
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"
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
.endif
|
|
|
|
|
2013-09-19 09:49:52 +00:00
|
|
|
.if defined(USE_TCL) || defined(USE_TCL_BUILD) || defined(USE_TCL_RUN) || defined(USE_TCL_WRAPPER) || \
|
|
|
|
defined(USE_TK) || defined(USE_TK_BUILD) || defined(USE_TK_RUN) || defined(USE_TK_WRAPPER)
|
2014-02-27 15:00:24 +00:00
|
|
|
DEV_ERROR+= "USE_TCL and USE_TK are no longer supported, please use USES=tcl or USES=tk"
|
2013-09-19 09:49:52 +00:00
|
|
|
.endif
|
|
|
|
|
2014-01-26 20:48:58 +00:00
|
|
|
# print warning if no reason given for NO_STAGE
|
2014-01-27 07:23:07 +00:00
|
|
|
.if defined(NO_STAGE)
|
2014-09-01 05:43:02 +00:00
|
|
|
DEV_ERROR+= "NO_STAGE is unsupported, convert port to stage directory:"
|
|
|
|
DEV_ERROR+= "https://wiki.freebsd.org/ports/StageDir"
|
2014-01-26 20:48:58 +00:00
|
|
|
.endif
|
|
|
|
|
2013-09-27 13:23:57 +00:00
|
|
|
.for a in 1 2 3 4 5 6 7 8 9 L N
|
|
|
|
.if defined(MAN${a})
|
|
|
|
DEV_WARNING+= "MAN${a} macros are deprecated when using stage directory"
|
|
|
|
.endif
|
|
|
|
.endfor
|
Add support for staging area in the ports tree
The ports tree is now staged by default. With pkgng the sequence hasn't
changed, the main difference is that creating package is now independent
from installing it. With pkg_install, the package is now created first
and make install, do install the package.
New macros:
- STAGEDIR: PATH to the directory where the port will be staged.
- NO_STAGE: Keep the old behaviour of the ports tree (aka no staging area)
Unsupported macro if NO_STAGE is not set:
- MAN* with staging man page compression and handling of hardlinks and
symlinks is automatically done in the stage. the manpages becomes then a
"normal" plist files and should be tracked in pkg-plist.
- MANCOMPRESSED the compress-man target is able to only compress when it
needed.
New target:
- stage: this installs everything into the stage directory
- makeplist: this will create a pkg-plist and print it to stdout. This is
a sample plist and it should always be _reviewed_ not directly used.
NOTE: with staging only what is in the plist will be installed, nothing more,
meaning a port staged cannot have leftovers exect directories left. It is
really important to double check the pkg-plist to make sure all the files
the maintainer want to package are in! make makeplist can help in that area.
The goal is to handle as quickly as possible a full removal of the NO_STAGE
support.
More features can be added once the full ports tree is converted to using the
staging area
Conversion notes:
- Remove NO_STAGE
- in {pre,do,post}-install
* Before any usage of ${PREFIX}, ${ETCDIR}, ${PORTSDIR}, ${PORTEXAMPLES}
prepend ${STAGEDIR}
* Remove any thing that is done by @exec or +INSTALL script it will be
done automatically when syncing packages
* Remove any code to show PKG-MESSAGE it will be done automatically when
syncing packages
* Directory creation should remain in post-install (in particular because
pkgng doesn't work like pkg_install in that area and pkgng ignores the
@exec mkdir but directly pack the directory even if empty)
- PORTDOCS/PORTEXAMPELS
To support PORTDOCS, PORTEXAMPLES most of the time there is no more need
for hacks. just add the right %%PORTDOCS%% or %%PORTEXAMPLES%% in your
plist then the given files from the stagedir will or will not sync
according to NOPORTDOCS and NOPORTEXAMPLES.
With hat: portmgr
Reviewed by: bdrewery
2013-09-23 05:56:35 +00:00
|
|
|
|
2014-09-01 05:43:02 +00:00
|
|
|
.if defined(MLINKS)
|
2013-09-27 13:23:57 +00:00
|
|
|
DEV_WARNING+= "MLINKS macros are deprecated when using stage directory"
|
Add support for staging area in the ports tree
The ports tree is now staged by default. With pkgng the sequence hasn't
changed, the main difference is that creating package is now independent
from installing it. With pkg_install, the package is now created first
and make install, do install the package.
New macros:
- STAGEDIR: PATH to the directory where the port will be staged.
- NO_STAGE: Keep the old behaviour of the ports tree (aka no staging area)
Unsupported macro if NO_STAGE is not set:
- MAN* with staging man page compression and handling of hardlinks and
symlinks is automatically done in the stage. the manpages becomes then a
"normal" plist files and should be tracked in pkg-plist.
- MANCOMPRESSED the compress-man target is able to only compress when it
needed.
New target:
- stage: this installs everything into the stage directory
- makeplist: this will create a pkg-plist and print it to stdout. This is
a sample plist and it should always be _reviewed_ not directly used.
NOTE: with staging only what is in the plist will be installed, nothing more,
meaning a port staged cannot have leftovers exect directories left. It is
really important to double check the pkg-plist to make sure all the files
the maintainer want to package are in! make makeplist can help in that area.
The goal is to handle as quickly as possible a full removal of the NO_STAGE
support.
More features can be added once the full ports tree is converted to using the
staging area
Conversion notes:
- Remove NO_STAGE
- in {pre,do,post}-install
* Before any usage of ${PREFIX}, ${ETCDIR}, ${PORTSDIR}, ${PORTEXAMPLES}
prepend ${STAGEDIR}
* Remove any thing that is done by @exec or +INSTALL script it will be
done automatically when syncing packages
* Remove any code to show PKG-MESSAGE it will be done automatically when
syncing packages
* Directory creation should remain in post-install (in particular because
pkgng doesn't work like pkg_install in that area and pkgng ignores the
@exec mkdir but directly pack the directory even if empty)
- PORTDOCS/PORTEXAMPELS
To support PORTDOCS, PORTEXAMPLES most of the time there is no more need
for hacks. just add the right %%PORTDOCS%% or %%PORTEXAMPLES%% in your
plist then the given files from the stagedir will or will not sync
according to NOPORTDOCS and NOPORTEXAMPLES.
With hat: portmgr
Reviewed by: bdrewery
2013-09-23 05:56:35 +00:00
|
|
|
.endif
|
|
|
|
|
2013-09-18 21:16:25 +00:00
|
|
|
.if defined(_PREMKINCLUDED)
|
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
|
|
|
.endif
|
2013-11-18 15:45:08 +00:00
|
|
|
|
|
|
|
.if defined(USE_DOS2UNIX)
|
2014-05-26 09:29:50 +00:00
|
|
|
DEV_ERROR+= "USE_DOS2UNIX is no longer supported, please use USES=dos2unix"
|
2013-11-18 15:45:08 +00:00
|
|
|
.endif
|
2013-12-14 06:04:59 +00:00
|
|
|
|
|
|
|
.if defined(LICENSE)
|
|
|
|
.if ${LICENSE:MBSD}
|
|
|
|
DEV_WARNING+= "LICENSE must not contain BSD, instead use BSD[234]CLAUSE"
|
|
|
|
.endif
|
|
|
|
.endif
|
2013-12-15 21:56:41 +00:00
|
|
|
|
|
|
|
.if defined(USE_PYDISTUTILS) && ${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
|
|
|
.endif
|
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}
|
|
|
|
.if ${_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
|
|
|
.else
|
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
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.if defined(USE_PYTHON_RUN)
|
|
|
|
.if ${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
|
|
|
.else
|
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
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.if defined(USE_PYTHON_BUILD)
|
|
|
|
.if ${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
|
|
|
.else
|
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
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(PYDISTUTILS_INSTALLNOSINGLE)
|
|
|
|
DEV_WARNING+= "PYDISTUTILS_INSTALLNOSINGLE is deprecated, please do not use it anymore"
|
|
|
|
.endif
|
|
|
|
|
2014-08-17 10:36:08 +00:00
|
|
|
.if defined(INSTALLS_EGGINFO)
|
2014-10-02 07:53:52 +00:00
|
|
|
DEV_ERROR+= "INSTALLS_EGGINFO is no longer supported, please add the entry directly to the plist"
|
2014-08-17 10:36:08 +00:00
|
|
|
.endif
|
|
|
|
|
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-04-07 12:25:28 +00:00
|
|
|
USE_PYTHON_PREFIX USE_BZIP2 USE_XZ USE_PGSQL
|
2015-04-07 12:13:52 +00:00
|
|
|
SANITY_DEPRECATED= PYTHON_PKGNAMESUFFIX
|
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
|
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
|
2014-03-12 11:07:55 +00:00
|
|
|
|
2014-03-12 11:36:05 +00:00
|
|
|
.for a in ${SANITY_DEPRECATED}
|
2014-03-12 11:07:55 +00:00
|
|
|
.if defined(${a})
|
|
|
|
DEV_WARNING+= "${a} is deprecated, please use ${${a}_ALT}"
|
2014-03-12 09:17:06 +00:00
|
|
|
.endif
|
2014-03-12 11:07:55 +00:00
|
|
|
.endfor
|
2014-03-12 09:17:06 +00:00
|
|
|
|
2014-03-12 11:36:05 +00:00
|
|
|
.for a in ${SANITY_UNSUPPORTED}
|
2014-03-12 11:07:55 +00:00
|
|
|
.if defined(${a})
|
|
|
|
DEV_ERROR+= "${a} is unsupported, please use ${${a}_ALT}"
|
2014-03-12 09:17:06 +00:00
|
|
|
.endif
|
2014-03-12 11:07:55 +00:00
|
|
|
.endfor
|