Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2013 12:12:21 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r324429 - head/misc/tempcontrol
Message-ID:  <201308091212.r79CCL70018912@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Fri Aug  9 12:12:21 2013
New Revision: 324429
URL: http://svnweb.freebsd.org/changeset/ports/324429

Log:
  - 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

Modified:
  head/misc/tempcontrol/Makefile

Modified: head/misc/tempcontrol/Makefile
==============================================================================
--- head/misc/tempcontrol/Makefile	Fri Aug  9 12:10:34 2013	(r324428)
+++ head/misc/tempcontrol/Makefile	Fri Aug  9 12:12:21 2013	(r324429)
@@ -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/
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308091212.r79CCL70018912>