f0da9c74d5
DigiTemp is a simple to use program for reading values from 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. based on a submission of Julien TOUCHE
42 lines
1022 B
Makefile
42 lines
1022 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2007/10/07 09:42:03 sturm Exp $
|
|
|
|
COMMENT= program for reading values from 1-wire devices
|
|
|
|
DISTNAME= digitemp-3.5.0
|
|
CATEGORIES= misc
|
|
|
|
HOMEPAGE= http://www.digitemp.com/
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= c m
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/software/linux/
|
|
|
|
LIB_DEPENDS= usb::devel/libusb
|
|
|
|
NO_CONFIGURE= Yes
|
|
USE_GMAKE= Yes
|
|
ALL_TARGET= ds9097 ds9097u ds2490
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
MAKE_ENV= LDFLAGS=-L${LOCALBASE}/lib
|
|
MAKE_FLAGS= CC=${CC}
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
do-install:
|
|
$(INSTALL_DATA_DIR) ${PREFIX}/share/doc/digitemp
|
|
$(INSTALL_DATA) $(WRKSRC)/README ${PREFIX}/share/doc/digitemp
|
|
$(INSTALL_DATA) $(WRKSRC)/FAQ ${PREFIX}/share/doc/digitemp
|
|
$(INSTALL_PROGRAM) $(WRKSRC)/digitemp_DS2490 ${PREFIX}/bin
|
|
$(INSTALL_PROGRAM) $(WRKSRC)/digitemp_DS9097 ${PREFIX}/bin
|
|
$(INSTALL_PROGRAM) $(WRKSRC)/digitemp_DS9097U ${PREFIX}/bin
|
|
$(INSTALL_MAN) $(WRKSRC)/digitemp.1 ${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|