aboutsummaryrefslogtreecommitdiffstats
path: root/misc/tempcontrol
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-08-09 20:12:21 +0800
committerdanfe <danfe@FreeBSD.org>2013-08-09 20:12:21 +0800
commita1fc8ef9a95ca69a1774fb38d1e44b7260e57111 (patch)
tree66d70dd116c0a4d7de863c279578c638d4442830 /misc/tempcontrol
parent24e19876dd88e171630b8356af1bfb0ab05d14bb (diff)
downloadfreebsd-ports-graphics-a1fc8ef9a95ca69a1774fb38d1e44b7260e57111.tar.gz
freebsd-ports-graphics-a1fc8ef9a95ca69a1774fb38d1e44b7260e57111.tar.zst
freebsd-ports-graphics-a1fc8ef9a95ca69a1774fb38d1e44b7260e57111.zip
- Unbreak parallel (-jX) builds by doing "make depend" prior to the build
- Define LICENSE (BSD), respect CFLAGS, install README file (referenced in port description), wrap overly long lines, and remove MAKE_JOBS_UNSAFE
Diffstat (limited to 'misc/tempcontrol')
-rw-r--r--misc/tempcontrol/Makefile29
1 files changed, 23 insertions, 6 deletions
diff --git a/misc/tempcontrol/Makefile b/misc/tempcontrol/Makefile
index b7765d7d3e0..0746ff1d418 100644
--- a/misc/tempcontrol/Makefile
+++ b/misc/tempcontrol/Makefile
@@ -1,4 +1,4 @@
-# Created by: grog@
+# Created by: Greg Lehey <grog@FreeBSD.org>
# $FreeBSD$
PORTNAME= tempcontrol
@@ -9,17 +9,34 @@ MASTER_SITES= http://www.lemis.com/grog/brewing/src/brewing/tempcontrol/
MAINTAINER= ports@FreeBSD.org
COMMENT= Temperature control for fermenting beer and other applications
+LICENSE= BSD
+
+MAKE_ARGS= CFLAGS="${CFLAGS} -Wall -Wno-parentheses"
+NO_WRKSUBDIR= yes
+
+PORTDOCS= README
PLIST_FILES= bin/tempcontrol share/tempcontrol/temperaturecontrolrc.sample \
etc/rc.d/temperaturecontrol.sh.sample
PLIST_DIRS= share/tempcontrol
-MAKE_JOBS_UNSAFE= yes
-NO_WRKSUBDIR= YES
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+# Must (re)generate depedencies, otherwise parallel builds would not work
+pre-build:
+ ${MAKE_CMD} -C ${WRKSRC} depend
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tempcontrol ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/share/tempcontrol
- ${INSTALL_DATA} ${WRKSRC}/temperaturecontrolrc.sample ${PREFIX}/share/tempcontrol
- ${INSTALL_SCRIPT} ${WRKSRC}/temperaturecontrol.sh.sample ${PREFIX}/etc/rc.d
+ @${MKDIR} ${PREFIX}/share/tempcontrol
+ ${INSTALL_DATA} ${WRKSRC}/temperaturecontrolrc.sample \
+ ${PREFIX}/share/tempcontrol
+ ${INSTALL_SCRIPT} ${WRKSRC}/temperaturecontrol.sh.sample \
+ ${PREFIX}/etc/rc.d
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
.include <bsd.port.mk>