pkgsrc/devel/diffbreaker/Makefile
2021-05-14 14:47:55 +00:00

46 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2021/05/14 14:47:55 nia Exp $
PKGNAME= diffbreaker-0.3
#PKGREVISION= 1
CATEGORIES= devel
MAINTAINER= nat@NetBSD.org
COMMENT= Tool to manuipulate unified diffs using curses
LICENSE= 2-clause-bsd
WRKSRC= ${WRKDIR}/diffbreaker
USE_BSD_MAKEFILE= yes
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= MANINSTALL
INSTALLATION_DIRS= bin
.if !empty(MANINSTALL:Mcatinstall)
INSTALLATION_DIRS+= ${PKGMANDIR}/cat1
.endif
.if !empty(MANINSTALL:Mmaninstall)
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
.endif
do-extract:
${CP} -R ${FILESDIR}/diffbreaker ${WRKDIR}
do-install:
.for f in diffbreaker
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/bin
. if !empty(MANINSTALL:Mcatinstall)
. if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
${INSTALL_MAN} ${WRKSRC}/${f}.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/${f}.1
. else
${INSTALL_MAN} ${WRKSRC}/${f}.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
. endif
. endif
. if !empty(MANINSTALL:Mmaninstall)
${INSTALL_MAN} ${WRKSRC}/${f}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
. endif
.endfor
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"