aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/gkrellm/Makefile19
-rw-r--r--sysutils/gkrellm/pkg-plist4
-rw-r--r--sysutils/gkrellm2/Makefile7
-rw-r--r--sysutils/gkrellm2/pkg-plist5
4 files changed, 16 insertions, 19 deletions
diff --git a/sysutils/gkrellm/Makefile b/sysutils/gkrellm/Makefile
index 2c9a148d14b2..da07d639bcc8 100644
--- a/sysutils/gkrellm/Makefile
+++ b/sysutils/gkrellm/Makefile
@@ -26,7 +26,10 @@ USE_GMAKE= yes
INCLUDES= gkrellm.h gkrellm_public_proto.h
MAN1= gkrellm.1
-DOCS= COPYRIGHT README Themes.html
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= COPYRIGHT README Themes.html
+.endif
# If you want to support LM78/79 feature, set this to `yes'. You
# should aware that GKrellM must be setuid root to obtain
@@ -61,18 +64,18 @@ do-install:
${GMAKE} install enable_nls=1 LOCALEDIR=${PREFIX}/share/locale
@${MKDIR} ${PREFIX}/include/gkrellm
-.for file in ${INCLUDES}
- ${INSTALL_DATA} ${WRKSRC}/src/${file} ${PREFIX}/include/gkrellm
+.for f in ${INCLUDES}
+ ${INSTALL_DATA} ${WRKSRC}/src/${f} ${PREFIX}/include/gkrellm
.endfor
@${MKDIR} ${PREFIX}/libexec/gkrellm/plugins
@${MKDIR} ${PREFIX}/share/gkrellm/themes
-.for file in ${MAN1}
- ${INSTALL_MAN} ${WRKSRC}/${file} ${MANPREFIX}/man/man1/${file}
+.for f in ${MAN1}
+ ${INSTALL_MAN} ${WRKSRC}/${f} ${MANPREFIX}/man/man1/${f}
.endfor
.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/gkrellm
-.for file in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gkrellm
+ @${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.if !defined(WITH_SENSOR)
diff --git a/sysutils/gkrellm/pkg-plist b/sysutils/gkrellm/pkg-plist
index 939247f6792e..268eb63fd978 100644
--- a/sysutils/gkrellm/pkg-plist
+++ b/sysutils/gkrellm/pkg-plist
@@ -1,9 +1,6 @@
bin/gkrellm
include/gkrellm/gkrellm.h
include/gkrellm/gkrellm_public_proto.h
-%%PORTDOCS%%share/doc/gkrellm/COPYRIGHT
-%%PORTDOCS%%share/doc/gkrellm/README
-%%PORTDOCS%%share/doc/gkrellm/Themes.html
share/locale/de/LC_MESSAGES/gkrellm.mo
share/locale/es/LC_MESSAGES/gkrellm.mo
share/locale/fr/LC_MESSAGES/gkrellm.mo
@@ -11,7 +8,6 @@ share/locale/ja/LC_MESSAGES/gkrellm.mo
share/locale/pl/LC_MESSAGES/gkrellm.mo
share/locale/ru/LC_MESSAGES/gkrellm.mo
share/locale/sv/LC_MESSAGES/gkrellm.mo
-%%PORTDOCS%%@dirrm share/doc/gkrellm
@dirrm include/gkrellm
@exec mkdir -p %D/libexec/gkrellm/plugins
@exec mkdir -p %D/share/gkrellm/themes
diff --git a/sysutils/gkrellm2/Makefile b/sysutils/gkrellm2/Makefile
index fdcb4d3bfac2..54dbb51e5e39 100644
--- a/sysutils/gkrellm2/Makefile
+++ b/sysutils/gkrellm2/Makefile
@@ -49,7 +49,10 @@ PLIST_SUB+= CLIENT=""
#MAN1= gkrellm.1
.endif
MAN8= gkrellmd.8
-DOCS= COPYRIGHT CREDITS README Themes.html
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= COPYRIGHT CREDITS README Themes.html
+.endif
MAN1PREFIX= ${X11BASE}
@@ -105,7 +108,7 @@ post-install:
fi
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for f in ${DOCS}
+.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
diff --git a/sysutils/gkrellm2/pkg-plist b/sysutils/gkrellm2/pkg-plist
index 02206a9bf76e..ee1d4afcaf89 100644
--- a/sysutils/gkrellm2/pkg-plist
+++ b/sysutils/gkrellm2/pkg-plist
@@ -1,9 +1,4 @@
sbin/gkrellmd
-%%PORTDOCS%%share/doc/gkrellm/COPYRIGHT
-%%PORTDOCS%%share/doc/gkrellm/CREDITS
-%%PORTDOCS%%share/doc/gkrellm/README
-%%PORTDOCS%%share/doc/gkrellm/Themes.html
-%%PORTDOCS%%@dirrm share/doc/gkrellm
@exec mkdir -p %D/libexec/gkrellm2/plugins-gkrellmd
@unexec rmdir %D/libexec/gkrellm2/plugins-gkrellmd 2>/dev/null || true
@unexec rmdir %D/libexec/gkrellm2 2>/dev/null || true