768cd99f7f
pkglint -Wall -F --only aligned --only indent -r No manual corrections.
63 lines
2.5 KiB
Makefile
63 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2019/11/04 21:43:47 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= RTF-1.10
|
|
PKGNAME= rtf-tools-1.10
|
|
PKGREVISION= 3
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://www.snake.net/software/RTF/
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
PATCHFILES= rtf-tools-jumbo-patch-20111006.gz
|
|
PATCH_SITES= http://www.NetBSD.org/~dholland/patchkits/rtf-tools/
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= ${MASTER_SITES}
|
|
COMMENT= RTF to troff/groff/text converter
|
|
|
|
WRKSRC= ${WRKDIR}/rtf
|
|
INSTALL_TARGET= install install.man
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/manl lib/rtf-tools
|
|
|
|
SUBST_CLASSES+= rtf
|
|
SUBST_STAGE.rtf= pre-configure
|
|
SUBST_MESSAGE.rtf= Fixing absolute paths in Makefiles.
|
|
SUBST_FILES.rtf= Makefile */Makefile
|
|
SUBST_SED.rtf+= -e 's|-DVARARGS|-DSTDARGS|g'
|
|
SUBST_SED.rtf+= -e 's|/usr/local|${PREFIX}|g'
|
|
SUBST_SED.rtf+= -e 's|/usr/man|${PREFIX}/man|'
|
|
SUBST_SED.rtf+= -e 's|\(LOCALBINDIR =.*\)|\1/bin|'
|
|
|
|
# turn this on when hacking or debugging the package
|
|
#WARNFLAGS= -O2 -Wall -Wextra -Wwrite-strings -Wmissing-prototypes
|
|
#SUBST_CLASSES+= warn
|
|
#SUBST_STAGE.warn= pre-build
|
|
#SUBST_MESSAGE.warn= Enabling lots of warnings.
|
|
#SUBST_FILES.warn= Makefile */Makefile
|
|
#SUBST_SED.warn= -e '/CDEBUGFLAGS/s/-O/${WARNFLAGS}/'
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/h/standard-names ${DESTDIR}${PREFIX}/lib/rtf-tools
|
|
cd ${WRKSRC}/lib && ${INSTALL_DATA} ansi-gen ansi-sym \
|
|
ansicpg1252-gen ansicpg1252-sym \
|
|
mac-gen mac-sym pc-gen pc-sym pca-gen pca-sym \
|
|
${DESTDIR}${PREFIX}/lib/rtf-tools
|
|
${INSTALL_DATA} ${WRKSRC}/rtf2text/text-map ${DESTDIR}${PREFIX}/lib/rtf-tools
|
|
cd ${WRKSRC}/rtf2troff && ${INSTALL_DATA} troff-map groff-map \
|
|
xroff-map dwbtroff-map troff-man-map troff-me-map \
|
|
troff-mm-map troff-ms-map ${DESTDIR}${PREFIX}/lib/rtf-tools
|
|
${INSTALL_SCRIPT} ${WRKSRC}/util/rtfchkmap ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/util/rtfmaptortf ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rtf2null/rtf2null ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rtf2text/rtf2text ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rtf2troff/rtf2troff ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rtf2troff/rtf2groff ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rtfdiag/rtfdiag ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rtfindent/rtfindent ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rtfwc/rtfwc ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/man/rtf2troff.man \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/manl/rtf2troff.l
|
|
|
|
.include "../../devel/libts/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|