aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-05-27 01:56:11 +0800
committerbsam <bsam@FreeBSD.org>2013-05-27 01:56:11 +0800
commit6f08b551cd02e610061e913b224e25af085c4f25 (patch)
tree2b9b56aae325cf457237933f7b3a5eb168ff152e /sysutils
parente5d08a55d9f81f9d3cf2017d5bbfff9bbf51cdd2 (diff)
downloadfreebsd-ports-gnome-6f08b551cd02e610061e913b224e25af085c4f25.tar.gz
freebsd-ports-gnome-6f08b551cd02e610061e913b224e25af085c4f25.tar.zst
freebsd-ports-gnome-6f08b551cd02e610061e913b224e25af085c4f25.zip
. convert NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. mute mkdir; . use PKG_PLIST and remove pkg-plist.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/915resolution/Makefile16
-rw-r--r--sysutils/915resolution/pkg-plist6
2 files changed, 9 insertions, 13 deletions
diff --git a/sysutils/915resolution/Makefile b/sysutils/915resolution/Makefile
index 724f963e9d75..17e57afb1ddb 100644
--- a/sysutils/915resolution/Makefile
+++ b/sysutils/915resolution/Makefile
@@ -14,21 +14,23 @@ COMMENT= Resolution tool for Intel i915 video cards
USE_RC_SUBR= 915resolution
-DOCS= README.txt LICENSE.txt chipset_info.txt changes.log
+PLIST_FILES= sbin/915resolution
+OPTIONS_DEFINE= DOCS
+PORTDOCS= README.txt LICENSE.txt chipset_info.txt changes.log
ONLY_FOR_ARCHS= i386 amd64
-.include <bsd.port.pre.mk>
-
do-build:
cd ${WRKSRC} && \
${CC} ${CFLAGS} 915resolution.c -o 915resolution
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/915resolution ${PREFIX}/sbin
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+.if ${PORT_OPTIONS:DOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/915resolution/pkg-plist b/sysutils/915resolution/pkg-plist
deleted file mode 100644
index 7583360a4966..000000000000
--- a/sysutils/915resolution/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-sbin/915resolution
-%%PORTDOCS%%%%DOCSDIR%%/README.txt
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
-%%PORTDOCS%%%%DOCSDIR%%/chipset_info.txt
-%%PORTDOCS%%%%DOCSDIR%%/changes.log
-%%PORTDOCS%%@dirrm %%DOCSDIR%%