> # $FreeBSD: head/misc/sloccount/Makefile 349513 2014-03-29 14:04:00Z amdmi3 $
we don't usually do this; could credit in commit log instead
> COMMENT= Counts physical Source Lines of Code (SLOC)
lowercase 'counts'
> -PREFIX=/usr/local
> +#PREFIX=/usr/local
> -MAN_DIR=$(PREFIX)/share/man
> +MAN_DIR=$(PREFIX)/man
> -DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION)
> +DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)
I wouldn't patch for these; instead override them with MAKE_FLAGS instead
(adjusting DOC_DIR to avoid the version number) :
MAKE_FLAGS= PREFIX=${PREFIX} \
MAN_DIR=${PREFIX}/man \
DOC_DIR=${PREFIX}/share/doc/sloccount
.. and the manual should be installed non-gzipped