diff options
Diffstat (limited to 'misc/digitemp/Makefile')
-rw-r--r-- | misc/digitemp/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/misc/digitemp/Makefile b/misc/digitemp/Makefile new file mode 100644 index 000000000000..b5f04368bc43 --- /dev/null +++ b/misc/digitemp/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: digitemp +# Date created: 25 June 2011 +# Whom: Evaldas Auryla <ea@zaib.as> +# +# $FreeBSD$ +# + +PORTNAME= digitemp +PORTVERSION= 3.6.0 +CATEGORIES= misc +MASTER_SITES= http://www.digitemp.com/software/linux/ + +MAINTAINER= ea@zaib.as +COMMENT= Dallas Semiconductor 1-wire device reading console application + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + +USE_GMAKE= yes + +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 + +ALL_TARGET= ds9097 ds9097u + +pre-install: + ${CP} ${WRKSRC}/${MAN1} ${WRKSRC}/digitemp.1.M + ${CAT} ${WRKSRC}/digitemp.1.M | ${SED} -e "s/dev\/ttyS/dev\/cuau/g" > ${WRKSRC}/${MAN1} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/digitemp_DS9097 ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/digitemp_DS9097U ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1 + +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} +.for dir in perl python/gui python/mysql rrdb + ${INSTALL} -d ${DOCSDIR}/${dir} + ${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f -exec ${INSTALL_DATA} \{\} ${DOCSDIR}/${dir} \; +.endfor +.endif + ${CAT} ${PKGMESSAGE} + ${INSTALL_DATA} ${FILESDIR}/digitemp.conf.sample ${PREFIX}/etc/ + @${ECHO_MSG} "" + @${ECHO_MSG} "Sample config installed at ${PREFIX}/etc/digitemp.conf.sample" + @${ECHO_MSG} "" + +.include <bsd.port.mk> |