diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2019-08-09 17:02:29 +0800 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2019-08-09 17:02:29 +0800 |
commit | daeb51d08cd9cf18eb4baaa77106504338c604a8 (patch) | |
tree | 37ec6d913cdd7af0c965f28f600c1217bfd3d296 /misc | |
parent | 32ce4eacd9ebebbe8e668ed94bad0eef3b2b4f73 (diff) | |
download | freebsd-ports-gnome-daeb51d08cd9cf18eb4baaa77106504338c604a8.tar.gz freebsd-ports-gnome-daeb51d08cd9cf18eb4baaa77106504338c604a8.tar.zst freebsd-ports-gnome-daeb51d08cd9cf18eb4baaa77106504338c604a8.zip |
- Fix LICENSE
- Add LICENSE_FILE
- Simplify docs installation
- Respect CFLAGS
- Update WWW
Diffstat (limited to 'misc')
-rw-r--r-- | misc/digitemp/Makefile | 23 | ||||
-rw-r--r-- | misc/digitemp/files/patch-Makefile | 13 | ||||
-rw-r--r-- | misc/digitemp/pkg-descr | 2 |
3 files changed, 23 insertions, 15 deletions
diff --git a/misc/digitemp/Makefile b/misc/digitemp/Makefile index 634d355e7044..0687aeb4f256 100644 --- a/misc/digitemp/Makefile +++ b/misc/digitemp/Makefile @@ -9,26 +9,26 @@ MASTER_SITES= http://www.digitemp.com/software/linux/ MAINTAINER= ports@FreeBSD.org COMMENT= Dallas Semiconductor 1-wire device reading console application -LICENSE= GPLv2 +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING USES= gmake -MAKE_ARGS+= CC="${CC}" PLIST_FILES= bin/digitemp_DS9097 bin/digitemp_DS9097U \ etc/digitemp.conf.sample \ man/man1/digitemp.1.gz -DOCFILES= ChangeLog COPYRIGHT CREDITS FAQ README TODO \ - dthowto.txt DS9097_Schematic.gif -DOCDIRS= perl python rrdb -PORTDOCS= ${DOCFILES} ${DOCDIRS} +DOCS= ChangeLog CREDITS FAQ README TODO \ + dthowto.txt DS9097_Schematic.gif \ + perl python/gui python/mysql rrdb +PORTDOCS= * ALL_TARGET= ds9097 ds9097u OPTIONS_DEFINE= DOCS pre-install: - ${REINPLACE_CMD} -e "s/dev\/ttyS/dev\/cuau/g" ${WRKSRC}/${PORTNAME}.1 + @${REINPLACE_CMD} -e "s/dev\/ttyS/dev\/cuau/g" ${WRKSRC}/${PORTNAME}.1 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/digitemp_DS9097 ${STAGEDIR}${PREFIX}/bin @@ -39,12 +39,7 @@ do-install: @${ECHO_MSG} "Sample config installed at ${PREFIX}/etc/digitemp.conf.sample" @${ECHO_MSG} "" -post-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} -.for dir in perl python/gui python/mysql rrdb - @${MKDIR} ${STAGEDIR}${DOCSDIR}/${dir} - ${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f -exec ${INSTALL_DATA} \{\} ${STAGEDIR}${DOCSDIR}/${dir} \; -.endfor +do-install-DOCS-on: + @cd ${WRKSRC} && ${COPYTREE_SHARE} "${DOCS}" ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/misc/digitemp/files/patch-Makefile b/misc/digitemp/files/patch-Makefile new file mode 100644 index 000000000000..3dc76b264ff8 --- /dev/null +++ b/misc/digitemp/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig 2008-08-28 21:37:00 UTC ++++ Makefile +@@ -11,8 +11,8 @@ + + VERSION = 3.6.0 + +-CC = gcc +-CFLAGS = -I./src -I./userial -O2 -Wall # -g ++CC? = gcc ++CFLAGS += -I./src -I./userial + + OBJS = src/digitemp.o src/device_name.o src/ds2438.o + HDRS = src/digitemp.h src/device_name.h diff --git a/misc/digitemp/pkg-descr b/misc/digitemp/pkg-descr index b0757e57da6b..ab275746043d 100644 --- a/misc/digitemp/pkg-descr +++ b/misc/digitemp/pkg-descr @@ -6,4 +6,4 @@ 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 +WWW: https://www.digitemp.com/software.shtml |