|
@@ -2624,9 +2624,10 @@ xargs xmkmf
|
|
|
#$slaveport = 0;
|
|
|
print "OK: non-slave port detected, checking for anything after bsd.port(.post).mk.\n"
|
|
|
if ($verbose);
|
|
|
- if ($whole !~ /\n\.include\s+<bsd\.port(?:\.post)?\.mk>\s*$/s) {
|
|
|
+ if ($whole !~ /\n\.include\s+<bsd\.port(?:\.post)?\.mk>\s*$/s &&
|
|
|
+ $whole !~ /\n\.endif\s*$/s) {
|
|
|
&perror("FATAL", $file, -1, "the last line of Makefile has to be".
|
|
|
- ' .include <bsd.port(.post).mk>');
|
|
|
+ ' .include <bsd.port(.post).mk> (or .endif in the case of a conditional)');
|
|
|
}
|
|
|
if ($whole =~ /^MASTERDIR\s*[+?:!]?\s*=/m) {
|
|
|
&perror("WARN", $file, -1, "non-slave ports may not define MASTERDIR");
|