aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/libretto-config
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-05-27 21:59:05 +0800
committerbsam <bsam@FreeBSD.org>2013-05-27 21:59:05 +0800
commite0fa2b8fe77b5618d4505fc33795d596617b66c6 (patch)
tree01abb33745c5467173790aa467f986f9306cd242 /sysutils/libretto-config
parentfff5fed320d7276480411e3addfd3c9e1bf1055e (diff)
downloadfreebsd-ports-gnome-e0fa2b8fe77b5618d4505fc33795d596617b66c6.tar.gz
freebsd-ports-gnome-e0fa2b8fe77b5618d4505fc33795d596617b66c6.tar.zst
freebsd-ports-gnome-e0fa2b8fe77b5618d4505fc33795d596617b66c6.zip
. trim Makefile headers;
. remove custom DOCDIR and use standard DOCSDIR; . define PLIST_FILES and PORTDOCS at Makefile; . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . do not mute install command; . remove pkg-plist (hm, seems the port has never worked at NOPORTDOCS case).
Diffstat (limited to 'sysutils/libretto-config')
-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