Subject: Re: devel/bmake install issues
To: Jeremy C. Reed <reed@reedmedia.net>
From: Simon J. Gerraty <sjg@crufty.net>
List: tech-pkg
Date: 09/03/2005 11:24:52
On Sat, 03 Sep 2005 11:06:11 -0700, "Simon J. Gerraty" writes:
>>> install: /usr/pkgsrc/devel/bmake/work/DragonFly/bmake.cat1: No such file or
> 
>>directory
>
>This is a bug in the distribution - I include a bmake.cat1 for the
>benefit of platforms that cannot format the mandoc.  Of course I've
>fogotten to update it in years ;-)

Ok, I've fixed that, the makefile that packages the distribution will
update bmake.cat1, also I've added .NOPATH's to Makefile.in for
{Net,Free,Open}BSD... now there is the issue of the
devel/bmake/Makefile

It currently says:

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/${OPSYS}/bmake ${PREFIX}/bin
	${INSTALL_MAN} ${WRKDIR}/${OPSYS}/bmake.cat1 ${PREFIX}/man/cat1/bmake.0
	${INSTALL_MAN} ${WRKDIR}/${OPSYS}/bmake.1 ${PREFIX}/man/man1

the expedient solution is something like:

.if exists(${WRKDIR}/${OPSYS}/bmake.cat1)
# use locally formatted version
BMAKE_CAT1=${WRKDIR}/${OPSYS}/bmake.cat1
.else
# use the distributed one
BMAKE_CAT1=${WRKSRC}/bmake.cat1
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/${OPSYS}/bmake ${PREFIX}/bin
	${INSTALL_MAN} ${BMAKE_CAT1} ${PREFIX}/man/cat1/bmake.0
	${INSTALL_MAN} ${WRKDIR}/${OPSYS}/bmake.1 ${PREFIX}/man/man1

Ok?

--sjg