Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2014 08:34:54 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r372436 - head/devel/pcsc-ada
Message-ID:  <201411110834.sAB8YssS031543@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Tue Nov 11 08:34:54 2014
New Revision: 372436
URL: https://svnweb.freebsd.org/changeset/ports/372436
QAT: https://qat.redports.org/buildarchive/r372436/

Log:
  devel/pcsc-ada: Make jobs safe

Modified:
  head/devel/pcsc-ada/Makefile

Modified: head/devel/pcsc-ada/Makefile
==============================================================================
--- head/devel/pcsc-ada/Makefile	Tue Nov 11 08:03:27 2014	(r372435)
+++ head/devel/pcsc-ada/Makefile	Tue Nov 11 08:34:54 2014	(r372436)
@@ -62,20 +62,27 @@ post-patch:
 		tests/runner.adb \
 		tests/test_pcscada.adb)
 
+do-build:
+#	We cannot use a redefined ALL_TARGET because MAKE_JOBS_SAFE is set
+#	for PROCESSORS, but that also sets -j for gmake can break build
+	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
+		${MAKE_CMD} ${MAKE_ARGS:NDESTDIR=*} ${ALL_TARGET})
+
 do-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
 		${STAGEDIR}${PREFIX}/lib/pcscada \
-		${STAGEDIR}${PREFIX}/include/pcscada
+		${STAGEDIR}${PREFIX}/include/pcscada \
+		${STAGEDIR}${EXAMPLESDIR}/src \
+		${STAGEDIR}${EXAMPLESDIR}/bin \
+		${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/include/pcscada
 	${INSTALL_DATA} ${WRKSRC}/lib/static/* \
 		${STAGEDIR}${PREFIX}/lib/pcscada
 	${INSTALL_DATA} ${FILESDIR}/pcscada.gpr ${STAGEDIR}${PREFIX}/lib/gnat
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
 .endif
 .if ${PORT_OPTIONS:MEXAMPLES}
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/src ${STAGEDIR}${EXAMPLESDIR}/bin
 	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
 		${STAGEDIR}${EXAMPLESDIR}/src)
 	${RM} ${STAGEDIR}${EXAMPLESDIR}/src/*/*.bak



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