2013-09-18 21:16:25 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
#
|
|
|
|
|
|
|
|
.if defined(USE_GMAKE)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_WARNING+= "USE_GMAKE is deprecated, consider using USES=gmake"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
2013-09-18 21:52:47 +00:00
|
|
|
#.if defined(WITHOUT_NLS)
|
|
|
|
#WARNING+= "WITHOUT_NLS is deprecated use NLS option instead"
|
|
|
|
#.endif
|
|
|
|
#
|
|
|
|
#.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(PERL_CONFIGURE)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "PERL_CONFIGURE is unsupported, please use USES=perl5 along with USE_PERL5=configure"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(PERL_MODBUILD)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "PERL_MODBUILD is unsupported, please use USES=perl5 along with USE_PERL5=modbuild"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_PERL5_BUILD)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "USE_PERL5_BUILD is unsupported, please use USES=perl5 along with USE_PERL5=build"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_PERL5_RUN)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "USE_PERL5_RUN is unsupported, please use USES=perl5 along with USE_PERL5=run"
|
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
|
|
|
|
|
|
|
|
.if defined(USE_DISPLAY)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_WARNING+= "USE_DISPLAY is deprecated, please use USES=display"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_ICONV)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "USE_ICONV is unsupported, please use USES=iconv"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_CMAKE)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "USE_CMAKE is unsupported, please use USES=cmake"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_READLINE)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "USE_READLINE is unsupported, please use USES=readline"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_FUSE)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "USE_FUSE is unupported, please use USES=fuse"
|
2013-09-18 21:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_GETTEXT)
|
2013-09-18 22:13:34 +00:00
|
|
|
DEV_ERROR+= "USE_GETTEXT is unsupported, replaced by USES=gettext"
|
2013-09-18 21:30:53 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
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-09-19 09:49:06 +00:00
|
|
|
#.if defined(USE_GNOME) && ${USE_GNOME:Mltverhack*}
|
|
|
|
#DEV_WARNING+= "USE_GNOME=ltverhack is now useless LIB_DEPENDS can properly handle all kind of library version"
|
|
|
|
#.endif
|
2013-09-18 21:30:53 +00:00
|
|
|
|
|
|
|
.if defined(LIB_DEPENDS) && ${LIB_DEPENDS:Nlib*}
|
|
|
|
DEV_WARNING+= "Please use the new format for LIB_DEPENDS, see handbook for details"
|
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)
|
|
|
|
DEV_WARNING+= "USE_TCL and USE_TK are deprecated, please use USES=tcl or USES=tk"
|
|
|
|
.endif
|
|
|
|
|
2013-09-27 13:23:57 +00:00
|
|
|
.if !defined(NO_STAGE)
|
|
|
|
.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
|
|
|
.endif
|
|
|
|
|
2013-09-27 13:23:57 +00:00
|
|
|
.if !defined(NO_STAGE) && defined(MLINKS)
|
|
|
|
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
|