pkgsrc/pkgtools/pkgdiff/Makefile
hubertf eb7239b1cb Update to rev. 0.116.
Add feedback-patches, a script to ... feedback patches:

     The feedback-patches script is intended to help sending back patches in
     the NetBSD Packages Collection, pkgsrc, back to the maintainers of the
     original package, for inclusion into future releases.  The given
     category/pkg is either a path relative to the pkgsrc base directory, or
     an absolute patch, which will be stripped the base directory.  A pathname
     of . will be expanded to the current directory, which is useful when the
     current working directory is in a package's directory in pkgsrc.

     If an email address is given, the patches will be sent to that address,
     with some nice words. If no email address is given, the mail will only be
     displayed instead of sent.

See feedback-patches(1) for the full enchilada.
2004-11-23 22:00:48 +00:00

83 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.52 2004/11/23 22:00:48 hubertf Exp $
#
DISTNAME= pkgdiff-0.116
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 create, maintain and send back patches for pkgsrc
PKG_INSTALLATION_TYPES= overwrite pkgviews
PERL5_REQD+= 5.6.0
EXTRACT_ONLY= # empty
NO_CHECKSUM= yes
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}
USE_BUILDLINK3= yes
USE_LANGUAGES= # empty
MAKE_ENV= PKGSRCDIR=${_PKGSRCDIR:Q}
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= MANINSTALL
.if ${OPSYS} == "SunOS"
DEPENDS+= diffutils-[0-9]*:../../devel/diffutils
DIFF?= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}diff
MANINSTALL=
.else
DIFF?= diff
.endif
INSTALLATION_DIRS= bin
.if !empty(MANINSTALL:Mcatinstall)
INSTALLATION_DIRS+= man/cat1
.endif
.if !empty(MANINSTALL:Mmaninstall)
INSTALLATION_DIRS+= man/man1
.endif
do-build:
.for FILE in mkpatches patchdiff
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@PERL5@|${PERL5}|g' \
-e 's|@MAKE@|${MAKE}|g' \
< ${FILESDIR}/${FILE}.pl \
> ${WRKSRC}/${FILE}
.endfor
${SED} -e 's|@DIFF@|${DIFF}|g' \
-e 's|@SH@|${SH}|g' \
< ${FILESDIR}/pkgdiff \
> ${WRKSRC}/pkgdiff
${CP} ${FILESDIR}/pkgvi ${WRKSRC}
${CP} ${FILESDIR}/feedback-patches ${WRKSRC}
.if !empty(MANINSTALL:Mcatinstall)
. for FILE in mkpatches patchdiff pkgdiff pkgvi feedback-patches
. if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX"
nroff -man ${FILESDIR}/${FILE}.1 >${WRKSRC}/${FILE}.0
. else
${CP} ${FILESDIR}/${FILE}.0 ${WRKSRC}/${FILE}.0
. endif
. endfor
.endif
do-install:
.for FILE in mkpatches patchdiff pkgdiff pkgvi feedback-patches
${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/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"