summaryrefslogtreecommitdiff
path: root/x11/openmotif/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11/openmotif/Makefile')
-rw-r--r--x11/openmotif/Makefile39
1 files changed, 20 insertions, 19 deletions
diff --git a/x11/openmotif/Makefile b/x11/openmotif/Makefile
index 7ce8bff7569..649d48980da 100644
--- a/x11/openmotif/Makefile
+++ b/x11/openmotif/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2005/06/01 18:03:30 jlam Exp $
+# $NetBSD: Makefile,v 1.37 2005/06/27 14:08:15 wiz Exp $
PKGVER= 2.1.30
DISTNAME= openmotif${PKGVER}
@@ -54,6 +54,7 @@ INSTALLATION_DIRS= lib/X11/config man/man1 man/man3 man/man5
post-extract:
${CP} ${FILESDIR}/NoInstall.rules ${WRKSRC}/config/cf/NoInstall.rules
${CP} ${FILESDIR}/OpenMotif.def ${WRKSRC}/config/cf/Motif.def
+ ${CP} ${FILESDIR}/DragonFly.cf ${WRKSRC}/config/cf/DragonFly.cf
# 1) Fix the man pages to refer to the correct sections.
# 2) Link Motif.* to OpenMotif.*.
@@ -62,31 +63,31 @@ post-extract:
#
post-patch:
cd ${WRKSRC}/doc/man; \
- for file in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \
+ for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \
${SED} -e "s|user cmd|1|g" \
-e "s|library call|3|g" \
-e "s|special file|5|g" \
-e "s|file formats|5|g" \
- $${file} > $${file}.fixed; \
- ${MV} -f $${file}.fixed $${file}; \
+ $${manpage} > $${manpage}.fixed; \
+ ${MV} -f $${manpage}.fixed $${manpage}; \
done; \
${CP} -f man4/mwmrc.4 man5/mwmrc.5
cd ${WRKSRC}/config/cf; \
files="Motif.rules Motif.tmpl"; \
- for file in $${files}; do \
- dest="Open$${file}"; \
+ for configfile in $${files}; do \
+ dest="Open$${configfile}"; \
${RM} -f $${dest}; \
- ${LN} -s $${file} $${dest}; \
+ ${LN} -s $${configfile} $${dest}; \
done
cd ${WRKSRC}/doc/man/man3; \
for name in Core Object Shell; do \
${MV} -f $${name}.3 X$${name}.3; \
files=`${GREP} -l ".fB$${name}.fP(3)" *.3`; \
- for file in $${files}; do \
- ${MV} -f $${file} $${file}.presubst; \
+ for manpage in $${files}; do \
+ ${MV} -f $${manpage} $${manpage}.presubst; \
${SED} "s|\(.fB\)$${name}\(.fP(3)\)|\1X$${name}\2|g" \
- $${file}.presubst > $${file}; \
- ${RM} -f $${file}.presubst; \
+ $${manpage}.presubst > $${manpage}; \
+ ${RM} -f $${manpage}.presubst; \
done; \
done
@@ -105,22 +106,22 @@ do-configure:
# Filter the manpages through tbl.
post-build:
cd ${WRKSRC}/doc/man; \
- for file in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \
- ${TBL} $${file} > $${file}.tblized; \
- ${MV} -f $${file}.tblized $${file}; \
+ for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \
+ ${TBL} $${manpage} > $${manpage}.tblized; \
+ ${MV} -f $${manpage}.tblized $${manpage}; \
done
# Install the OpenMotif config files and manpages.
post-install:
cd ${WRKSRC}/config/cf; \
files="Motif.def Motif.rules Motif.tmpl"; \
- for file in $${files}; do \
- dest="${PREFIX}/lib/X11/config/Open$${file}"; \
- ${INSTALL_DATA} $${file} $${dest}; \
+ for configfile in $${files}; do \
+ dest="${PREFIX}/lib/X11/config/Open$${configfile}"; \
+ ${INSTALL_DATA} $${configfile} $${dest}; \
done
cd ${WRKSRC}/doc/man; \
- for file in man1/*.1 man3/*.3 man5/*.5; do \
- ${INSTALL_MAN} $${file} ${PREFIX}/man/$${file}; \
+ for manpage in man1/*.1 man3/*.3 man5/*.5; do \
+ ${INSTALL_MAN} $${manpage} ${PREFIX}/man/$${manpage}; \
done
.include "../../mk/bsd.pkg.mk"