Mk/Uses/iconv: support iconv+
[dports.git] / Mk / bsd.sanity.mk
1 # $FreeBSD: Mk/bsd.sanity.mk 327578 2013-09-18 21:30:53Z bapt $
2 #
3 # MAINTAINER: portmgr@FreeBSD.org
4 #
5
6 .if defined(USE_GMAKE)
7 DEV_WARNING+=   "USE_GMAKE is deprecated consider using USES=gmake"
8 .endif
9
10 .if defined(WITHOUT_NLS)
11 WARNING+=       "WITHOUT_NLS is deprecated use NLS option instead"
12 .endif
13
14 .if defined(WITHOUT_X11)
15 WARNING+=       "WITHOUT_X11 is deprecated use X11 option instead"
16 .endif
17
18 .if !defined(LICENSE)
19 DEV_WARNING+=   "No license is defined consider adding one"
20 .endif
21
22 .if defined(USE_PERL5) && ${USE_PERL5} == yes
23 DEV_ERROR+=     "USE_PERL5=yes is unsupported please use USES=perl5 instead"
24 .endif
25
26 .if defined(PERL_CONFIGURE)
27 DEV_ERROR+=     "PERL_CONFIGURE is unsupported please use USES=perl5 along with USE_PERL5=configure"
28 .endif
29
30 .if defined(PERL_MODBUILD)
31 DEV_ERROR+=     "PERL_MODBUILD is unsupported please use USES=perl5 along with USE_PERL5=modbuild"
32 .endif
33
34 .if defined(USE_PERL5_BUILD)
35 DEV_ERROR+=     "USE_PERL5_BUILD is unsupported please use USES=perl5 along with USE_PERL5=build"
36 .endif
37
38 .if defined(USE_PERL5_RUN)
39 DEV_ERROR+=     "USE_PERL5_RUN is unsupported please use USES=perl5 along with USE_PERL5=run"
40 .endif
41
42 .if defined(USE_KDEBASE_VER)
43 DEV_ERROR+=     "USE_KDEBASE_VER is unsupported"
44 .endif
45
46 .if defined(USE_KDELIBS_VER)
47 DEV_ERROR+=     "USE_KDELIBS_VER is unsupported"
48 .endif
49
50 .if defined(USE_QT_VER)
51 DEV_ERROR+=     "USE_QT_VER is unsupported"
52 .endif
53
54 .if defined(USE_DISPLAY)
55 DEV_WARNING+=   "USE_DISPLAY is deprecated please use USES=display"
56 .endif
57
58 .if defined(USE_ICONV)
59 DEV_ERROR+=     "USE_ICONV is unsupported please use USES=iconv"
60 .endif
61
62 .if defined(USE_CMAKE)
63 DEV_ERROR+=     "USE_CMAKE is unsupported please use USES=cmake"
64 .endif
65
66 .if defined(USE_READLINE)
67 DEV_ERROR+=     "USE_READLINE is unsupported please use USES=readline"
68 .endif
69
70 .if defined(USE_FUSE)
71 DEV_ERROR+=     "USE_FUSE is unupported please use USES=fuse"
72 .endif
73
74 .if defined(USE_GETTEXT)
75 DEV_ERROR+=     "USE_GETTEXT is unsupported replaced by USES=gettext"
76 .endif
77
78 .if defined(USE_GNOME) && ${USE_GNOME:Mpkgconfig}
79 DEV_ERROR+=     "USE_GNOME=pkgconfig is unsupported please use USES=pkgconfig"
80 .endif
81
82 .if defined(USE_GNOME) && ${USE_GNOME:Mgnomehack}
83 DEV_WARNING+=   "USE_GNOME=gnomehack is deprecated please use USES=pathfix"
84 .endif
85
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"
88 .endif
89
90 .if defined(LIB_DEPENDS) && ${LIB_DEPENDS:Nlib*}
91 DEV_WARNING+=   "Please use the new format for LIB_DEPENDS, see handbook for details"
92 .endif
93
94 .if defined(WARNING)
95 show-warnings:
96 .for m in ${WARNING}
97         @${ECHO_MSG} "${WARNING}"
98 .endfor
99         @sleep 5
100
101 check-makefile:: show-warnings
102 .endif
103
104 .if defined(_PREMKINCLUDED)
105 DEV_ERROR+=     "you cannot include bsd.port[.pre].mk twice"
106 .endif
107
108 .if defined(DEVELOPER)
109 .if defined(DEV_WARNING)
110 show-dev-warnings:
111         @${ECHO_MSG} "/!\\ ${PKGNAME}: Makefile warnings, please consider fixing /!\\"
112         @${ECHO_MSG}
113 .for m in ${DEV_WARNING}
114         @${ECHO_MSG} "${m}"
115 .endfor
116         @${ECHO_MSG}
117         @sleep 5
118 check-makefile:: show-dev-warnings
119 .endif
120
121 .if defined(DEV_ERROR)
122 show-dev-errors:
123         @${ECHO_MSG} "/!\\ ${PKGNAME}: Makefile errors /!\\"
124         @${ECHO_MSG}
125 .for m in ${DEV_WARNING}
126         @${ECHO_MSG} "${m}"
127 .endfor
128         @${FALSE}
129 check-makefile:: show-dev-errors
130 .endif
131 .endif