Bug 251430

Summary: ports-mgmt/portlint: "the last line of Makefile has to be .include <bsd.port(.post).mk>" is a bit too strict
Product: Ports & Packages Reporter: Gerald Pfeifer <gerald>
Component: Individual Port(s)Assignee: Joe Marcus Clarke <marcus>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (marcus)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Gerald Pfeifer freebsd_committer freebsd_triage 2020-11-27 22:07:02 UTC
In case of emulators/wine portlint -C issues a FATAL error:

  FATAL: Makefile: the last line of Makefile has to be .include <bsd.port(.post).mk>

This is general correct, however that port's Makefile ends with

  .ifndef WINE_SLAVE_BUILD
  .include <bsd.port.post.mk>
  .endif

I suggest to also allow for .endif as the last line of a Makefile.
Comment 1 Joe Marcus Clarke freebsd_committer freebsd_triage 2020-11-29 17:25:46 UTC
Fixed in 2.19.3.