summaryrefslogtreecommitdiff
path: root/textproc/rtf-tools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-03-11 19:42:25 +0000
committerrillig <rillig@pkgsrc.org>2006-03-11 19:42:25 +0000
commitb3e0b251b892035e8c726d985abeb2db4846d4ba (patch)
tree2bbaa0aa6eba161029373491759ca7de8349ce9b /textproc/rtf-tools
parentfbfe467428c94ea704f204108f95fec36d76b37a (diff)
downloadpkgsrc-b3e0b251b892035e8c726d985abeb2db4846d4ba.tar.gz
Converted to the SUBST framework and fixed pkglint warnings.
Diffstat (limited to 'textproc/rtf-tools')
-rw-r--r--textproc/rtf-tools/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/textproc/rtf-tools/Makefile b/textproc/rtf-tools/Makefile
index dbb3c62d8dc..8609a30c1b1 100644
--- a/textproc/rtf-tools/Makefile
+++ b/textproc/rtf-tools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/06/17 03:50:37 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2006/03/11 19:42:25 rillig Exp $
#
DISTNAME= RTF-1.10
@@ -16,15 +16,14 @@ WRKSRC= ${WRKDIR}/rtf
INSTALL_TARGET= install install.man
INSTALLATION_DIRS= bin man/manl
-post-patch:
- for i in `${FIND} ${WRKSRC} -name Makefile -print`; do \
- ${MV} $$i $$i.bak;\
- ${SED} <$$i.bak >$$i \
- -e "s|-DVARARGS|-DSTDARGS|g" \
- -e "s|/usr/local|${PREFIX}|g" \
- -e "s|/usr/man|${PREFIX}/man|" \
- -e "s|\(LOCALBINDIR =.*\)|\1/bin|" ;\
- done
+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|'
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/rtf-tools