1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/misc/digitemp/Makefile
Martin Wilke 016aba2914 DigiTemp is a simple to use console application for reading values from
Dallas Semiconductor 1-wire devices. Its main use is for reading temperature
sensors, but it also reads counters and understands the 1-wire hubs with
devices on different branches of the network. DigiTemp now supports the
following 1-wire temperature sensors: DS18S20 (and DS1820), DS18B20, DS1822,
the DS2438 Smart Battery Monitor, DS2422 and DS2423 Counters, DS2409
MicroLAN Coupler (used in 1-wire hubs) and the AAG TAI-8540 humidity sensor.

WWW: http://www.digitemp.com/software.shtml

PR:		ports/158290
Submitted by:	Evaldas Auryla <ea at zaib.as>
2011-06-26 07:01:51 +00:00

56 lines
1.7 KiB
Makefile

# 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>