svn commit: r319124 - head/sysutils/915resolution
Boris Samorodov
bsam at FreeBSD.org
Sun May 26 17:56:11 UTC 2013
Author: bsam
Date: Sun May 26 17:56:11 2013
New Revision: 319124
URL: http://svnweb.freebsd.org/changeset/ports/319124
Log:
. convert NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. mute mkdir;
. use PKG_PLIST and remove pkg-plist.
Deleted:
head/sysutils/915resolution/pkg-plist
Modified:
head/sysutils/915resolution/Makefile
Modified: head/sysutils/915resolution/Makefile
==============================================================================
--- head/sysutils/915resolution/Makefile Sun May 26 17:36:38 2013 (r319123)
+++ head/sysutils/915resolution/Makefile Sun May 26 17:56:11 2013 (r319124)
@@ -14,21 +14,23 @@ COMMENT= Resolution tool for Intel i915
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>
More information about the svn-ports-all
mailing list