svn commit: r325579 - head/misc/digitemp
Boris Samorodov
bsam at FreeBSD.org
Thu Aug 29 09:46:04 UTC 2013
Author: bsam
Date: Thu Aug 29 09:46:04 2013
New Revision: 325579
URL: http://svnweb.freebsd.org/changeset/ports/325579
Log:
. fix build with clang (MAKE_ARGS+=CC="${CC}");
. trim makefile headers;
. remove LICENSE_FILE for well-known license (GPLv2, anyway it get installed by the ports infrastructure);
. optionify port docs (NOPORTDOCS -> PORT_OPTIONS:MDOCS);
. use standard mkdir to create directories instead of "install -d";
. some other tiny refinements.
PR: ports/181622
Submitted by: bsam (me)
Approved by: Evaldas Auryla <ea at zaib.as> (maintainer)
Modified:
head/misc/digitemp/Makefile
Modified: head/misc/digitemp/Makefile
==============================================================================
--- head/misc/digitemp/Makefile Thu Aug 29 09:31:17 2013 (r325578)
+++ head/misc/digitemp/Makefile Thu Aug 29 09:46:04 2013 (r325579)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: digitemp
-# Date created: 25 June 2011
-# Whom: Evaldas Auryla <ea at zaib.as>
-#
+# Created by: Evaldas Auryla <ea at zaib.as>
# $FreeBSD$
-#
PORTNAME= digitemp
PORTVERSION= 3.6.0
@@ -14,19 +10,26 @@ MAINTAINER= ea at zaib.as
COMMENT= Dallas Semiconductor 1-wire device reading console application
LICENSE= GPLv2
-LICENSE_FILE= ${WRKSRC}/COPYRIGHT
-USE_GMAKE= yes
+USES= gmake
+MAKE_ARGS+= CC="${CC}"
MAN1= digitemp.1
PLIST_FILES= bin/digitemp_DS9097 bin/digitemp_DS9097U \
etc/digitemp.conf.sample
-PORTDOCS= ChangeLog COPYING COPYRIGHT CREDITS FAQ README TODO \
- dthowto.txt DS9097_Schematic.gif perl python rrdb
+DOCFILES= ChangeLog COPYRIGHT CREDITS FAQ README TODO \
+ dthowto.txt DS9097_Schematic.gif
+DOCDIRS= perl python rrdb
+PORTDOCS= ${DOCFILES} ${DOCDIRS}
ALL_TARGET= ds9097 ds9097u
+OPTIONS_DEFINE= DOCS
+
+#post-patch:
+# @${REINPLACE_CMD} -e 's:= gcc:?= gcc:' ${WRKSRC}/Makefile
+
pre-install:
${CP} ${WRKSRC}/${MAN1} ${WRKSRC}/digitemp.1.M
${CAT} ${WRKSRC}/digitemp.1.M | ${SED} -e "s/dev\/ttyS/dev\/cuau/g" > ${WRKSRC}/${MAN1}
@@ -36,13 +39,14 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/digitemp_DS9097U ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
+.include <bsd.port.options.mk>
+
post-install:
-.if !defined(NOPORTDOCS)
- ${INSTALL} -d ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/COPYING ${WRKSRC}/COPYRIGHT ${WRKSRC}/CREDITS ${WRKSRC}/FAQ \
- ${WRKSRC}/README ${WRKSRC}/TODO ${WRKSRC}/dthowto.txt ${WRKSRC}/DS9097_Schematic.gif ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${DOCSDIR}
.for dir in perl python/gui python/mysql rrdb
- ${INSTALL} -d ${DOCSDIR}/${dir}
+ @${MKDIR} ${DOCSDIR}/${dir}
${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f -exec ${INSTALL_DATA} \{\} ${DOCSDIR}/${dir} \;
.endfor
.endif
More information about the svn-ports-head
mailing list