Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2014 09:34:20 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r348672 - head/science/bddsolve
Message-ID:  <201403200934.s2K9YKA1043569@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Thu Mar 20 09:34:19 2014
New Revision: 348672
URL: http://svnweb.freebsd.org/changeset/ports/348672
QAT: https://qat.redports.org/buildarchive/r348672/

Log:
  - Support staging
  - Define EXAMPLES option
  - Don't install to LOCALBASE

Modified:
  head/science/bddsolve/Makefile

Modified: head/science/bddsolve/Makefile
==============================================================================
--- head/science/bddsolve/Makefile	Thu Mar 20 09:24:56 2014	(r348671)
+++ head/science/bddsolve/Makefile	Thu Mar 20 09:34:19 2014	(r348672)
@@ -17,7 +17,8 @@ LIB_DEPENDS+=	libbdd.so:${PORTSDIR}/scie
 USES=		zip
 NO_WRKSUBDIR=	yes
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	EXAMPLES
+
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "powerpc"
@@ -30,11 +31,9 @@ do-build:
 		-o ${WRKSRC}/bddsolve ${WRKSRC}/src/bddsolve.cpp
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bddsolve ${LOCALBASE}/bin/
-.if !defined(NOPORTEXAMPLES)
-	${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/example/reach.b ${EXAMPLESDIR}/
-	${INSTALL_DATA} ${WRKSRC}/example/sat.b ${EXAMPLESDIR}/
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/bddsolve ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/example/reach.b ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/example/sat.b ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.post.mk>



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