1 # $FreeBSD: Mk/bsd.sanity.mk 327578 2013-09-18 21:30:53Z bapt $
3 # MAINTAINER: portmgr@FreeBSD.org
7 DEV_WARNING+= "USE_GMAKE is deprecated consider using USES=gmake"
10 .if defined(WITHOUT_NLS)
11 WARNING+= "WITHOUT_NLS is deprecated use NLS option instead"
14 .if defined(WITHOUT_X11)
15 WARNING+= "WITHOUT_X11 is deprecated use X11 option instead"
19 DEV_WARNING+= "No license is defined consider adding one"
22 .if defined(USE_PERL5) && ${USE_PERL5} == yes
23 DEV_ERROR+= "USE_PERL5=yes is unsupported please use USES=perl5 instead"
26 .if defined(PERL_CONFIGURE)
27 DEV_ERROR+= "PERL_CONFIGURE is unsupported please use USES=perl5 along with USE_PERL5=configure"
30 .if defined(PERL_MODBUILD)
31 DEV_ERROR+= "PERL_MODBUILD is unsupported please use USES=perl5 along with USE_PERL5=modbuild"
34 .if defined(USE_PERL5_BUILD)
35 DEV_ERROR+= "USE_PERL5_BUILD is unsupported please use USES=perl5 along with USE_PERL5=build"
38 .if defined(USE_PERL5_RUN)
39 DEV_ERROR+= "USE_PERL5_RUN is unsupported please use USES=perl5 along with USE_PERL5=run"
42 .if defined(USE_KDEBASE_VER)
43 DEV_ERROR+= "USE_KDEBASE_VER is unsupported"
46 .if defined(USE_KDELIBS_VER)
47 DEV_ERROR+= "USE_KDELIBS_VER is unsupported"
50 .if defined(USE_QT_VER)
51 DEV_ERROR+= "USE_QT_VER is unsupported"
54 .if defined(USE_DISPLAY)
55 DEV_WARNING+= "USE_DISPLAY is deprecated please use USES=display"
58 .if defined(USE_ICONV)
59 DEV_ERROR+= "USE_ICONV is unsupported please use USES=iconv"
62 .if defined(USE_CMAKE)
63 DEV_ERROR+= "USE_CMAKE is unsupported please use USES=cmake"
66 .if defined(USE_READLINE)
67 DEV_ERROR+= "USE_READLINE is unsupported please use USES=readline"
71 DEV_ERROR+= "USE_FUSE is unupported please use USES=fuse"
74 .if defined(USE_GETTEXT)
75 DEV_ERROR+= "USE_GETTEXT is unsupported replaced by USES=gettext"
78 .if defined(USE_GNOME) && ${USE_GNOME:Mpkgconfig}
79 DEV_ERROR+= "USE_GNOME=pkgconfig is unsupported please use USES=pkgconfig"
82 .if defined(USE_GNOME) && ${USE_GNOME:Mgnomehack}
83 DEV_WARNING+= "USE_GNOME=gnomehack is deprecated please use USES=pathfix"
86 .if defined(USE_GNOME) && ${USE_GNOME:Mltverhack*}
87 DEV_WARNING+= "USE_GNOME=ltverhack is now useless LIB_DEPENDS can properly handle all kind of library version"
90 .if defined(LIB_DEPENDS) && ${LIB_DEPENDS:Nlib*}
91 DEV_WARNING+= "Please use the new format for LIB_DEPENDS, see handbook for details"
97 @${ECHO_MSG} "${WARNING}"
101 check-makefile:: show-warnings
104 .if defined(_PREMKINCLUDED)
105 DEV_ERROR+= "you cannot include bsd.port[.pre].mk twice"
108 .if defined(DEVELOPER)
109 .if defined(DEV_WARNING)
111 @${ECHO_MSG} "/!\\ ${PKGNAME}: Makefile warnings, please consider fixing /!\\"
113 .for m in ${DEV_WARNING}
118 check-makefile:: show-dev-warnings
121 .if defined(DEV_ERROR)
123 @${ECHO_MSG} "/!\\ ${PKGNAME}: Makefile errors /!\\"
125 .for m in ${DEV_WARNING}
129 check-makefile:: show-dev-errors