pkgsrc/pkgtools/pkgdiff/Makefile
seb 7a9617aa14 Update to version 0.109.
Belatedly document pkgvi's '+command' option per zuntum@ request.

As textproc/groff now brings in a lot of dependencies
don't make it a build dependency for this package on Solaris.

XXX Hence do not install any man pages on Solaris. This is a temporary
stopgap measure.  Do people really want a somewhat important number of
dependencies installed just to be able to do 'man mkpatches'? I surely
don't... A better solution has to be devised.

But as added bonus this package now handles gracefully MANINSTALL setting.
See you have not lost everything!
2003-05-28 14:53:51 +00:00

64 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.34 2003/05/28 14:53:51 seb Exp $
#
DISTNAME= pkgdiff-0.109
WRKSRC= ${WRKDIR}
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= wiz@netbsd.org
HOMEPAGE= ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt
COMMENT= Tools to ease creating and maintaining patches for pkgsrc
PERL5_REQD= 5.6.0
EXTRACT_ONLY= # empty
NO_CHECKSUM= yes
NO_CONFIGURE= yes
USE_BUILDLINK2= yes
MAKE_ENV= PKGSRCDIR=${_PKGSRCDIR:Q}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
DEPENDS+= diffutils-[0-9]*:../../devel/diffutils
DIFF?= gdiff
MANINSTALL=
.else
NROFF= nroff
DIFF?= diff
.endif
do-build:
.for FILE in mkpatches patchdiff
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@MAKE@|${MAKE}|g' \
< ${FILESDIR}/${FILE}.pl \
> ${WRKSRC}/${FILE}
.endfor
${SED} -e 's|@DIFF@|${DIFF}|g' \
< ${FILESDIR}/pkgdiff \
> ${WRKSRC}/pkgdiff
${CP} ${FILESDIR}/pkgvi ${WRKSRC}
.if !empty(MANINSTALL:Mcatinstall)
. for FILE in mkpatches patchdiff pkgdiff pkgvi
${NROFF} -mandoc ${FILESDIR}/${FILE}.1 >${WRKSRC}/${FILE}.0
. endfor
.endif
do-install:
.for FILE in mkpatches patchdiff pkgdiff pkgvi
${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/bin
. if !empty(MANINSTALL:Mcatinstall)
${INSTALL_MAN} ${WRKSRC}/${FILE}.0 ${PREFIX}/man/cat1
. endif
. if !empty(MANINSTALL:Mmaninstall)
${INSTALL_MAN} ${FILESDIR}/${FILE}.1 ${PREFIX}/man/man1
. endif
.endfor
.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"