aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/libretto-config/Makefile29
-rw-r--r--sysutils/libretto-config/pkg-plist7
2 files changed, 15 insertions, 21 deletions
diff --git a/sysutils/libretto-config/Makefile b/sysutils/libretto-config/Makefile
index 8c6e1f72e8e9..105a6c23a8d9 100644
--- a/sysutils/libretto-config/Makefile
+++ b/sysutils/libretto-config/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: libretto-config
-# Date created: 19 Nov 1998
-# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
-#
+# Created by: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= libretto-config
PORTVERSION= 1.0.b5
@@ -18,21 +14,26 @@ COMMENT= Libretto BIOS Setting Program
ONLY_FOR_ARCHS= i386
WRKSRC= ${WRKDIR}/libapm
-DOCDIR= ${PREFIX}/share/doc/${PORTNAME}
+PLIST_FILES= sbin/libretto-config
MAN8= ${PORTNAME}.8
MANLANG= . ja
+OPTIONS_DEFINE= DOCS
+PORTDOCS= *
+
+.include <bsd.port.options.mk>
+
post-install:
# install japanese manpage also :-)
- @${INSTALL_MAN} ${WRKSRC}/libapm-j.man ${PREFIX}/man/ja/man8/${PORTNAME}.8
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCDIR}
- @${INSTALL_DATA} ${WRKSRC}/README-e.1st ${DOCDIR}/README.1st
- @${INSTALL_DATA} ${WRKSRC}/APM-EXBIOS-e.txt ${DOCDIR}/APM-EXBIOS.txt
- @${MKDIR} ${DOCDIR}/ja
- @${INSTALL_DATA} ${WRKSRC}/README-j.1st ${DOCDIR}/ja/README.1st
- @${INSTALL_DATA} ${WRKSRC}/APM-EXBIOS-j.txt ${DOCDIR}/ja/APM-EXBIOS.txt
+ ${INSTALL_MAN} ${WRKSRC}/libapm-j.man ${PREFIX}/man/ja/man8/${PORTNAME}.8
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README-e.1st ${DOCSDIR}/README.1st
+ ${INSTALL_DATA} ${WRKSRC}/APM-EXBIOS-e.txt ${DOCSDIR}/APM-EXBIOS.txt
+ @${MKDIR} ${DOCSDIR}/ja
+ ${INSTALL_DATA} ${WRKSRC}/README-j.1st ${DOCSDIR}/ja/README.1st
+ ${INSTALL_DATA} ${WRKSRC}/APM-EXBIOS-j.txt ${DOCSDIR}/ja/APM-EXBIOS.txt
.endif
.include <bsd.port.mk>
diff --git a/sysutils/libretto-config/pkg-plist b/sysutils/libretto-config/pkg-plist
deleted file mode 100644
index 0391c41da75e..000000000000
--- a/sysutils/libretto-config/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-sbin/libretto-config
-share/doc/libretto-config/README.1st
-share/doc/libretto-config/APM-EXBIOS.txt
-share/doc/libretto-config/ja/README.1st
-share/doc/libretto-config/ja/APM-EXBIOS.txt
-@dirrm share/doc/libretto-config/ja
-@dirrm share/doc/libretto-config